Documentation ¶
Index ¶
- Variables
- type Context
- type MultiChangeSuggestParams
- type NodeReplacement
- type ReportParams
- type SharedContext
- func (ctx *SharedContext) EndPosition(n ast.Node) token.Position
- func (ctx *SharedContext) NodeText(n ast.Node) []byte
- func (ctx *SharedContext) ObjectOf(x *ast.Ident) types.Object
- func (ctx *SharedContext) Position(n ast.Node) token.Position
- func (ctx *SharedContext) Reset(target *Target)
- func (ctx *SharedContext) Sprintf(format string, args ...interface{}) string
- func (ctx *SharedContext) TypeOf(x ast.Expr) types.Type
- func (ctx *SharedContext) VarOf(x *ast.Ident) *types.Var
- type SourceFile
- type SuggestParams
- type Target
- type TextEdit
- type Warning
Constants ¶
This section is empty.
Variables ¶
UnknownType is a special sentinel value that is returned from the CheckerContext.TypeOf method instead of the nil type.
View Source
var UnknownVar = types.NewVar( token.NoPos, types.NewPackage("unknown", "unknown"), "unknown", UnknownType)
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { // contains filtered or unexported fields }
func NewContext ¶
func (*Context) MultiChangeSuggest ¶
func (ctx *Context) MultiChangeSuggest(params MultiChangeSuggestParams)
func (*Context) Report ¶
func (ctx *Context) Report(params ReportParams)
func (*Context) SuggestNode ¶
func (ctx *Context) SuggestNode(params SuggestParams)
type NodeReplacement ¶
type ReportParams ¶
type SharedContext ¶
type SharedContext struct { // Only relevant for funccall checkers. Sym resolve.CallInfo // contains filtered or unexported fields }
func (*SharedContext) EndPosition ¶
func (ctx *SharedContext) EndPosition(n ast.Node) token.Position
func (*SharedContext) Reset ¶
func (ctx *SharedContext) Reset(target *Target)
func (*SharedContext) Sprintf ¶
func (ctx *SharedContext) Sprintf(format string, args ...interface{}) string
type SourceFile ¶
type SuggestParams ¶
Click to show internal directories.
Click to hide internal directories.