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

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

Issue 427603002: Properly handle "#void" in analysis server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 2b25d3e824954795d8c2494083c4c95a7d6221f3..1723c28f89d117c30a17691575afa1bfa96fd4b1 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
@@ -4442,6 +4442,14 @@ public class SimpleParserTest extends ParserTestCase {
assertEquals("a", components[0].getLexeme());
}
+ public void test_parseSymbolLiteral_void() throws Exception {
+ SymbolLiteral literal = parse("parseSymbolLiteral", "#void");
+ assertNotNull(literal.getPoundSign());
+ Token[] components = literal.getComponents();
+ assertLength(1, components);
+ assertEquals("void", components[0].getLexeme());
+ }
+
public void test_parseThrowExpression() throws Exception {
ThrowExpression expression = parse("parseThrowExpression", "throw x;");
assertNotNull(expression.getKeyword());

Powered by Google App Engine
This is Rietveld 408576698