Documentation
¶
Index ¶
- func StringifyItem(item debug.Item) string
- func StringifyItemFull(item debug.Item) string
- type AnnotationOpt
- type AnnotationType
- type Annotator
- func (ann *Annotator) AnnotateAstFile(astFile *ast.File)
- func (ann *Annotator) ResArrayType(ctx *Ctx, at *ast.ArrayType) ast.Expr
- func (ann *Annotator) ResBasicLit(ctx *Ctx, bl *ast.BasicLit) ast.Expr
- func (ann *Annotator) ResBinaryExpr(ctx *Ctx, be *ast.BinaryExpr) ast.Expr
- func (ann *Annotator) ResCallExpr(ctx *Ctx, ce *ast.CallExpr) ast.Expr
- func (ann *Annotator) ResChanType(ctx *Ctx, ct *ast.ChanType) ast.Expr
- func (ann *Annotator) ResCompositeLit(ctx *Ctx, cl *ast.CompositeLit) ast.Expr
- func (ann *Annotator) ResFuncLit(ctx *Ctx, fl *ast.FuncLit) ast.Expr
- func (ann *Annotator) ResIdent(ctx *Ctx, id *ast.Ident) ast.Expr
- func (ann *Annotator) ResIndexExpr(ctx *Ctx, ie *ast.IndexExpr) ast.Expr
- func (ann *Annotator) ResInterfaceType(ctx *Ctx, it *ast.InterfaceType) ast.Expr
- func (ann *Annotator) ResKeyValueExpr(ctx *Ctx, kv *ast.KeyValueExpr) ast.Expr
- func (ann *Annotator) ResMapType(ctx *Ctx, mt *ast.MapType) ast.Expr
- func (ann *Annotator) ResParenExpr(ctx *Ctx, pe *ast.ParenExpr) ast.Expr
- func (ann *Annotator) ResSelectorExpr(ctx *Ctx, se *ast.SelectorExpr) ast.Expr
- func (ann *Annotator) ResSliceExpr(ctx *Ctx, se *ast.SliceExpr) ast.Expr
- func (ann *Annotator) ResStarExpr(ctx *Ctx, se *ast.StarExpr) ast.Expr
- func (ann *Annotator) ResTypeAssertExpr(ctx *Ctx, tae *ast.TypeAssertExpr) ast.Expr
- func (ann *Annotator) ResUnaryExpr(ctx *Ctx, ue *ast.UnaryExpr) ast.Expr
- func (ann *Annotator) VisAssignStmt(ctx *Ctx, as *ast.AssignStmt)
- func (ann *Annotator) VisBlockStmt(ctx *Ctx, bs *ast.BlockStmt)
- func (ann *Annotator) VisBranchStmt(ctx *Ctx, bs *ast.BranchStmt)
- func (ann *Annotator) VisCaseClause(ctx *Ctx, cc *ast.CaseClause)
- func (ann *Annotator) VisCommClause(ctx *Ctx, cc *ast.CommClause)
- func (ann *Annotator) VisDeclStmt(ctx *Ctx, ds *ast.DeclStmt)
- func (ann *Annotator) VisDeferStmt(ctx *Ctx, ds *ast.DeferStmt)
- func (ann *Annotator) VisExprStmt(ctx *Ctx, es *ast.ExprStmt)
- func (ann *Annotator) VisFile(ctx *Ctx, file *ast.File)
- func (ann *Annotator) VisForStmt(ctx *Ctx, fs *ast.ForStmt)
- func (ann *Annotator) VisFuncDecl(ctx *Ctx, fd *ast.FuncDecl)
- func (ann *Annotator) VisGenDecl(ctx *Ctx, gd *ast.GenDecl)
- func (ann *Annotator) VisGoStmt(ctx *Ctx, gs *ast.GoStmt)
- func (ann *Annotator) VisIfStmt(ctx *Ctx, is *ast.IfStmt)
- func (ann *Annotator) VisImportSpec(ctx *Ctx, is *ast.ImportSpec)
- func (ann *Annotator) VisIncDecStmt(ctx *Ctx, ids *ast.IncDecStmt)
- func (ann *Annotator) VisLabeledStmt(ctx *Ctx, ls *ast.LabeledStmt)
- func (ann *Annotator) VisRangeStmt(ctx *Ctx, rs *ast.RangeStmt)
- func (ann *Annotator) VisReturnStmt(ctx *Ctx, rs *ast.ReturnStmt)
- func (ann *Annotator) VisSelectStmt(ctx *Ctx, ss *ast.SelectStmt)
- func (ann *Annotator) VisSendStmt(ctx *Ctx, ss *ast.SendStmt)
- func (ann *Annotator) VisSwitchStmt(ctx *Ctx, ss *ast.SwitchStmt)
- func (ann *Annotator) VisTypeSwitchStmt(ctx *Ctx, tss *ast.TypeSwitchStmt)
- func (ann *Annotator) VisValueSpec(ctx *Ctx, vs *ast.ValueSpec)
- type AnnotatorSet
- type Client
- type Cmd
- type CommentWithNode
- type Ctx
- type DebugIndex
- type FilesToAnnotate
- type FixedDebugIndex
- type ItemStringifier
- type StmtsIter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringifyItem ¶
func StringifyItemFull ¶
Types ¶
type AnnotationOpt ¶ added in v1.1.0
type AnnotationType ¶
type AnnotationType int
const ( // Order matters, last is the bigger set AnnotationTypeNone AnnotationType = iota AnnotationTypeOff AnnotationTypeBlock AnnotationTypeFile AnnotationTypeImport // annotates set of files (importspec) AnnotationTypePackage // annotates set of files AnnotationTypeModule // annotates set of packages )
func AnnotationTypeInString ¶ added in v1.1.0
func AnnotationTypeInString(s string) (AnnotationType, string, error)
type Annotator ¶
type Annotator struct {
// contains filtered or unexported fields
}
func NewAnnotator ¶
func (*Annotator) AnnotateAstFile ¶
func (*Annotator) ResArrayType ¶ added in v1.3.3
func (*Annotator) ResBasicLit ¶ added in v1.3.3
func (*Annotator) ResBinaryExpr ¶ added in v1.3.3
func (*Annotator) ResCallExpr ¶ added in v1.3.3
func (*Annotator) ResChanType ¶ added in v1.3.3
func (*Annotator) ResCompositeLit ¶ added in v1.3.3
func (*Annotator) ResFuncLit ¶ added in v1.3.3
func (*Annotator) ResIndexExpr ¶ added in v1.3.3
func (*Annotator) ResInterfaceType ¶ added in v1.3.3
func (*Annotator) ResKeyValueExpr ¶ added in v1.3.3
func (*Annotator) ResMapType ¶ added in v1.3.3
func (*Annotator) ResParenExpr ¶ added in v1.3.3
func (*Annotator) ResSelectorExpr ¶ added in v1.3.3
func (*Annotator) ResSliceExpr ¶ added in v1.3.3
func (*Annotator) ResStarExpr ¶ added in v1.3.3
func (*Annotator) ResTypeAssertExpr ¶ added in v1.3.3
func (*Annotator) ResUnaryExpr ¶ added in v1.3.3
func (*Annotator) VisAssignStmt ¶ added in v1.3.3
func (ann *Annotator) VisAssignStmt(ctx *Ctx, as *ast.AssignStmt)
func (*Annotator) VisBlockStmt ¶ added in v1.3.3
func (*Annotator) VisBranchStmt ¶ added in v1.3.3
func (ann *Annotator) VisBranchStmt(ctx *Ctx, bs *ast.BranchStmt)
func (*Annotator) VisCaseClause ¶ added in v1.3.3
func (ann *Annotator) VisCaseClause(ctx *Ctx, cc *ast.CaseClause)
func (*Annotator) VisCommClause ¶ added in v1.3.3
func (ann *Annotator) VisCommClause(ctx *Ctx, cc *ast.CommClause)
func (*Annotator) VisDeclStmt ¶ added in v1.3.3
func (*Annotator) VisDeferStmt ¶ added in v1.3.3
func (*Annotator) VisExprStmt ¶ added in v1.3.3
func (*Annotator) VisForStmt ¶ added in v1.3.3
func (*Annotator) VisFuncDecl ¶ added in v1.3.3
func (*Annotator) VisGenDecl ¶ added in v1.3.3
func (*Annotator) VisImportSpec ¶ added in v1.3.3
func (ann *Annotator) VisImportSpec(ctx *Ctx, is *ast.ImportSpec)
func (*Annotator) VisIncDecStmt ¶ added in v1.3.3
func (ann *Annotator) VisIncDecStmt(ctx *Ctx, ids *ast.IncDecStmt)
func (*Annotator) VisLabeledStmt ¶ added in v1.3.3
func (ann *Annotator) VisLabeledStmt(ctx *Ctx, ls *ast.LabeledStmt)
func (*Annotator) VisRangeStmt ¶ added in v1.3.3
func (*Annotator) VisReturnStmt ¶ added in v1.3.3
func (ann *Annotator) VisReturnStmt(ctx *Ctx, rs *ast.ReturnStmt)
func (*Annotator) VisSelectStmt ¶ added in v1.3.3
func (ann *Annotator) VisSelectStmt(ctx *Ctx, ss *ast.SelectStmt)
func (*Annotator) VisSendStmt ¶ added in v1.3.3
func (*Annotator) VisSwitchStmt ¶ added in v1.3.3
func (ann *Annotator) VisSwitchStmt(ctx *Ctx, ss *ast.SwitchStmt)
func (*Annotator) VisTypeSwitchStmt ¶ added in v1.3.3
func (ann *Annotator) VisTypeSwitchStmt(ctx *Ctx, tss *ast.TypeSwitchStmt)
type AnnotatorSet ¶
type AnnotatorSet struct {
// contains filtered or unexported fields
}
func NewAnnotatorSet ¶
func NewAnnotatorSet(fset *token.FileSet) *AnnotatorSet
func (*AnnotatorSet) AnnotateAstFile ¶
func (annset *AnnotatorSet) AnnotateAstFile(astFile *ast.File, ti *types.Info, nat map[ast.Node]AnnotationType) error
func (*AnnotatorSet) BuildConfigSrc ¶ added in v1.3.3
func (annset *AnnotatorSet) BuildConfigSrc(serverNetwork, serverAddr string, flags *flags) []byte
type Client ¶
type Cmd ¶
type Cmd struct {
Dir string // running directory
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
Client *Client
// contains filtered or unexported fields
}
func (*Cmd) FilesData ¶ added in v1.3.3
func (cmd *Cmd) FilesData() *debug.FilesDataMsg
type CommentWithNode ¶ added in v1.3.3
type DebugIndex ¶ added in v1.3.3
type DebugIndex struct {
// contains filtered or unexported fields
}
type FilesToAnnotate ¶ added in v1.3.3
type FilesToAnnotate struct {
// contains filtered or unexported fields
}
func NewFilesToAnnotate ¶ added in v1.3.3
func NewFilesToAnnotate(cmd *Cmd) *FilesToAnnotate
func (*FilesToAnnotate) GoModFilename ¶ added in v1.3.3
func (fa *FilesToAnnotate) GoModFilename() (string, bool)
type FixedDebugIndex ¶ added in v1.3.3
type FixedDebugIndex struct {
// contains filtered or unexported fields
}
type ItemStringifier ¶
type ItemStringifier struct {
// contains filtered or unexported fields
}
func NewItemStringifier ¶ added in v1.3.3
func NewItemStringifier() *ItemStringifier
Source Files
¶
Click to show internal directories.
Click to hide internal directories.