Documentation ¶
Index ¶
- func ASTNodeToRange(node parser.Node) protocol.Range
- func GetIncludeName(file uri.URI) string
- func GetIncludePath(ast *parser.Document, includeName string) string
- func IncludeNames(cur uri.URI, includes []*parser.Include) (includeNames []string)
- func IncludeURI(cur uri.URI, includePath string) uri.URI
- func ParseIdent(cur uri.URI, includes []*parser.Include, identifier string) (include, ident string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIncludeName ¶
GetIncludeName return include name by file uri for example: file uri is file:///base.thrift, then `base` is include name
func GetIncludePath ¶
includeName: base.User. `base` is the includeName. returns ../../base.thrift if doesn't match, return empty string
func IncludeNames ¶ added in v0.1.3
IncludeNames returns include names from include ast nodes
func IncludeURI ¶
cur is current file uri. for example file:///tmp/user.thrift includePath is include name used in code. for example: base.thrift
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.