aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/syntax/LValueBoundNamesTest.java
diff options
context:
space:
mode:
authorGravatar laurentlb <laurentlb@google.com>2017-09-01 17:49:23 +0200
committerGravatar Vladimir Moskva <vladmos@google.com>2017-09-01 20:08:25 +0200
commit17d975ee226c59c164ecdab9c897a35d9604e192 (patch)
tree16bd9374019b499a441847c8137f7448e94376f2 /src/test/java/com/google/devtools/build/lib/syntax/LValueBoundNamesTest.java
parent9bd280ba663557a44c0177327cf668ff813a397d (diff)
Remove the Dialect type from the Parser.
Let's use the same parser. Dialect differences are checked in a separate validation pass. RELNOTES: None. PiperOrigin-RevId: 167280201
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/syntax/LValueBoundNamesTest.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/syntax/LValueBoundNamesTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/LValueBoundNamesTest.java b/src/test/java/com/google/devtools/build/lib/syntax/LValueBoundNamesTest.java
index 53750c021a..5e02c38036 100644
--- a/src/test/java/com/google/devtools/build/lib/syntax/LValueBoundNamesTest.java
+++ b/src/test/java/com/google/devtools/build/lib/syntax/LValueBoundNamesTest.java
@@ -51,8 +51,7 @@ public class LValueBoundNamesTest {
}
private static void assertBoundNames(String assignment, String... expectedBoundNames) {
- BuildFileAST buildFileAST = BuildFileAST
- .parseSkylarkString(Environment.FAIL_FAST_HANDLER, assignment);
+ BuildFileAST buildFileAST = BuildFileAST.parseString(Environment.FAIL_FAST_HANDLER, assignment);
LValue lValue = ((AssignmentStatement) buildFileAST.getStatements().get(0)).getLValue();
Set<String> boundNames =
lValue.boundIdentifiers().stream().map(Identifier::getName).collect(Collectors.toSet());