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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java

Issue 10690074: Migrates some resolver errors to parser stage (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: # Created 8 years, 6 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: compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java b/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
index e6fb711ee07f64e9ac32fd29159ee2cfbdf6c453..30a6a249b6ca5cfe1acc18e52229fd9214e30a58 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
@@ -139,7 +139,7 @@ public class NegativeParserTest extends CompilerTestCase {
DartUnit unit =
parseSourceUnitErrors(
"factory foo() {}",
- ParserErrorCode.DISALLOWED_FACTORY_KEYWORD.getMessage(),
+ ParserErrorCode.FACTORY_CANNOT_BE_TOPLEVEL.getMessage(),
1,
1);
DartMethodDefinition factory = (DartMethodDefinition) unit.getTopLevelNodes().get(0);
@@ -341,7 +341,7 @@ public class NegativeParserTest extends CompilerTestCase {
"typedef ParameterizedFun1<T, U extends bool, V>(T t, U u);",
""));
}
-
+
public void test_abstractTopLevel_class() {
parseExpectErrors(Joiner.on("\n").join(
"// filler filler filler filler filler filler filler filler filler filler",
@@ -702,7 +702,7 @@ public class NegativeParserTest extends CompilerTestCase {
"}",
""));
}
-
+
/**
* We can parse operator "equals" declaration.
*/
@@ -972,7 +972,7 @@ public class NegativeParserTest extends CompilerTestCase {
"}",
""));
}
-
+
/**
* There is ambiguity in parsing function expression inside of initializer.
* <p>
@@ -994,7 +994,7 @@ public class NegativeParserTest extends CompilerTestCase {
"}",
""));
}
-
+
/**
* There is ambiguity in parsing function expression inside of initializer.
* <p>

Powered by Google App Engine
This is Rietveld 408576698