aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google
diff options
context:
space:
mode:
authorGravatar laurentlb <laurentlb@google.com>2018-05-22 10:35:06 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-05-22 10:36:30 -0700
commit566ef5aa79b15efbb50694422e992de5df7da596 (patch)
treec18af14086336713fcc11c882b1171624ceda78f /src/test/java/com/google
parent88b58112a0379732f052467b51bd868270e46bc7 (diff)
Make the parser look at only one Token at a time.
Remove all references to `Token` (except one) in the parser. In particular, remove the mechanism to push tokens back. This change will make possible for the lexer to reuse tokens instead of allocating new objects each time. RELNOTES: None. PiperOrigin-RevId: 197585185
Diffstat (limited to 'src/test/java/com/google')
-rw-r--r--src/test/java/com/google/devtools/build/lib/syntax/ValidationTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/ValidationTest.java b/src/test/java/com/google/devtools/build/lib/syntax/ValidationTest.java
index 518e871391..3a003b1d66 100644
--- a/src/test/java/com/google/devtools/build/lib/syntax/ValidationTest.java
+++ b/src/test/java/com/google/devtools/build/lib/syntax/ValidationTest.java
@@ -212,7 +212,7 @@ public class ValidationTest extends EvaluationTestCase {
setFailFast(false);
parseFile(
"def GenerateMapNames():", " a = 2", " b = [3, 4]", " if a not b:", " print(a)");
- assertContainsError("syntax error at 'b': expected in");
+ assertContainsError("syntax error at 'b': expected 'in'");
// Parser uses "$error" symbol for error recovery.
// It should not be used in error messages.
for (Event event : getEventCollector()) {