Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java

Issue 25940003: Issue 13510. Fix for parsing symbol literal with built-in identifiers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 2fbc8baf20122267cbbb87d73005f6cc04a25e3f..36dfd35383b4752b2857570eb4c59f8868c3129d 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
@@ -4001,6 +4001,16 @@ public class SimpleParserTest extends ParserTestCase {
assertNotNull(statement.getRightBracket());
}
+ public void test_parseSymbolLiteral_builtInIdentifier() throws Exception {
+ SymbolLiteral literal = parse("parseSymbolLiteral", "#dynamic.static.abstract");
+ assertNotNull(literal.getPoundSign());
+ Token[] components = literal.getComponents();
+ assertLength(3, components);
+ assertEquals("dynamic", components[0].getLexeme());
+ assertEquals("static", components[1].getLexeme());
+ assertEquals("abstract", components[2].getLexeme());
+ }
+
public void test_parseSymbolLiteral_multiple() throws Exception {
SymbolLiteral literal = parse("parseSymbolLiteral", "#a.b.c");
assertNotNull(literal.getPoundSign());
« no previous file with comments | « editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698