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

Unified Diff: lib/compiler/implementation/ssa/codegen.dart

Issue 10703188: Allow patch files to add top-level declarations to the patched library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix errors caught by editor. Created 8 years, 5 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
Index: lib/compiler/implementation/ssa/codegen.dart
diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
index d009c93cfe92c6b2cb18ee8a4436c652d6f2a8ac..2255f506d57f73d8a0a5a541744128a21cb25f37 100644
--- a/lib/compiler/implementation/ssa/codegen.dart
+++ b/lib/compiler/implementation/ssa/codegen.dart
@@ -35,7 +35,7 @@ class SsaCodeGeneratorTask extends CompilerTask {
String code = 'function($parameters) {\n$body$extraSpace}';
List<SourceMappingEntry> sourceMappings = new List<SourceMappingEntry>();
- SourceFile sourceFile = element.getCompilationUnit().script.file;
+ SourceFile sourceFile = element.getScript().file;
FunctionExpression expression = element.cachedNode;
sourceMappings.add(new SourceMappingEntry(
sourceFile, expression.getBeginToken().charOffset, 0));
« no previous file with comments | « lib/compiler/implementation/scanner/scanner_task.dart ('k') | lib/compiler/implementation/unparse_validator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698