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

Unified Diff: lib/compiler/implementation/unparse_validator.dart

Issue 10826302: Fix bugs found in checked mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « lib/compiler/implementation/ssa/builder.dart ('k') | tests/compiler/dart2js/parser_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/unparse_validator.dart
diff --git a/lib/compiler/implementation/unparse_validator.dart b/lib/compiler/implementation/unparse_validator.dart
index 5c342f7d8d9c2ad42488de0e7342f6af567385fc..89012b66f78460a0a9a23a8aee28b3bbc559bd67 100644
--- a/lib/compiler/implementation/unparse_validator.dart
+++ b/lib/compiler/implementation/unparse_validator.dart
@@ -55,7 +55,8 @@ class UnparseValidator extends CompilerTask {
LibraryElement lib = new LibraryElement(synthesizedScript);
lib.canUseNative = originalFunction.getLibrary().canUseNative;
NodeListener listener =
- new NodeListener(new ValidatorListener(synthesizedSourceFile), lib);
+ new NodeListener(new ValidatorListener(synthesizedSourceFile),
+ lib.entryCompilationUnit);
parser = new Parser(listener);
parser.parseFunction(newTokens, getOrSet);
FunctionExpression newNode = listener.popNode();
« no previous file with comments | « lib/compiler/implementation/ssa/builder.dart ('k') | tests/compiler/dart2js/parser_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698