use of com.google.javascript.jscomp.parsing.parser.trees.TypeAliasTree in project closure-compiler by google.
the class Parser method parseTypeAlias.
private ParseTree parseTypeAlias() {
SourcePosition start = getTreeStartLocation();
eat(TokenType.TYPE);
IdentifierToken alias = eatId();
eat(TokenType.EQUAL);
ParseTree original = parseType();
eatPossibleImplicitSemiColon();
return new TypeAliasTree(getTreeLocation(start), alias, original);
}
Aggregations