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

Unified Diff: client/dom/scripts/idlparser.dart

Issue 8384029: Work-arounds for missing and broken Frog functionality. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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 | « no previous file | client/dom/scripts/idlrenderer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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';
« no previous file with comments | « no previous file | client/dom/scripts/idlrenderer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698