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

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

Issue 10702204: Revert "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: 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
« no previous file with comments | « lib/compiler/implementation/scanner/scanner_task.dart ('k') | 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 5c342f7d8d9c2ad42488de0e7342f6af567385fc..0f72121c1126ee4f3313e6f777d4cc3704965c88 100644
--- a/lib/compiler/implementation/unparse_validator.dart
+++ b/lib/compiler/implementation/unparse_validator.dart
@@ -44,7 +44,7 @@ class UnparseValidator extends CompilerTask {
parser.findGetOrSet(parser.parseModifiers(newTokens));
// TODO(ahe): This is also too frigging complicated.
- Script originalScript = originalFunction.getScript();
+ Script originalScript = originalFunction.getCompilationUnit().script;
String name = SourceSpan.withCharacterOffsets(
originalFunction.beginToken, originalFunction.endToken,
(beginOffset, endOffset) =>
« no previous file with comments | « lib/compiler/implementation/scanner/scanner_task.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698