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

Unified Diff: third_party/WebKit/Source/bindings/scripts/idl_types.py

Issue 2581373004: [Webmodules]: Start handling types a bit more intelligently. (Closed)
Patch Set: Feedback addressed. Created 4 years 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: third_party/WebKit/Source/bindings/scripts/idl_types.py
diff --git a/third_party/WebKit/Source/bindings/scripts/idl_types.py b/third_party/WebKit/Source/bindings/scripts/idl_types.py
index 3224a5d84dee05d4bb734d959d531c1d4f3401fe..7447b56aba79ede4b9e2fad6aff39718fbabbf06 100644
--- a/third_party/WebKit/Source/bindings/scripts/idl_types.py
+++ b/third_party/WebKit/Source/bindings/scripts/idl_types.py
@@ -208,6 +208,10 @@ class IdlType(IdlTypeBase):
return self.base_type in INTEGER_TYPES
@property
+ def is_void(self):
+ return self.base_type == 'void'
+
+ @property
def is_numeric_type(self):
return self.base_type in NUMERIC_TYPES

Powered by Google App Engine
This is Rietveld 408576698