Documentation ¶
Index ¶
- func Definition(ctx context.Context, ss *cache.Snapshot, file uri.URI, pos protocol.Position) (res []protocol.Location, err error)
- func GetConstIdentifierNode(ast *parser.Document, name string) *parser.Identifier
- func GetConstNode(ast *parser.Document, name string) *parser.Const
- func GetEnumNode(ast *parser.Document, name string) *parser.Enum
- func GetEnumNodeByEnumValue(ast *parser.Document, enumValueName string) *parser.Enum
- func GetEnumValueIdentifierNode(ast *parser.Document, name string) *parser.Identifier
- func GetExceptionNode(ast *parser.Document, name string) *parser.Exception
- func GetStructNode(ast *parser.Document, name string) *parser.Struct
- func GetTypedefNode(ast *parser.Document, name string) *parser.Typedef
- func GetUnionNode(ast *parser.Document, name string) *parser.Union
- func Hover(ctx context.Context, ss *cache.Snapshot, file uri.URI, pos protocol.Position) (res string, err error)
- func PrepareRename(ctx context.Context, ss *cache.Snapshot, file uri.URI, pos protocol.Position) (res *protocol.Range, err error)
- func Reference(ctx context.Context, ss *cache.Snapshot, file uri.URI, pos protocol.Position) (res []protocol.Location, err error)
- func Rename(ctx context.Context, ss *cache.Snapshot, file uri.URI, pos protocol.Position, ...) (res *protocol.WorkspaceEdit, err error)
- func TypeDefinition(ctx context.Context, ss *cache.Snapshot, file uri.URI, pos protocol.Position) (res []protocol.Location, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Definition ¶
func GetConstIdentifierNode ¶
func GetConstIdentifierNode(ast *parser.Document, name string) *parser.Identifier
func GetEnumNodeByEnumValue ¶
func GetEnumValueIdentifierNode ¶
func GetEnumValueIdentifierNode(ast *parser.Document, name string) *parser.Identifier
GetEnumValueIdentifierNode enum A { ONE }, ONE is the target node
func PrepareRename ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.