-
Notifications
You must be signed in to change notification settings - Fork 0
/
visitor.go
63 lines (61 loc) · 2.46 KB
/
visitor.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package astvisit
import (
"go/ast"
)
type Visitor interface {
VisitComment(*ast.Comment, Cursor) bool
VisitCommentGroup(*ast.CommentGroup, Cursor) bool
VisitField(*ast.Field, Cursor) bool
VisitFieldList(*ast.FieldList, Cursor) bool
VisitBadExpr(*ast.BadExpr, Cursor) bool
VisitIdent(*ast.Ident, Cursor) bool
VisitBasicLit(*ast.BasicLit, Cursor) bool
VisitEllipsis(*ast.Ellipsis, Cursor) bool
VisitFuncLit(*ast.FuncLit, Cursor) bool
VisitCompositeLit(*ast.CompositeLit, Cursor) bool
VisitParenExpr(*ast.ParenExpr, Cursor) bool
VisitSelectorExpr(*ast.SelectorExpr, Cursor) bool
VisitIndexExpr(*ast.IndexExpr, Cursor) bool
VisitSliceExpr(*ast.SliceExpr, Cursor) bool
VisitTypeAssertExpr(*ast.TypeAssertExpr, Cursor) bool
VisitCallExpr(*ast.CallExpr, Cursor) bool
VisitStarExpr(*ast.StarExpr, Cursor) bool
VisitUnaryExpr(*ast.UnaryExpr, Cursor) bool
VisitBinaryExpr(*ast.BinaryExpr, Cursor) bool
VisitKeyValueExpr(*ast.KeyValueExpr, Cursor) bool
VisitArrayType(*ast.ArrayType, Cursor) bool
VisitStructType(*ast.StructType, Cursor) bool
VisitFuncType(*ast.FuncType, Cursor) bool
VisitInterfaceType(*ast.InterfaceType, Cursor) bool
VisitMapType(*ast.MapType, Cursor) bool
VisitChanType(*ast.ChanType, Cursor) bool
VisitBadStmt(*ast.BadStmt, Cursor) bool
VisitDeclStmt(*ast.DeclStmt, Cursor) bool
VisitEmptyStmt(*ast.EmptyStmt, Cursor) bool
VisitLabeledStmt(*ast.LabeledStmt, Cursor) bool
VisitExprStmt(*ast.ExprStmt, Cursor) bool
VisitSendStmt(*ast.SendStmt, Cursor) bool
VisitIncDecStmt(*ast.IncDecStmt, Cursor) bool
VisitAssignStmt(*ast.AssignStmt, Cursor) bool
VisitGoStmt(*ast.GoStmt, Cursor) bool
VisitDeferStmt(*ast.DeferStmt, Cursor) bool
VisitReturnStmt(*ast.ReturnStmt, Cursor) bool
VisitBranchStmt(*ast.BranchStmt, Cursor) bool
VisitBlockStmt(*ast.BlockStmt, Cursor) bool
VisitIfStmt(*ast.IfStmt, Cursor) bool
VisitCaseClause(*ast.CaseClause, Cursor) bool
VisitSwitchStmt(*ast.SwitchStmt, Cursor) bool
VisitTypeSwitchStmt(*ast.TypeSwitchStmt, Cursor) bool
VisitCommClause(*ast.CommClause, Cursor) bool
VisitSelectStmt(*ast.SelectStmt, Cursor) bool
VisitForStmt(*ast.ForStmt, Cursor) bool
VisitRangeStmt(*ast.RangeStmt, Cursor) bool
VisitImportSpec(*ast.ImportSpec, Cursor) bool
VisitValueSpec(*ast.ValueSpec, Cursor) bool
VisitTypeSpec(*ast.TypeSpec, Cursor) bool
VisitBadDecl(*ast.BadDecl, Cursor) bool
VisitGenDecl(*ast.GenDecl, Cursor) bool
VisitFuncDecl(*ast.FuncDecl, Cursor) bool
VisitFile(*ast.File, Cursor) bool
VisitPackage(*ast.Package, Cursor) bool
}