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 12ef5d5bea8ff34e7e9b2cc88bcc67d35f83f5da..930766550c686d0cfa255c90c987a93a45f2c304 100644 |
--- a/pkg/front_end/lib/src/fasta/source/outline_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/source/outline_builder.dart |
@@ -28,8 +28,7 @@ import 'source_library_builder.dart' show SourceLibraryBuilder; |
import 'unhandled_listener.dart' show NullValue, Unhandled, UnhandledListener; |
-import '../parser/dart_vm_native.dart' |
- show removeNativeClause, skipNativeClause; |
+import '../parser/dart_vm_native.dart' show removeNativeClause; |
import '../operator.dart' |
show |
@@ -808,9 +807,10 @@ class OutlineBuilder extends UnhandledListener { |
@override |
Token handleUnrecoverableError(Token token, FastaMessage message) { |
if (isDartLibrary && message.code == codeExpectedBlockToSkip) { |
- Token recover = skipNativeClause(token); |
+ var target = library.loader.target; |
+ Token recover = target.skipNativeClause(token); |
if (recover != null) { |
- nativeMethodName = unescapeString(token.next.lexeme); |
+ nativeMethodName = target.extractNativeMethodName(token); |
return recover; |
} |
} |