diff options
author | 2015-09-17 13:09:03 +0000 | |
---|---|---|
committer | 2015-09-17 19:35:38 +0000 | |
commit | afc93a6645d6c8b5be933b48137ac5d0c6aafd61 (patch) | |
tree | 6abe4576b2351bbba046816ddf27a601ff442f00 /src/test/java/com/google/devtools/build/lib/syntax/EvaluationTestCase.java | |
parent | de27f9e46892f6dd95966185a7cf09e256dfe5ff (diff) |
Rollback of commit 4e5037520e3067f9d8784e1c59f9545b96111cd4.
*** Reason for rollback ***
Broke tests, I mistakenly assumed it was flakiness.
*** Original change description ***
Remove support for the deprecated include() statement.
This is part of the crusade to eliminate as every dependency in Skylark on the rest of the code so that it can be moved deeper in the dependency graph.
RELNOTES: The include() statement in BUILD files is not supported anymore.
--
MOS_MIGRATED_REVID=103284257
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/syntax/EvaluationTestCase.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/syntax/EvaluationTestCase.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/EvaluationTestCase.java b/src/test/java/com/google/devtools/build/lib/syntax/EvaluationTestCase.java index 553385d58b..e26234af0c 100644 --- a/src/test/java/com/google/devtools/build/lib/syntax/EvaluationTestCase.java +++ b/src/test/java/com/google/devtools/build/lib/syntax/EvaluationTestCase.java @@ -16,7 +16,6 @@ package com.google.devtools.build.lib.syntax; import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.fail; -import com.google.common.base.Joiner; import com.google.common.truth.Ordered; import com.google.devtools.build.lib.events.Event; import com.google.devtools.build.lib.events.EventCollector; @@ -138,9 +137,7 @@ public class EvaluationTestCase { /** Parses an Expression from string without a supporting file */ Expression parseExpression(String... input) { - return Parser.parseExpression( - ParserInputSource.create(Joiner.on("\n").join(input), null), - getEventHandler()); + return Parser.parseExpression(env.createLexer(input), getEventHandler()); } public EvaluationTestCase update(String varname, Object value) throws Exception { |