| Index: pkg/code_transformers/lib/src/resolver_impl.dart
|
| diff --git a/pkg/code_transformers/lib/src/resolver_impl.dart b/pkg/code_transformers/lib/src/resolver_impl.dart
|
| index ede1213baf2869ff57256abdfc95e9df6637b217..3df7a80b3859fc5833bfc96327c4bbb7989cf685 100644
|
| --- a/pkg/code_transformers/lib/src/resolver_impl.dart
|
| +++ b/pkg/code_transformers/lib/src/resolver_impl.dart
|
| @@ -5,7 +5,7 @@
|
| library code_transformer.src.resolver_impl;
|
|
|
| import 'dart:async';
|
| -import 'package:analyzer/analyzer.dart' show parseCompilationUnit;
|
| +import 'package:analyzer/analyzer.dart' show parseDirectives;
|
| import 'package:analyzer/src/generated/ast.dart' hide ConstantEvaluator;
|
| import 'package:analyzer/src/generated/constant.dart' show ConstantEvaluator,
|
| EvaluationResult;
|
| @@ -313,7 +313,7 @@ class _AssetBasedSource extends Source {
|
| /// any analyzer resolution.
|
| void updateDependencies(String contents) {
|
| if (contents == _contents) return;
|
| - var unit = parseCompilationUnit(contents, suppressErrors: true);
|
| + var unit = parseDirectives(contents, suppressErrors: true);
|
| _dependentAssets = unit.directives
|
| .where((d) => (d is ImportDirective || d is PartDirective ||
|
| d is ExportDirective))
|
|
|