Index: pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
index 3eabc6d6fde0a0d89d98b6f59973be60a9f15903..9336bee1aedefc7717232391b9f1e326535cf1d8 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
@@ -39,6 +39,8 @@ import 'package:kernel/core_types.dart' show CoreTypes; |
import 'frontend_accessors.dart' show buildIsNull, makeBinary, makeLet; |
+import '../parser/dart_vm_native.dart' show skipNativeClause; |
+ |
import '../scanner/token.dart' |
show BeginGroupToken, Token, isBinaryOperator, isMinusOperator; |
@@ -2523,7 +2525,7 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper { |
@override |
Token handleUnrecoverableError(Token token, FastaMessage message) { |
if (isDartLibrary && message.code == codeExpectedFunctionBody) { |
- Token recover = library.loader.target.skipNativeClause(token); |
+ Token recover = skipNativeClause(token); |
if (recover != null) return recover; |
} else if (message.code == codeExpectedButGot) { |
String expected = message.arguments["string"]; |