Search in sources :

Example 1 with AmbientDeclarationTree

use of com.google.javascript.jscomp.parsing.parser.trees.AmbientDeclarationTree in project closure-compiler by google.

the class Parser method parseAmbientDeclaration.

private ParseTree parseAmbientDeclaration() {
    SourcePosition start = getTreeStartLocation();
    eat(TokenType.DECLARE);
    ParseTree declare = parseAmbientDeclarationHelper();
    return new AmbientDeclarationTree(getTreeLocation(start), declare);
}
Also used : AmbientDeclarationTree(com.google.javascript.jscomp.parsing.parser.trees.AmbientDeclarationTree) SourcePosition(com.google.javascript.jscomp.parsing.parser.util.SourcePosition) ParseTree(com.google.javascript.jscomp.parsing.parser.trees.ParseTree)

Aggregations

AmbientDeclarationTree (com.google.javascript.jscomp.parsing.parser.trees.AmbientDeclarationTree)1 ParseTree (com.google.javascript.jscomp.parsing.parser.trees.ParseTree)1 SourcePosition (com.google.javascript.jscomp.parsing.parser.util.SourcePosition)1