public interface PsiParser
Modifier and Type | Method and Description |
---|---|
ASTNode |
parse(IElementType root,
PsiBuilder builder)
Parses the contents of the specified PSI builder and returns an AST tree with the
specified type of root element.
|
ASTNode parse(IElementType root, PsiBuilder builder)
root
- the type of the root element in the AST tree.builder
- the builder which is used to retrieve the original file tokens and build the AST tree.