Index: pkg/compiler/lib/src/native/scanner.dart |
diff --git a/pkg/compiler/lib/src/native/scanner.dart b/pkg/compiler/lib/src/native/scanner.dart |
index a508738740f301a40cd964eea919ed4c7217a8ad..8f78d950f4760742bfff75975b055e83904ae2cb 100644 |
--- a/pkg/compiler/lib/src/native/scanner.dart |
+++ b/pkg/compiler/lib/src/native/scanner.dart |
@@ -10,7 +10,7 @@ import 'package:dart_scanner/src/token_constants.dart' as Tokens show |
void checkAllowedLibrary(ElementListener listener, Token token) { |
if (listener.scannerOptions.canUseNative) return; |
- listener.reportErrorMessageToken(token, MessageKind.NATIVE_NOT_SUPPORTED); |
+ listener.reportErrorFromToken(token, MessageKind.NATIVE_NOT_SUPPORTED); |
} |
Token handleNativeBlockToSkip(ElementListener listener, Token token) { |