Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java |
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java |
index 910c2d99d49fcb94d01c83ed616c9ae62b6ced7c..01801f108002c7dedeb53a614be77d1c8b112f67 100644 |
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java |
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java |
@@ -1550,6 +1550,24 @@ public class SimpleParserTest extends ParserTestCase { |
assertSize(1, unit.getDeclarations()); |
} |
+ public void test_parseCompilationUnit_builtIn_asFunctionName() throws Exception { |
+ parse("parseCompilationUnit", "abstract(x) => 0;"); |
+ parse("parseCompilationUnit", "as(x) => 0;"); |
+ parse("parseCompilationUnit", "dynamic(x) => 0;"); |
+ parse("parseCompilationUnit", "export(x) => 0;"); |
+ parse("parseCompilationUnit", "external(x) => 0;"); |
+ parse("parseCompilationUnit", "factory(x) => 0;"); |
+ parse("parseCompilationUnit", "get(x) => 0;"); |
+ parse("parseCompilationUnit", "implements(x) => 0;"); |
+ parse("parseCompilationUnit", "import(x) => 0;"); |
+ parse("parseCompilationUnit", "library(x) => 0;"); |
+ parse("parseCompilationUnit", "operator(x) => 0;"); |
+ parse("parseCompilationUnit", "part(x) => 0;"); |
+ parse("parseCompilationUnit", "set(x) => 0;"); |
+ parse("parseCompilationUnit", "static(x) => 0;"); |
+ parse("parseCompilationUnit", "typedef(x) => 0;"); |
+ } |
+ |
public void test_parseCompilationUnit_directives_multiple() throws Exception { |
CompilationUnit unit = parse("parseCompilationUnit", "library l;\npart 'a.dart';"); |
assertNull(unit.getScriptTag()); |