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

Unified Diff: pkg/dev_compiler/test/codegen_test.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 | « no previous file | pkg/dev_compiler/tool/global_compile.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/test/codegen_test.dart
diff --git a/pkg/dev_compiler/test/codegen_test.dart b/pkg/dev_compiler/test/codegen_test.dart
index 80a1a8aacbc1e3370770815807e57e081fe94ea8..b0a74ae9b787472b2ce936e4eb63407bd295f43f 100644
--- a/pkg/dev_compiler/test/codegen_test.dart
+++ b/pkg/dev_compiler/test/codegen_test.dart
@@ -20,6 +20,7 @@ import 'package:analyzer/analyzer.dart'
StringLiteral,
UriBasedDirective,
parseDirectives;
+import 'package:analyzer/src/dart/ast/ast.dart';
import 'package:analyzer/src/generated/source.dart' show Source;
import 'package:args/args.dart' show ArgParser, ArgResults;
import 'package:dev_compiler/src/analyzer/context.dart'
@@ -351,5 +352,7 @@ String _resolveDirective(UriBasedDirective directive) {
uriContent = uriContent.trim();
directive.uriContent = uriContent;
}
- return directive.validate() == null ? uriContent : null;
+ return (directive as UriBasedDirectiveImpl).validate() == null
+ ? uriContent
+ : null;
}
« no previous file with comments | « no previous file | pkg/dev_compiler/tool/global_compile.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698