aboutsummaryrefslogtreecommitdiff
path: root/java/com/google/turbine/parse/Parser.java
diff options
context:
space:
mode:
authorcushon <cushon@google.com>2016-10-11 13:58:31 -0700
committerLiam Miller-Cushon <cushon@google.com>2016-10-11 17:20:42 -0700
commit3088f83b806b82d866d119e344da274105f42821 (patch)
treec228195f40a10a61fff5d2da14bf62e4426016dc /java/com/google/turbine/parse/Parser.java
parent2d40d9f3977cd2ba8a064042668725b85bfd8cab (diff)
downloadturbine-3088f83b806b82d866d119e344da274105f42821.tar.gz
Full JLS 7 annotation handling
Support all annotation values including nested annotations and array initializers, and all declaration annotation sites including parameters and methods. MOE_MIGRATED_REVID=135837401
Diffstat (limited to 'java/com/google/turbine/parse/Parser.java')
-rw-r--r--java/com/google/turbine/parse/Parser.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/com/google/turbine/parse/Parser.java b/java/com/google/turbine/parse/Parser.java
index e4df777..8229470 100644
--- a/java/com/google/turbine/parse/Parser.java
+++ b/java/com/google/turbine/parse/Parser.java
@@ -649,7 +649,7 @@ public class Parser {
next();
exceptions.addAll(exceptions());
}
- Tree defaultVal = null;
+ Tree defaultValue = null;
switch (token) {
case SEMI:
next();
@@ -669,7 +669,7 @@ public class Parser {
if (expr == null) {
throw new AssertionError(token);
}
- defaultVal = expr;
+ defaultValue = expr;
eat(Token.SEMI);
break;
}
@@ -687,7 +687,7 @@ public class Parser {
name,
formals.build(),
exceptions.build(),
- Optional.fromNullable(defaultVal));
+ Optional.fromNullable(defaultValue));
}
private Type parseDims(Type result) {