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

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

Issue 10638005: Propagate canUseNative flag to synthesized library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 | no next file » | 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 5004894e6e1f7a3bb043446e63fd1e790d944cdb..146811bbf849be66fefc843a1842230b370fa7c6 100644
--- a/lib/compiler/implementation/unparse_validator.dart
+++ b/lib/compiler/implementation/unparse_validator.dart
@@ -59,6 +59,7 @@ class UnparseValidator extends CompilerTask {
Script synthesizedScript =
new Script(originalScript.uri, synthesizedSourceFile);
LibraryElement lib = new LibraryElement(synthesizedScript);
+ lib.canUseNative = element.getLibrary().canUseNative;
NodeListener listener =
new NodeListener(new ValidatorListener(synthesizedSourceFile), lib);
parser = new Parser(listener);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698