Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AnnotationRules = On(Any).Self( On(Not(intellij.File)).Error(ErrRootMustBeFile.New()), On(intellij.File).Roles(File).Descendants( On(intellij.Comment).Roles(Comment), On(intellij.Shebang).Roles(Comment, Documentation), On(intellij.VarDefElement).Children( On(intellij.AssignmentWord).Roles(SimpleIdentifier), ), On(intellij.FunctionDefElement).Children( On(intellij.Function).Roles(FunctionDeclaration), On(intellij.NamedSymbol).Roles(FunctionDeclarationName), On(intellij.GroupElement).Roles(FunctionDeclarationBody, Block), ), On(intellij.IfShellCommand).Roles(If, Statement), On(intellij.ForShellCommand).Roles(ForEach, Statement), On(intellij.WhileLoop).Roles(While, Statement), On(intellij.UntilLoop).Roles(While, Statement), ), )
View Source
var (
ErrRootMustBeFile = errors.NewKind("root must have internal type FILE")
)
View Source
var ToNoder = &native.ObjectToNoder{ InternalTypeKey: "elementType", OffsetKey: "startOffset", TopLevelIsRootNode: true, TokenKeys: map[string]bool{"text": true}, }
Functions ¶
func ParserBuilder ¶
func ParserBuilder(opts driver.ParserOptions) (driver.Parser, error)
Creates a parser that transform source code files into *uast.Node.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package intellij contains the bblfsh predicates we want to look for in ASTs generated by the Intellij BashSupport module, which are based on constants defined in that library.
|
Package intellij contains the bblfsh predicates we want to look for in ASTs generated by the Intellij BashSupport module, which are based on constants defined in that library. |
Click to show internal directories.
Click to hide internal directories.