per review

This commit is contained in:
Ryan O'Neill 2015-08-14 12:24:12 -07:00
parent 2566973fdd
commit 6fede7cf73
3 changed files with 2 additions and 11 deletions

View File

@ -16,7 +16,7 @@ public class ConfigConditional {
this.body = body;
if (this.left.optional()) {
throw new ConfigException.BugOrBroken("Substitutions in conditional expressions cannot be optional");
throw new ConfigException.BugOrBroken("Substitution " + this.left.toString() + " in conditional expression cannot be optional");
}
}

View File

@ -28,14 +28,5 @@ final class ConfigNodeConditional extends AbstractConfigNode {
}
return tokens;
}
//
// protected String name() {
// for (AbstractConfigNode n : children) {
// if (n instanceof ConfigNodeSimpleValue) {
// return (String)Tokens.getValue(((ConfigNodeSimpleValue) n).token()).unwrapped();
// }
// }
// return null;
// }
}

View File

@ -94,7 +94,7 @@ final class ConfigParser {
} else if (n instanceof ConfigNodeObject) {
v = parseObject((ConfigNodeObject)n);
} else if (n instanceof ConfigNodeArray) {
v = parseArray((ConfigNodeArray) n);
v = parseArray((ConfigNodeArray)n);
} else if (n instanceof ConfigNodeConcatenation) {
v = parseConcatenation((ConfigNodeConcatenation)n);
} else {