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

Unified Diff: pkg/dev_compiler/tool/global_compile.dart

Issue 2536233002: Fix reference to validate method (Closed)
Patch Set: Created 4 years, 1 month 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 | « pkg/dev_compiler/test/codegen_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/tool/global_compile.dart
diff --git a/pkg/dev_compiler/tool/global_compile.dart b/pkg/dev_compiler/tool/global_compile.dart
index b604099ec885d912df9c29c9415186a3d1fb2867..56f1b0a5d3f395503b39b1f3e607314da07707b8 100644
--- a/pkg/dev_compiler/tool/global_compile.dart
+++ b/pkg/dev_compiler/tool/global_compile.dart
@@ -14,6 +14,7 @@ import 'package:analyzer/analyzer.dart'
StringLiteral,
UriBasedDirective,
parseDirectives;
+import 'package:analyzer/src/dart/ast/ast.dart';
import 'package:args/args.dart' show ArgParser;
import 'package:path/path.dart' as path;
@@ -257,7 +258,9 @@ String _resolveDirective(UriBasedDirective directive) {
uriContent = uriContent.trim();
directive.uriContent = uriContent;
}
- return directive.validate() == null ? uriContent : null;
+ return (directive as UriBasedDirectiveImpl).validate() == null
+ ? uriContent
+ : null;
}
String _loadFile(String uri, String packageRoot) {
« no previous file with comments | « pkg/dev_compiler/test/codegen_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698