aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/syntax/Identifier.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/syntax/Identifier.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/syntax/Identifier.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/syntax/Identifier.java b/src/main/java/com/google/devtools/build/lib/syntax/Identifier.java
index a404bfa79f..419427c9b1 100644
--- a/src/main/java/com/google/devtools/build/lib/syntax/Identifier.java
+++ b/src/main/java/com/google/devtools/build/lib/syntax/Identifier.java
@@ -85,14 +85,7 @@ public final class Identifier extends Expression {
visitor.visit(this);
}
- @Override
- void validate(ValidationEnvironment env) throws EvalException {
- if (!env.hasSymbolInEnvironment(name)) {
- throw createInvalidIdentifierException(env.getAllSymbols());
- }
- }
-
- private EvalException createInvalidIdentifierException(Set<String> symbols) {
+ EvalException createInvalidIdentifierException(Set<String> symbols) {
if (name.equals("$error$")) {
return new EvalException(getLocation(), "contains syntax error(s)", true);
}