Documentation
¶
Index ¶
- func Fprint(w io.Writer, fset *token.FileSet, x any, f FieldFilter) error
- func IsExported(name string) bool
- func ModuleName(specifier string) (name string, err error)
- func NotNilFilter(_ string, v reflect.Value) bool
- func Print(fset *token.FileSet, x any) error
- type ArrayInitializer
- type ArrayLiteral
- type AssignStmt
- type AwaitExpr
- type BadExpr
- type BadStmt
- type BinaryExpr
- type BindExpr
- type BracketPropertyExpr
- type BracketSelectorExpr
- type BranchStmt
- type CallExpr
- type CatchStmt
- type Comment
- type CommentGroup
- type CompositeField
- type CompositeLiteral
- type ConstStmt
- type DoExpr
- type EllipsisExpr
- type EmptyStmt
- type ExportDeclStmt
- type ExportField
- type ExportFieldAs
- type ExportFieldIdent
- type ExportList
- type ExportListStmt
- type ExportSpecStmt
- type Expr
- type ExprStmt
- type FieldFilter
- type FinallyStmt
- type ForStmt
- type FrozenExpr
- type FuncExpr
- type FuncParam
- type FuncParamList
- type GeneratorExpr
- type Ident
- type IfExpr
- type IfStmt
- type ImportStmt
- type IncDecStmt
- type KeyValueExpr
- type LabeledStmt
- type LetStmt
- type Literal
- type MatchArm
- type MatchElse
- type MatchExpr
- type MatchPattern
- type Module
- type ModuleSpec
- type ModuleSpecAs
- type ModuleSpecPlain
- type ModuleSpecShow
- type ModuleType
- type NativeConst
- type NativeExpr
- type NativeFunc
- type NativeOperator
- type NativeStmt
- type NativeStruct
- type Node
- type NodePrinter
- type OperatorStmt
- type ParenExpr
- type PatternBinding
- type PatternComposite
- type PatternCompositeField
- type PatternExpr
- type PatternNormal
- type PatternParen
- type PatternRange
- type PatternTuple
- type PatternType
- type PosRange
- type PropertyExpr
- type RangeExpr
- type RepeatCountStmt
- type RepeatForeverStmt
- type RepeatWhileStmt
- type ReturnStmt
- type SelectorExpr
- type Show
- type ShowField
- type ShowFieldAs
- type ShowFieldEllipsis
- type ShowFieldIdent
- type ShowFieldSpec
- type SliceExpr
- type Stmt
- type StringLiteral
- type StringLiteralEnd
- type StringLiteralInterpExpr
- type StringLiteralInterpIdent
- type StringLiteralMiddle
- type StringLiteralPart
- type StringLiteralStart
- type StructField
- type StructFieldList
- type StructInit
- type StructStmt
- type SymbolExpr
- type SymbolStmt
- type ThrowExpr
- type Token
- type TryStmt
- type UnaryExpr
- type YieldStmt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fprint ¶
Fprint prints the (sub-)tree starting at AST node x to w. If fset != nil, position information is interpreted relative to that file set. Otherwise positions are printed as integer values (file set specific offsets).
A non-nil FieldFilter f may be provided to control the output: struct fields for which f(fieldname, fieldvalue) is true are printed; all others are filtered from the output. Unexported struct fields are never printed.
func IsExported ¶
IsExported reports whether name starts with an upper-case letter.
func ModuleName ¶
func NotNilFilter ¶
NotNilFilter returns true for field values that are not nil; it returns false otherwise.
Types ¶
type ArrayInitializer ¶
type ArrayInitializer struct {
Opening token.Pos
Value Expr
Semi token.Pos
Count Expr
Closing token.Pos
}
func (*ArrayInitializer) End ¶
func (x *ArrayInitializer) End() token.Pos
func (*ArrayInitializer) Flatten ¶
func (x *ArrayInitializer) Flatten() []Node
func (*ArrayInitializer) Pos ¶
func (x *ArrayInitializer) Pos() token.Pos
type ArrayLiteral ¶
func (*ArrayLiteral) End ¶
func (x *ArrayLiteral) End() token.Pos
func (*ArrayLiteral) Flatten ¶
func (x *ArrayLiteral) Flatten() []Node
func (*ArrayLiteral) Pos ¶
func (x *ArrayLiteral) Pos() token.Pos
type AssignStmt ¶
func (*AssignStmt) End ¶
func (s *AssignStmt) End() token.Pos
func (*AssignStmt) Flatten ¶
func (s *AssignStmt) Flatten() []Node
func (*AssignStmt) Pos ¶
func (s *AssignStmt) Pos() token.Pos
type BinaryExpr ¶
func (*BinaryExpr) End ¶
func (x *BinaryExpr) End() token.Pos
func (*BinaryExpr) Flatten ¶
func (x *BinaryExpr) Flatten() []Node
func (*BinaryExpr) Pos ¶
func (x *BinaryExpr) Pos() token.Pos
type BracketPropertyExpr ¶
func (*BracketPropertyExpr) End ¶
func (x *BracketPropertyExpr) End() token.Pos
func (*BracketPropertyExpr) Flatten ¶
func (x *BracketPropertyExpr) Flatten() []Node
func (*BracketPropertyExpr) Pos ¶
func (x *BracketPropertyExpr) Pos() token.Pos
type BracketSelectorExpr ¶
func (*BracketSelectorExpr) End ¶
func (x *BracketSelectorExpr) End() token.Pos
func (*BracketSelectorExpr) Flatten ¶
func (x *BracketSelectorExpr) Flatten() []Node
func (*BracketSelectorExpr) Pos ¶
func (x *BracketSelectorExpr) Pos() token.Pos
type BranchStmt ¶
func (*BranchStmt) End ¶
func (s *BranchStmt) End() token.Pos
func (*BranchStmt) Flatten ¶
func (s *BranchStmt) Flatten() []Node
func (*BranchStmt) Pos ¶
func (s *BranchStmt) Pos() token.Pos
type CommentGroup ¶
type CommentGroup struct{ List []*Comment }
func (*CommentGroup) End ¶
func (g *CommentGroup) End() token.Pos
func (*CommentGroup) Pos ¶
func (g *CommentGroup) Pos() token.Pos
func (*CommentGroup) Text ¶
func (g *CommentGroup) Text() string
type CompositeField ¶
type CompositeLiteral ¶
type CompositeLiteral struct {
Lbrace token.Pos
Fields []*CompositeField
Rbrace token.Pos
}
func (*CompositeLiteral) End ¶
func (x *CompositeLiteral) End() token.Pos
func (*CompositeLiteral) Flatten ¶
func (x *CompositeLiteral) Flatten() []Node
func (*CompositeLiteral) Pos ¶
func (x *CompositeLiteral) Pos() token.Pos
type EllipsisExpr ¶
func (*EllipsisExpr) End ¶
func (x *EllipsisExpr) End() token.Pos
func (*EllipsisExpr) Flatten ¶
func (x *EllipsisExpr) Flatten() []Node
func (*EllipsisExpr) Pos ¶
func (x *EllipsisExpr) Pos() token.Pos
type ExportDeclStmt ¶
func (*ExportDeclStmt) End ¶
func (s *ExportDeclStmt) End() token.Pos
func (*ExportDeclStmt) Flatten ¶
func (s *ExportDeclStmt) Flatten() []Node
func (*ExportDeclStmt) Pos ¶
func (s *ExportDeclStmt) Pos() token.Pos
type ExportField ¶
type ExportField interface {
Node
// contains filtered or unexported methods
}
type ExportFieldAs ¶
export "foo" show { foo as foo2 }
func (*ExportFieldAs) End ¶
func (s *ExportFieldAs) End() token.Pos
func (*ExportFieldAs) Flatten ¶
func (s *ExportFieldAs) Flatten() []Node
func (*ExportFieldAs) Pos ¶
func (s *ExportFieldAs) Pos() token.Pos
type ExportFieldIdent ¶
type ExportFieldIdent struct {
Ident *Ident
}
export "foo" show { foo }
func (*ExportFieldIdent) End ¶
func (s *ExportFieldIdent) End() token.Pos
func (*ExportFieldIdent) Flatten ¶
func (s *ExportFieldIdent) Flatten() []Node
func (*ExportFieldIdent) Pos ¶
func (s *ExportFieldIdent) Pos() token.Pos
type ExportList ¶
type ExportList struct {
LBrace token.Pos
Fields []ExportField
RBrace token.Pos
}
func (*ExportList) End ¶
func (s *ExportList) End() token.Pos
func (*ExportList) Flatten ¶
func (s *ExportList) Flatten() []Node
func (*ExportList) Pos ¶
func (s *ExportList) Pos() token.Pos
type ExportListStmt ¶
type ExportListStmt struct {
Export token.Pos
List *ExportList
}
func (*ExportListStmt) End ¶
func (s *ExportListStmt) End() token.Pos
func (*ExportListStmt) Flatten ¶
func (s *ExportListStmt) Flatten() []Node
func (*ExportListStmt) Pos ¶
func (s *ExportListStmt) Pos() token.Pos
type ExportSpecStmt ¶
type ExportSpecStmt struct {
Export token.Pos
Spec ModuleSpec
}
func (*ExportSpecStmt) End ¶
func (s *ExportSpecStmt) End() token.Pos
func (*ExportSpecStmt) Flatten ¶
func (s *ExportSpecStmt) Flatten() []Node
func (*ExportSpecStmt) Pos ¶
func (s *ExportSpecStmt) Pos() token.Pos
type FieldFilter ¶
A FieldFilter may be provided to Fprint to control the output.
type FinallyStmt ¶
func (*FinallyStmt) End ¶
func (s *FinallyStmt) End() token.Pos
func (*FinallyStmt) Flatten ¶
func (s *FinallyStmt) Flatten() []Node
func (*FinallyStmt) Pos ¶
func (s *FinallyStmt) Pos() token.Pos
type ForStmt ¶
type FrozenExpr ¶
func (*FrozenExpr) End ¶
func (x *FrozenExpr) End() token.Pos
func (*FrozenExpr) Flatten ¶
func (x *FrozenExpr) Flatten() []Node
func (*FrozenExpr) Pos ¶
func (x *FrozenExpr) Pos() token.Pos
type FuncExpr ¶
type FuncParamList ¶
func (*FuncParamList) End ¶
func (f *FuncParamList) End() token.Pos
func (*FuncParamList) Flatten ¶
func (f *FuncParamList) Flatten() []Node
func (*FuncParamList) NumFields ¶
func (f *FuncParamList) NumFields() int
func (*FuncParamList) Pos ¶
func (f *FuncParamList) Pos() token.Pos
type GeneratorExpr ¶
type GeneratorExpr struct {
Async token.Pos
Generator token.Pos
Receiver *Ident
Name *Ident
Params *FuncParamList
Body []Stmt
BlockEnd token.Pos
}
func (*GeneratorExpr) End ¶
func (s *GeneratorExpr) End() token.Pos
func (*GeneratorExpr) Flatten ¶
func (s *GeneratorExpr) Flatten() []Node
func (*GeneratorExpr) Pos ¶
func (s *GeneratorExpr) Pos() token.Pos
type IfExpr ¶
type ImportStmt ¶
type ImportStmt struct {
Import token.Pos
Spec ModuleSpec
}
func (*ImportStmt) End ¶
func (s *ImportStmt) End() token.Pos
func (*ImportStmt) Flatten ¶
func (s *ImportStmt) Flatten() []Node
func (*ImportStmt) Pos ¶
func (s *ImportStmt) Pos() token.Pos
type IncDecStmt ¶
func (*IncDecStmt) End ¶
func (s *IncDecStmt) End() token.Pos
func (*IncDecStmt) Flatten ¶
func (s *IncDecStmt) Flatten() []Node
func (*IncDecStmt) Pos ¶
func (s *IncDecStmt) Pos() token.Pos
type KeyValueExpr ¶
func (*KeyValueExpr) End ¶
func (x *KeyValueExpr) End() token.Pos
func (*KeyValueExpr) Flatten ¶
func (x *KeyValueExpr) Flatten() []Node
func (*KeyValueExpr) Pos ¶
func (x *KeyValueExpr) Pos() token.Pos
type LabeledStmt ¶
func (*LabeledStmt) End ¶
func (s *LabeledStmt) End() token.Pos
func (*LabeledStmt) Flatten ¶
func (s *LabeledStmt) Flatten() []Node
func (*LabeledStmt) Pos ¶
func (s *LabeledStmt) Pos() token.Pos
type MatchPattern ¶
type MatchPattern struct {
Pattern PatternExpr
Arrow token.Pos
Expr Expr
}
func (*MatchPattern) End ¶
func (x *MatchPattern) End() token.Pos
func (*MatchPattern) Flatten ¶
func (x *MatchPattern) Flatten() []Node
func (*MatchPattern) Pos ¶
func (x *MatchPattern) Pos() token.Pos
type Module ¶
type ModuleSpec ¶
type ModuleSpecAs ¶
func (*ModuleSpecAs) End ¶
func (s *ModuleSpecAs) End() token.Pos
func (*ModuleSpecAs) Flatten ¶
func (s *ModuleSpecAs) Flatten() []Node
func (*ModuleSpecAs) ModuleSpecifier ¶
func (s *ModuleSpecAs) ModuleSpecifier() string
func (*ModuleSpecAs) Pos ¶
func (s *ModuleSpecAs) Pos() token.Pos
type ModuleSpecPlain ¶
func (*ModuleSpecPlain) End ¶
func (s *ModuleSpecPlain) End() token.Pos
func (*ModuleSpecPlain) Flatten ¶
func (s *ModuleSpecPlain) Flatten() []Node
func (*ModuleSpecPlain) ModuleSpecifier ¶
func (s *ModuleSpecPlain) ModuleSpecifier() string
func (*ModuleSpecPlain) Pos ¶
func (s *ModuleSpecPlain) Pos() token.Pos
type ModuleSpecShow ¶
func (*ModuleSpecShow) End ¶
func (s *ModuleSpecShow) End() token.Pos
func (*ModuleSpecShow) Flatten ¶
func (s *ModuleSpecShow) Flatten() []Node
func (*ModuleSpecShow) ModuleSpecifier ¶
func (s *ModuleSpecShow) ModuleSpecifier() string
func (*ModuleSpecShow) Pos ¶
func (s *ModuleSpecShow) Pos() token.Pos
type ModuleType ¶
type ModuleType int
const ( ModuleTypeFilesystem ModuleType = iota ModuleTypeMemory ModuleTypeNetwork )
type NativeConst ¶
func (*NativeConst) End ¶
func (s *NativeConst) End() token.Pos
func (*NativeConst) Flatten ¶
func (s *NativeConst) Flatten() []Node
func (*NativeConst) Pos ¶
func (s *NativeConst) Pos() token.Pos
type NativeExpr ¶
func (*NativeExpr) End ¶
func (s *NativeExpr) End() token.Pos
func (*NativeExpr) Flatten ¶
func (s *NativeExpr) Flatten() []Node
func (*NativeExpr) Pos ¶
func (s *NativeExpr) Pos() token.Pos
type NativeFunc ¶
type NativeFunc struct {
Native token.Pos
Async token.Pos
Memo token.Pos
Fn token.Pos
Receiver *Ident
Name *Ident
Params *FuncParamList
}
func (*NativeFunc) End ¶
func (s *NativeFunc) End() token.Pos
func (*NativeFunc) Flatten ¶
func (s *NativeFunc) Flatten() []Node
func (*NativeFunc) Pos ¶
func (s *NativeFunc) Pos() token.Pos
type NativeOperator ¶
type NativeOperator struct {
Native token.Pos
Async token.Pos
Operator token.Pos
Receiver *Ident
TokPos token.Pos
Tok token.Token
Params *FuncParamList
}
func (*NativeOperator) End ¶
func (s *NativeOperator) End() token.Pos
func (*NativeOperator) Flatten ¶
func (s *NativeOperator) Flatten() []Node
func (*NativeOperator) Pos ¶
func (s *NativeOperator) Pos() token.Pos
type NativeStmt ¶
type NativeStmt interface {
Stmt
// contains filtered or unexported methods
}
type NativeStruct ¶
func (*NativeStruct) End ¶
func (s *NativeStruct) End() token.Pos
func (*NativeStruct) Flatten ¶
func (s *NativeStruct) Flatten() []Node
func (*NativeStruct) Pos ¶
func (s *NativeStruct) Pos() token.Pos
type NodePrinter ¶
type NodePrinter struct {
// contains filtered or unexported fields
}
func (*NodePrinter) Print ¶
func (p *NodePrinter) Print(node Node)
func (*NodePrinter) String ¶
func (p *NodePrinter) String() string
type OperatorStmt ¶
type OperatorStmt struct {
Async token.Pos
Operator token.Pos
Receiver *Ident
TokPos token.Pos
Tok token.Token
Params *FuncParamList
Arrow token.Pos
ArrowExpr Expr
Body []Stmt
BlockEnd token.Pos
}
func (*OperatorStmt) End ¶
func (x *OperatorStmt) End() token.Pos
func (*OperatorStmt) Flatten ¶
func (x *OperatorStmt) Flatten() []Node
func (*OperatorStmt) Pos ¶
func (x *OperatorStmt) Pos() token.Pos
type PatternBinding ¶
func (*PatternBinding) End ¶
func (x *PatternBinding) End() token.Pos
func (*PatternBinding) Flatten ¶
func (x *PatternBinding) Flatten() []Node
func (*PatternBinding) Pos ¶
func (x *PatternBinding) Pos() token.Pos
type PatternComposite ¶
type PatternComposite struct {
Opening token.Pos
Fields []*PatternCompositeField
Closing token.Pos
}
func (*PatternComposite) End ¶
func (x *PatternComposite) End() token.Pos
func (*PatternComposite) Flatten ¶
func (x *PatternComposite) Flatten() []Node
func (*PatternComposite) Pos ¶
func (x *PatternComposite) Pos() token.Pos
type PatternCompositeField ¶
type PatternCompositeField struct {
Key PatternExpr
Colon token.Pos
Value PatternExpr
}
type PatternExpr ¶
type PatternExpr interface {
Node
// contains filtered or unexported methods
}
type PatternNormal ¶
type PatternNormal struct {
X Expr
}
func (*PatternNormal) End ¶
func (x *PatternNormal) End() token.Pos
func (*PatternNormal) Flatten ¶
func (x *PatternNormal) Flatten() []Node
func (*PatternNormal) Pos ¶
func (x *PatternNormal) Pos() token.Pos
type PatternParen ¶
type PatternParen struct {
LParen token.Pos
X PatternExpr
RParen token.Pos
}
func (*PatternParen) End ¶
func (x *PatternParen) End() token.Pos
func (*PatternParen) Flatten ¶
func (x *PatternParen) Flatten() []Node
func (*PatternParen) Pos ¶
func (x *PatternParen) Pos() token.Pos
type PatternRange ¶
func (*PatternRange) End ¶
func (x *PatternRange) End() token.Pos
func (*PatternRange) Flatten ¶
func (x *PatternRange) Flatten() []Node
func (*PatternRange) Pos ¶
func (x *PatternRange) Pos() token.Pos
type PatternTuple ¶
type PatternTuple struct {
Opening token.Pos
List []PatternExpr
Closing token.Pos
}
func (*PatternTuple) End ¶
func (x *PatternTuple) End() token.Pos
func (*PatternTuple) Flatten ¶
func (x *PatternTuple) Flatten() []Node
func (*PatternTuple) Pos ¶
func (x *PatternTuple) Pos() token.Pos
type PatternType ¶
func (*PatternType) End ¶
func (x *PatternType) End() token.Pos
func (*PatternType) Flatten ¶
func (x *PatternType) Flatten() []Node
func (*PatternType) Pos ¶
func (x *PatternType) Pos() token.Pos
type PropertyExpr ¶
func (*PropertyExpr) End ¶
func (x *PropertyExpr) End() token.Pos
func (*PropertyExpr) Flatten ¶
func (x *PropertyExpr) Flatten() []Node
func (*PropertyExpr) Pos ¶
func (x *PropertyExpr) Pos() token.Pos
type RepeatCountStmt ¶
type RepeatCountStmt struct {
Repeat token.Pos
Count Expr
Times token.Pos
Body []Stmt
BlockEnd token.Pos
}
func (*RepeatCountStmt) End ¶
func (s *RepeatCountStmt) End() token.Pos
func (*RepeatCountStmt) Flatten ¶
func (s *RepeatCountStmt) Flatten() []Node
func (*RepeatCountStmt) Pos ¶
func (s *RepeatCountStmt) Pos() token.Pos
type RepeatForeverStmt ¶
func (*RepeatForeverStmt) End ¶
func (s *RepeatForeverStmt) End() token.Pos
func (*RepeatForeverStmt) Flatten ¶
func (s *RepeatForeverStmt) Flatten() []Node
func (*RepeatForeverStmt) Pos ¶
func (s *RepeatForeverStmt) Pos() token.Pos
type RepeatWhileStmt ¶
type RepeatWhileStmt struct {
Repeat token.Pos
While token.Pos
Cond Expr
Body []Stmt
BlockEnd token.Pos
}
func (*RepeatWhileStmt) End ¶
func (s *RepeatWhileStmt) End() token.Pos
func (*RepeatWhileStmt) Flatten ¶
func (s *RepeatWhileStmt) Flatten() []Node
func (*RepeatWhileStmt) Pos ¶
func (s *RepeatWhileStmt) Pos() token.Pos
type ReturnStmt ¶
func (*ReturnStmt) End ¶
func (s *ReturnStmt) End() token.Pos
func (*ReturnStmt) Flatten ¶
func (f *ReturnStmt) Flatten() []Node
func (*ReturnStmt) Pos ¶
func (s *ReturnStmt) Pos() token.Pos
type SelectorExpr ¶
func (*SelectorExpr) End ¶
func (x *SelectorExpr) End() token.Pos
func (*SelectorExpr) Flatten ¶
func (x *SelectorExpr) Flatten() []Node
func (*SelectorExpr) Pos ¶
func (x *SelectorExpr) Pos() token.Pos
type Show ¶
type ShowFieldAs ¶
import "foo" show { foo as foo2 }
func (*ShowFieldAs) End ¶
func (s *ShowFieldAs) End() token.Pos
func (*ShowFieldAs) Flatten ¶
func (s *ShowFieldAs) Flatten() []Node
func (*ShowFieldAs) Pos ¶
func (s *ShowFieldAs) Pos() token.Pos
type ShowFieldEllipsis ¶
import "foo" show { ...foo }
func (*ShowFieldEllipsis) End ¶
func (s *ShowFieldEllipsis) End() token.Pos
func (*ShowFieldEllipsis) Flatten ¶
func (s *ShowFieldEllipsis) Flatten() []Node
func (*ShowFieldEllipsis) Pos ¶
func (s *ShowFieldEllipsis) Pos() token.Pos
type ShowFieldIdent ¶
type ShowFieldIdent struct {
Ident *Ident
}
import "foo" show { foo }
func (*ShowFieldIdent) End ¶
func (s *ShowFieldIdent) End() token.Pos
func (*ShowFieldIdent) Flatten ¶
func (s *ShowFieldIdent) Flatten() []Node
func (*ShowFieldIdent) Pos ¶
func (s *ShowFieldIdent) Pos() token.Pos
type ShowFieldSpec ¶
type ShowFieldSpec struct {
Spec ModuleSpec
}
import "foo" show { "utils", "utils" as fooUtils, "utils" show { foo } }
func (*ShowFieldSpec) End ¶
func (s *ShowFieldSpec) End() token.Pos
func (*ShowFieldSpec) Flatten ¶
func (s *ShowFieldSpec) Flatten() []Node
func (*ShowFieldSpec) Pos ¶
func (s *ShowFieldSpec) Pos() token.Pos
type StringLiteral ¶
type StringLiteral struct {
StringStart *StringLiteralStart
Parts []StringLiteralPart
StringEnd *StringLiteralEnd
}
func (*StringLiteral) End ¶
func (x *StringLiteral) End() token.Pos
func (*StringLiteral) Flatten ¶
func (s *StringLiteral) Flatten() []Node
func (*StringLiteral) Pos ¶
func (x *StringLiteral) Pos() token.Pos
func (*StringLiteral) String ¶
func (s *StringLiteral) String() string
type StringLiteralEnd ¶
func (*StringLiteralEnd) End ¶
func (x *StringLiteralEnd) End() token.Pos
func (*StringLiteralEnd) Flatten ¶
func (s *StringLiteralEnd) Flatten() []Node
func (*StringLiteralEnd) Pos ¶
func (x *StringLiteralEnd) Pos() token.Pos
type StringLiteralInterpExpr ¶
func (*StringLiteralInterpExpr) End ¶
func (x *StringLiteralInterpExpr) End() token.Pos
func (*StringLiteralInterpExpr) Flatten ¶
func (s *StringLiteralInterpExpr) Flatten() []Node
func (*StringLiteralInterpExpr) Pos ¶
func (x *StringLiteralInterpExpr) Pos() token.Pos
type StringLiteralInterpIdent ¶
func (*StringLiteralInterpIdent) End ¶
func (x *StringLiteralInterpIdent) End() token.Pos
func (*StringLiteralInterpIdent) Flatten ¶
func (s *StringLiteralInterpIdent) Flatten() []Node
func (*StringLiteralInterpIdent) Pos ¶
func (x *StringLiteralInterpIdent) Pos() token.Pos
type StringLiteralMiddle ¶
func (*StringLiteralMiddle) End ¶
func (x *StringLiteralMiddle) End() token.Pos
func (*StringLiteralMiddle) Flatten ¶
func (s *StringLiteralMiddle) Flatten() []Node
func (*StringLiteralMiddle) Pos ¶
func (x *StringLiteralMiddle) Pos() token.Pos
type StringLiteralPart ¶
type StringLiteralPart interface {
Node
// contains filtered or unexported methods
}
type StringLiteralStart ¶
func (*StringLiteralStart) End ¶
func (x *StringLiteralStart) End() token.Pos
func (*StringLiteralStart) Flatten ¶
func (s *StringLiteralStart) Flatten() []Node
func (*StringLiteralStart) Pos ¶
func (x *StringLiteralStart) Pos() token.Pos
type StructField ¶
func (*StructField) End ¶
func (f *StructField) End() token.Pos
func (*StructField) Flatten ¶
func (f *StructField) Flatten() []Node
func (*StructField) Pos ¶
func (f *StructField) Pos() token.Pos
type StructFieldList ¶
type StructFieldList struct {
Opening token.Pos
List []*StructField
Closing token.Pos
}
func (*StructFieldList) End ¶
func (f *StructFieldList) End() token.Pos
func (*StructFieldList) NumFields ¶
func (f *StructFieldList) NumFields() int
func (*StructFieldList) Pos ¶
func (f *StructFieldList) Pos() token.Pos
type StructInit ¶
func (*StructInit) End ¶
func (x *StructInit) End() token.Pos
func (*StructInit) Flatten ¶
func (x *StructInit) Flatten() []Node
func (*StructInit) Pos ¶
func (x *StructInit) Pos() token.Pos
type StructStmt ¶
type StructStmt struct {
Struct token.Pos
Name *Ident
Fields *StructFieldList
Init *StructInit
}
func (*StructStmt) End ¶
func (x *StructStmt) End() token.Pos
func (*StructStmt) Flatten ¶
func (x *StructStmt) Flatten() []Node
func (*StructStmt) Pos ¶
func (x *StructStmt) Pos() token.Pos
type SymbolExpr ¶
type SymbolStmt ¶
func (*SymbolStmt) End ¶
func (x *SymbolStmt) End() token.Pos
func (*SymbolStmt) Flatten ¶
func (s *SymbolStmt) Flatten() []Node
func (*SymbolStmt) Pos ¶
func (x *SymbolStmt) Pos() token.Pos