Index: sdk/lib/_internal/compiler/implementation/native_handler.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/native_handler.dart b/sdk/lib/_internal/compiler/implementation/native_handler.dart |
index 0ba42aea08f475ea08ac938302867d44a04d2ed6..7a9c82737e925d91fbef7d65a5effcb16daf020b 100644 |
--- a/sdk/lib/_internal/compiler/implementation/native_handler.dart |
+++ b/sdk/lib/_internal/compiler/implementation/native_handler.dart |
@@ -175,6 +175,8 @@ bool isOverriddenMethod(FunctionElement element, |
return false; |
} |
+final RegExp nativeRedirectionRegExp = new RegExp(r'^[a-zA-Z][a-zA-Z_$0-9]*$'); |
+ |
void handleSsaNative(SsaBuilder builder, Expression nativeBody) { |
Compiler compiler = builder.compiler; |
FunctionElement element = builder.work.element; |
@@ -211,7 +213,6 @@ void handleSsaNative(SsaBuilder builder, Expression nativeBody) { |
// 1) foo() native; hasBody = false, isRedirecting = false |
// 2) foo() native "bar"; hasBody = false, isRedirecting = true |
// 3) foo() native "return 42"; hasBody = true, isRedirecting = false |
- RegExp nativeRedirectionRegExp = const RegExp(r'^[a-zA-Z][a-zA-Z_$0-9]*$'); |
bool hasBody = false; |
bool isRedirecting = false; |
String nativeMethodName = element.name.slowToString(); |