Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Unified Diff: sky/engine/bindings/scripts/dart_methods.py

Issue 936193005: Make it possible to inherit from any constructable host object (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove extra comment Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/engine/bindings/scripts/dart_methods.py
diff --git a/sky/engine/bindings/scripts/dart_methods.py b/sky/engine/bindings/scripts/dart_methods.py
index 014f28b7b49e7f29495ee11812e2ec08e6b36bd3..3ce01527852be14a7fab423fed3e147ca09861e2 100644
--- a/sky/engine/bindings/scripts/dart_methods.py
+++ b/sky/engine/bindings/scripts/dart_methods.py
@@ -106,7 +106,7 @@ def argument_context(interface, method, argument, index):
idl_type = argument.idl_type
this_cpp_value = cpp_value(interface, method, index)
auto_scope = not 'DartNoAutoScope' in extended_attributes
- arg_index = index + 1 if not (method.is_static or method.is_constructor) else index
+ arg_index = index + 1 if not method.is_static else index
preprocessed_type = str(idl_type.preprocessed_type)
local_cpp_type = idl_type.cpp_type_args(argument.extended_attributes, raw_type=True)
default_value = argument.default_cpp_value
« no previous file with comments | « no previous file | sky/engine/bindings/scripts/templates/interface_dart.template » ('j') | sky/engine/tonic/dart_wrappable.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698