| Index: pkg/front_end/lib/src/incremental/file_state.dart
|
| diff --git a/pkg/front_end/lib/src/incremental/file_state.dart b/pkg/front_end/lib/src/incremental/file_state.dart
|
| index ab22dedced9613fa14b6441beb91c17a2d6b972b..3f353897463840f6dab6be37cef2ee59734140aa 100644
|
| --- a/pkg/front_end/lib/src/incremental/file_state.dart
|
| +++ b/pkg/front_end/lib/src/incremental/file_state.dart
|
| @@ -8,6 +8,7 @@ import 'dart:typed_data';
|
| import 'package:crypto/crypto.dart';
|
| import 'package:front_end/file_system.dart';
|
| import 'package:front_end/src/dependency_walker.dart' as graph;
|
| +import 'package:front_end/src/fasta/parser/dart_vm_native.dart';
|
| import 'package:front_end/src/fasta/parser/top_level_parser.dart';
|
| import 'package:front_end/src/fasta/scanner.dart';
|
| import 'package:front_end/src/fasta/source/directive_listener.dart';
|
| @@ -115,7 +116,7 @@ class FileState {
|
|
|
| // Parse directives.
|
| ScannerResult scannerResults = _scan();
|
| - var listener = new DirectiveListener();
|
| + var listener = new _DirectiveListenerWithNative();
|
| new TopLevelParser(listener).parseUnit(scannerResults.tokens);
|
|
|
| // Build the graph.
|
| @@ -256,6 +257,12 @@ class LibraryCycle {
|
| }
|
| }
|
|
|
| +/// [DirectiveListener] that skips native clauses.
|
| +class _DirectiveListenerWithNative extends DirectiveListener {
|
| + @override
|
| + Token handleNativeClause(Token token) => skipNativeClause(token);
|
| +}
|
| +
|
| /// [FileSystemState] based implementation of [FileSystem].
|
| /// It provides a consistent view on the known file system state.
|
| class _FileSystemView implements FileSystem {
|
|
|