codejump

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstValueTypeDefinitionIdentifier added in v0.0.9

func ConstValueTypeDefinitionIdentifier(ctx context.Context, ss *cache.Snapshot, file uri.URI, ast *parser.Document, targetNode parser.Node) (uri.URI, *parser.Identifier, error)

func Definition

func Definition(ctx context.Context, ss *cache.Snapshot, file uri.URI, pos protocol.Position) (res []protocol.Location, err error)

func GetConstIdentifierNode

func GetConstIdentifierNode(ast *parser.Document, name string) *parser.Identifier

func GetConstNode

func GetConstNode(ast *parser.Document, name string) *parser.Const

func GetEnumNode

func GetEnumNode(ast *parser.Document, name string) *parser.Enum

func GetEnumNodeByEnumValue

func GetEnumNodeByEnumValue(ast *parser.Document, enumValueName string) *parser.Enum

func GetEnumValueIdentifierNode

func GetEnumValueIdentifierNode(ast *parser.Document, name string) *parser.Identifier

GetEnumValueIdentifierNode enum A { ONE }, ONE is the target node

func GetExceptionNode

func GetExceptionNode(ast *parser.Document, name string) *parser.Exception

func GetServiceNode added in v0.1.2

func GetServiceNode(ast *parser.Document, name string) *parser.Service

func GetStructNode

func GetStructNode(ast *parser.Document, name string) *parser.Struct

func GetTypedefNode

func GetTypedefNode(ast *parser.Document, name string) *parser.Typedef

func GetUnionNode

func GetUnionNode(ast *parser.Document, name string) *parser.Union

func Hover

func Hover(ctx context.Context, ss *cache.Snapshot, file uri.URI, pos protocol.Position) (res string, err error)

func IsBasicType added in v0.0.9

func IsBasicType(t string) bool

func IsContainerType added in v0.0.9

func IsContainerType(t string) bool

func PrepareRename

func PrepareRename(ctx context.Context, ss *cache.Snapshot, file uri.URI, pos protocol.Position) (res *protocol.Range, err error)

func Reference

func Reference(ctx context.Context, ss *cache.Snapshot, file uri.URI, pos protocol.Position) (res []protocol.Location, err error)

func Rename

func Rename(ctx context.Context, ss *cache.Snapshot, file uri.URI, pos protocol.Position, newName string) (res *protocol.WorkspaceEdit, err error)

func ServiceDefinitionIdentifier added in v0.1.2

func ServiceDefinitionIdentifier(ctx context.Context, ss *cache.Snapshot, file uri.URI, ast *parser.Document, targetNode parser.Node) (uri.URI, *parser.Identifier, string, error)

func TypeDefinition

func TypeDefinition(ctx context.Context, ss *cache.Snapshot, file uri.URI, pos protocol.Position) (res []protocol.Location, err error)

func TypeNameDefinitionIdentifier added in v0.0.9

func TypeNameDefinitionIdentifier(ctx context.Context, ss *cache.Snapshot, file uri.URI, ast *parser.Document, targetNode parser.Node) (uri.URI, *parser.Identifier, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL