| Index: pkg/front_end/lib/src/fasta/source/outline_builder.dart
|
| diff --git a/pkg/front_end/lib/src/fasta/source/outline_builder.dart b/pkg/front_end/lib/src/fasta/source/outline_builder.dart
|
| index 43f0f3b32c7aeadc929acbb1fd545608f519957d..04e1f671d369dcad9c465d3371ba9b31a6ffad5a 100644
|
| --- a/pkg/front_end/lib/src/fasta/source/outline_builder.dart
|
| +++ b/pkg/front_end/lib/src/fasta/source/outline_builder.dart
|
| @@ -48,13 +48,13 @@ enum MethodBody {
|
| class OutlineBuilder extends UnhandledListener {
|
| final SourceLibraryBuilder library;
|
|
|
| - final bool isDartLibrary;
|
| + final bool enableNative;
|
|
|
| String nativeMethodName;
|
|
|
| OutlineBuilder(SourceLibraryBuilder library)
|
| : library = library,
|
| - isDartLibrary = library.uri.scheme == "dart";
|
| + enableNative = (library.uri.scheme == "dart" || library.isPatch);
|
|
|
| @override
|
| Uri get uri => library.fileUri;
|
| @@ -776,7 +776,7 @@ class OutlineBuilder extends UnhandledListener {
|
|
|
| @override
|
| Token handleUnrecoverableError(Token token, FastaMessage message) {
|
| - if (isDartLibrary && message.code == codeExpectedBlockToSkip) {
|
| + if (enableNative && message.code == codeExpectedBlockToSkip) {
|
| var target = library.loader.target;
|
| Token recover = target.skipNativeClause(token);
|
| if (recover != null) {
|
| @@ -795,7 +795,7 @@ class OutlineBuilder extends UnhandledListener {
|
|
|
| @override
|
| Link<Token> handleMemberName(Link<Token> identifiers) {
|
| - if (!isDartLibrary || identifiers.isEmpty) return identifiers;
|
| + if (!enableNative || identifiers.isEmpty) return identifiers;
|
| return removeNativeClause(identifiers);
|
| }
|
|
|
|
|