| Index: client/dom/scripts/idlparser.dart
|
| diff --git a/client/dom/scripts/idlparser.dart b/client/dom/scripts/idlparser.dart
|
| index c65b6a4bd0883afd0034f47b593f18f1ca02a03e..e0ac9c905b7c631abe5760823feaa7c5d63f1049 100644
|
| --- a/client/dom/scripts/idlparser.dart
|
| +++ b/client/dom/scripts/idlparser.dart
|
| @@ -254,19 +254,21 @@ class IDLParser {
|
| axiom = _makeParser();
|
| }
|
|
|
| + syntax_switch([WebIDL, WebKit, FremontCut]) {
|
| + assert(WebIDL != null && WebKit != null); // Not options, just want names.
|
| + if (syntax == WEBIDL_SYNTAX)
|
| + return WebIDL;
|
| + if (syntax == WEBKIT_SYNTAX)
|
| + return WebKit;
|
| + if (syntax == FREMONTCUT_SYNTAX)
|
| + return FremontCut == null ? WebIDL : FremontCut;
|
| + throw new Exception('unsupported IDL syntax $syntax');
|
| + }
|
| +
|
| _makeParser() {
|
| Grammar g = grammar;
|
|
|
| - syntax_switch([WebIDL, WebKit, FremontCut]) {
|
| - assert(WebIDL != null && WebKit != null); // Not options, just want names.
|
| - if (syntax == WEBIDL_SYNTAX)
|
| - return WebIDL;
|
| - if (syntax == WEBKIT_SYNTAX)
|
| - return WebKit;
|
| - if (syntax == FREMONTCUT_SYNTAX)
|
| - return FremontCut == null ? WebIDL : FremontCut;
|
| - throw new Exception('unsupported IDL syntax $syntax');
|
| - }
|
| + // TODO: move syntax_switch back to here.
|
|
|
| var idStartCharSet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_';
|
| var idNextCharSet = idStartCharSet + '0123456789';
|
|
|