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

Unified Diff: tools/dom/scripts/idlnode.py

Issue 14211014: Chrome roll. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
« no previous file with comments | « tools/dom/scripts/htmldartgenerator.py ('k') | tools/dom/scripts/idlparser.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/idlnode.py
diff --git a/tools/dom/scripts/idlnode.py b/tools/dom/scripts/idlnode.py
index 953d27424bfb493801b331f0aea92a0ec038c8aa..60a6ef7ddbf8e0977d7b3783287323a59d96726f 100755
--- a/tools/dom/scripts/idlnode.py
+++ b/tools/dom/scripts/idlnode.py
@@ -308,7 +308,7 @@ class IDLExtAttrs(IDLDictNode):
func_value = self._find_first(value, 'ExtAttrFunctionValue')
if func_value:
- # E.g. NamedConstructor=Audio(in [Optional] DOMString src)
+ # E.g. NamedConstructor=Audio(optional DOMString src)
self[name] = IDLExtAttrFunctionValue(
func_value,
self._find_first(func_value, 'ExtAttrArgList'))
@@ -497,6 +497,7 @@ class IDLArgument(IDLNode):
def __init__(self, ast):
IDLNode.__init__(self, ast)
self.type = self._convert_first(ast, 'Type', IDLType)
+ self.optional = self._has(ast, 'Optional')
self._convert_ext_attrs(ast)
def __repr__(self):
« no previous file with comments | « tools/dom/scripts/htmldartgenerator.py ('k') | tools/dom/scripts/idlparser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698