Documentation ¶
Index ¶
- func BuildServerHandler(conn jsonrpc2.Conn, e *env.Env) jsonrpc2.Handler
- func FormatHoverContent(header, body string) string
- func GoToGnoFileName(fname string) string
- func ListGnoFiles(path string) ([]string, error)
- func ListGnoPackages(paths []string) ([]string, error)
- func RunServer(ctx context.Context, env *env.Env) error
- type Cache
- type CompletionStore
- type ErrorInfo
- type Field
- type FileInfo
- type Function
- type GnoFile
- type HoveredToken
- type Method
- type Package
- type PackageGetter
- type PackageInfo
- type ParsedGnoFile
- type ParsedGnoMod
- type Selection
- type Snapshot
- type Structure
- type Symbol
- type TypeCheck
- type TypeCheckResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatHoverContent ¶
func GoToGnoFileName ¶
GoToGnoFileName return gno file name from generated go file If not a generated go file, return unchanged fname
func ListGnoFiles ¶
func ListGnoPackages ¶
Types ¶
type CompletionStore ¶
type CompletionStore struct {
// contains filtered or unexported fields
}
func InitCompletionStore ¶
func InitCompletionStore(dirs []string) *CompletionStore
type Function ¶
type Function struct { Position token.Position FileURI uri.URI Name string Arguments []*Field Doc string Signature string Kind string }
func (*Function) IsExported ¶
type HoveredToken ¶
type Method ¶
type Method struct { Position token.Position FileURI uri.URI Name string Arguments []*Field Doc string Signature string Kind string }
func (*Method) IsExported ¶
type Package ¶
type Package struct { Name string ImportPath string Symbols []*Symbol Functions []*Function Methods cmap.ConcurrentMap[string, []*Method] Structures []*Structure TypeCheckResult *TypeCheckResult }
type PackageGetter ¶
type PackageGetter interface {
GetPackageInfo(path string) *PackageInfo
}
type PackageInfo ¶
func GetPackageInfo ¶
func GetPackageInfo(path string) (*PackageInfo, error)
GetPackageInfo accepts path(abs) or importpath and returns PackageInfo if found. Note: it doesn't work for relative path
func (*PackageInfo) TypeCheck ¶
func (pi *PackageInfo) TypeCheck(tc *TypeCheck) *TypeCheckResult
type ParsedGnoFile ¶
type ParsedGnoFile struct { URI protocol.DocumentURI File *ast.File Fset *token.FileSet Src []byte }
contains parsed gno file.
type ParsedGnoMod ¶
contains parsed gno.mod file.
type Selection ¶
type Selection struct {
// contains filtered or unexported fields
}
A Selection represents the cursor position and surrounding identifier.
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
func NewSnapshot ¶
func NewSnapshot() *Snapshot
type Symbol ¶
type TypeCheck ¶
type TypeCheck struct {
// contains filtered or unexported fields
}
func NewTypeCheck ¶
func (*TypeCheck) ImportFrom ¶
ImportFrom returns the imported package for the given import path
type TypeCheckResult ¶
type TypeCheckResult struct {
// contains filtered or unexported fields
}
func (*TypeCheckResult) Errors ¶
func (tcr *TypeCheckResult) Errors() []ErrorInfo
Click to show internal directories.
Click to hide internal directories.