| 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) {
|
|
|