use of com.google.javascript.jscomp.parsing.parser.trees.EnumDeclarationTree in project closure-compiler by google.
the class Parser method parseEnumDeclaration.
private ParseTree parseEnumDeclaration() {
SourcePosition start = getTreeStartLocation();
eat(TokenType.ENUM);
IdentifierToken name = eatId();
eat(TokenType.OPEN_CURLY);
ImmutableList<ParseTree> members = parseEnumMembers();
eat(TokenType.CLOSE_CURLY);
return new EnumDeclarationTree(getTreeLocation(start), name, members);
}
Aggregations