Documentation
¶
Index ¶
- type AnonymousField
- type Arguments
- type ArrayType
- type Assignment
- type Block
- type BreakStmt
- type ChannelType
- type CommCase
- type CommClause
- type CompositeLit
- type ConstDecl
- type ConstSpec
- type ContinueStmt
- type Conversion
- type Declaration
- type DeferStmt
- type Element
- type ExprCaseClause
- type ExprSwitchCase
- type ExprSwitchStmt
- type Expression
- type ExpressionList
- type FallthroughStmt
- type FieldDecl
- type ForClause
- type ForStmt
- type Function
- type FunctionDecl
- type FunctionLit
- type FunctionType
- type GoStmt
- type GotoStmt
- type IdentifierList
- type IfStmt
- type Import
- type ImportSpec
- type IncDecStmt
- type Index
- type InlineStructMethod
- type InterfaceType
- type Interpret
- type Key
- type KeyedElement
- type LabeledStmt
- type Literal
- type LiteralType
- type LiteralValue
- type MapType
- type MethodDecl
- type MethodExpr
- type MethodSpec
- type Operand
- type OperandName
- type Package
- type Parameter
- type Parameters
- type PointerType
- type PrimaryExpr
- type RangeClause
- type Receiver
- type ReceiverType
- type RecvStmt
- type Result
- type ReturnStmt
- type SecondaryExpr
- type SelectStmt
- type SendStmt
- type ShortVarDecl
- type Signature
- type SimpleStmt
- type Slice
- type SliceType
- type SourceFile
- type Statement
- type StructType
- type SwitchStmt
- type TemplateSpec
- type TopLevel
- type Type
- type TypeAssertion
- type TypeCaseClause
- type TypeDecl
- type TypeLit
- type TypeSpec
- type TypeSwitchCase
- type TypeSwitchGuard
- type TypeSwitchStmt
- type UnaryExpr
- type VarDecl
- type VarSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnonymousField ¶
func (*AnonymousField) Eval ¶
func (this *AnonymousField) Eval() string
type Arguments ¶
type Arguments struct {
*common.Node
TemplateSpec *TemplateSpec
Expressions *ExpressionList
Type *Type
IsVariadic bool
}
type Assignment ¶
type Assignment struct {
*common.Node
Left *ExpressionList
Op string
Right *ExpressionList
}
func (Assignment) Eval ¶
func (this Assignment) Eval() string
type ChannelType ¶
func (ChannelType) Eval ¶
func (this ChannelType) Eval() string
type CommClause ¶
func (CommClause) Eval ¶
func (this CommClause) Eval() string
type CompositeLit ¶
type CompositeLit struct {
*common.Node
LiteralType *LiteralType
TemplateSpec *TemplateSpec
LiteralValue *LiteralValue
}
func (CompositeLit) Eval ¶
func (this CompositeLit) Eval() string
type ConstSpec ¶
type ConstSpec struct {
*common.Node
IdentifierList *IdentifierList
Type *Type
ExpressionList *ExpressionList
}
type ContinueStmt ¶
func (ContinueStmt) Eval ¶
func (this ContinueStmt) Eval() string
type Conversion ¶
type Conversion struct {
*common.Node
Type *Type
Expression *Expression
}
func (Conversion) Eval ¶
func (this Conversion) Eval() string
type Declaration ¶
func (Declaration) Eval ¶
func (this Declaration) Eval() string
type DeferStmt ¶
type DeferStmt struct {
*common.Node
Expression *Expression
}
type Element ¶
type Element struct {
*common.Node
Expression *Expression
LiteralValue *LiteralValue
}
type ExprCaseClause ¶
type ExprCaseClause struct {
*common.Node
ExprSwitchCase *ExprSwitchCase
Statements []*Statement
}
func (ExprCaseClause) Eval ¶
func (this ExprCaseClause) Eval() string
type ExprSwitchCase ¶
type ExprSwitchCase struct {
*common.Node
Expressions *ExpressionList
IsDefault bool
}
func (ExprSwitchCase) Eval ¶
func (this ExprSwitchCase) Eval() string
type ExprSwitchStmt ¶
type ExprSwitchStmt struct {
*common.Node
SimpleStmt *SimpleStmt
Expression *Expression
ExprCaseClauses []*ExprCaseClause
}
func (ExprSwitchStmt) Eval ¶
func (this ExprSwitchStmt) Eval() string
type Expression ¶
type Expression struct {
*common.Node
UnaryExpr *UnaryExpr
LeftExpression *Expression
Op string
RightExpression *Expression
}
func (Expression) Eval ¶
func (this Expression) Eval() string
type ExpressionList ¶
type ExpressionList struct {
*common.Node
Expressions []*Expression
}
func (ExpressionList) Eval ¶
func (this ExpressionList) Eval() string
type FallthroughStmt ¶
func (FallthroughStmt) Eval ¶
func (this FallthroughStmt) Eval() string
type FieldDecl ¶
type FieldDecl struct {
*common.Node
IdentifierList *IdentifierList
Type *Type
Anonymous *AnonymousField
Tag string
InlineStructMethod *InlineStructMethod
}
type ForClause ¶
type ForClause struct {
*common.Node
LeftSimpleStmt *SimpleStmt
Expression *Expression
RightSimpleStmt *SimpleStmt
}
type ForStmt ¶
type ForStmt struct {
*common.Node
Expression *Expression
ForClause *ForClause
RangeClause *RangeClause
Block *Block
}
type FunctionDecl ¶
func (FunctionDecl) Eval ¶
func (this FunctionDecl) Eval() string
type FunctionLit ¶
func (FunctionLit) Eval ¶
func (this FunctionLit) Eval() string
type FunctionType ¶
func (FunctionType) Eval ¶
func (this FunctionType) Eval() string
type IdentifierList ¶ added in v0.7.2
func (IdentifierList) Eval ¶ added in v0.7.2
func (this IdentifierList) Eval() string
type IfStmt ¶
type IfStmt struct {
*common.Node
SimpleStmt *SimpleStmt
Expression *Expression
Block *Block
IfStmt *IfStmt
BlockElse *Block
}
func (*IfStmt) MakeReturnClosureStatement ¶ added in v0.5.0
type Import ¶
type Import struct {
*common.Node
Items []*ImportSpec
}
type ImportSpec ¶
func (ImportSpec) Eval ¶
func (this ImportSpec) Eval() string
type IncDecStmt ¶
type IncDecStmt struct {
*common.Node
Expression *Expression
IsInc bool
}
func (IncDecStmt) Eval ¶
func (this IncDecStmt) Eval() string
type Index ¶
type Index struct {
*common.Node
Expression *Expression
}
type InlineStructMethod ¶
type InlineStructMethod struct {
*common.Node
IsPointerReceiver bool
FunctionDecl *FunctionDecl
}
func (InlineStructMethod) Eval ¶
func (this InlineStructMethod) Eval() string
type InterfaceType ¶
type InterfaceType struct {
*common.Node
Name string
MethodSpecs []*MethodSpec
}
func (InterfaceType) Eval ¶
func (this InterfaceType) Eval() string
type Key ¶
type Key struct {
*common.Node
Name string
Expression *Expression
LiteralValue *LiteralValue
}
type KeyedElement ¶
func (KeyedElement) Eval ¶
func (this KeyedElement) Eval() string
type LabeledStmt ¶
func (LabeledStmt) Eval ¶
func (this LabeledStmt) Eval() string
type Literal ¶
type Literal struct {
*common.Node
Basic string
Composite *CompositeLit
FunctionLit *FunctionLit
}
type LiteralType ¶
type LiteralType struct {
*common.Node
Struct *StructType
Array *ArrayType
Element *Type
Slice *SliceType
Map *MapType
Type string
}
func (LiteralType) Eval ¶
func (this LiteralType) Eval() string
type LiteralValue ¶
type LiteralValue struct {
*common.Node
Elements []*KeyedElement
}
func (LiteralValue) Eval ¶
func (this LiteralValue) Eval() string
type MethodDecl ¶
func (MethodDecl) Eval ¶
func (this MethodDecl) Eval() string
type MethodExpr ¶
type MethodExpr struct {
*common.Node
ReceiverType *ReceiverType
Name string
}
func (MethodExpr) Eval ¶
func (this MethodExpr) Eval() string
type MethodSpec ¶
type MethodSpec struct {
*common.Node
Name string
Parameters *Parameters
Result *Result
Type string
}
func (MethodSpec) Eval ¶
func (this MethodSpec) Eval() string
type Operand ¶
type Operand struct {
*common.Node
Literal *Literal
OperandName *OperandName
MethodExpr *MethodExpr
Expression *Expression
}
type OperandName ¶
func (OperandName) Eval ¶
func (this OperandName) Eval() string
type Parameter ¶
type Parameter struct {
*common.Node
IdentifierList *IdentifierList
Type *Type
IsVariadic bool
}
type Parameters ¶
func (Parameters) Eval ¶
func (this Parameters) Eval() string
type PointerType ¶
func (*PointerType) Eval ¶
func (this *PointerType) Eval() string
type PrimaryExpr ¶
type PrimaryExpr struct {
*common.Node
Operand *Operand
Conversion *Conversion
PrimaryExpr *PrimaryExpr
SecondaryExpr *SecondaryExpr
}
func (PrimaryExpr) Eval ¶
func (this PrimaryExpr) Eval() string
type RangeClause ¶
type RangeClause struct {
*common.Node
IdentifierList *IdentifierList
Expression *Expression
}
func (RangeClause) Eval ¶
func (this RangeClause) Eval() string
type ReceiverType ¶
type ReceiverType struct {
*common.Node
Type string
IsPointer bool
ReceiverType *ReceiverType
}
func (*ReceiverType) Eval ¶
func (this *ReceiverType) Eval() string
type RecvStmt ¶
type RecvStmt struct {
*common.Node
Expressions *ExpressionList
IdentifierList *IdentifierList
Expression *Expression
}
type ReturnStmt ¶
type ReturnStmt struct {
*common.Node
Expressions *ExpressionList
}
func (ReturnStmt) Eval ¶
func (this ReturnStmt) Eval() string
type SecondaryExpr ¶
type SecondaryExpr struct {
*common.Node
Selector string
Index *Index
Slice *Slice
TypeAssertion *TypeAssertion
Arguments *Arguments
}
func (SecondaryExpr) Eval ¶
func (this SecondaryExpr) Eval() string
type SelectStmt ¶
type SelectStmt struct {
*common.Node
CommClauses []*CommClause
}
func (SelectStmt) Eval ¶
func (this SelectStmt) Eval() string
type SendStmt ¶
type SendStmt struct {
*common.Node
Left *Expression
Right *Expression
}
type ShortVarDecl ¶
type ShortVarDecl struct {
*common.Node
IdentifierList *IdentifierList
Expressions *ExpressionList
}
func (ShortVarDecl) Eval ¶
func (this ShortVarDecl) Eval() string
type Signature ¶
type Signature struct {
*common.Node
TemplateSpec *TemplateSpec
Parameters *Parameters
Result *Result
}
type SimpleStmt ¶
type SimpleStmt struct {
*common.Node
SendStmt *SendStmt
Expression *Expression
IncDecStmt *IncDecStmt
ShortVarDecl *ShortVarDecl
Assignment *Assignment
EmptyStmt bool
}
func (SimpleStmt) Eval ¶
func (this SimpleStmt) Eval() string
type Slice ¶
type Slice struct {
*common.Node
LeftExpr *Expression
MiddleExpr *Expression
RightExpr *Expression
}
type SourceFile ¶
func (SourceFile) Eval ¶
func (this SourceFile) Eval() string
func (SourceFile) GetImports ¶ added in v0.7.2
func (this SourceFile) GetImports() map[string]string
type Statement ¶
type Statement struct {
*common.Node
SimpleStmt *SimpleStmt
LabeledStmt *LabeledStmt
GoStmt *GoStmt
ReturnStmt *ReturnStmt
BreakStmt *BreakStmt
ContinueStmt *ContinueStmt
GotoStmt *GotoStmt
FallthroughStmt *FallthroughStmt
IfStmt *IfStmt
SwitchStmt *SwitchStmt
SelectStmt *SelectStmt
ForStmt *ForStmt
Block *Block
DeferStmt *DeferStmt
Declaration *Declaration
}
type StructType ¶
type StructType struct {
*common.Node
Name string
TemplateSpec *TemplateSpec
Fields []*FieldDecl
}
func (*StructType) Eval ¶
func (this *StructType) Eval() string
type SwitchStmt ¶
type SwitchStmt struct {
*common.Node
ExprSwitchStmt *ExprSwitchStmt
TypeSwitchStmt *TypeSwitchStmt
}
func (SwitchStmt) Eval ¶
func (this SwitchStmt) Eval() string
type TemplateSpec ¶ added in v0.6.0
type TopLevel ¶
type TopLevel struct {
*common.Node
Declaration *Declaration
FunctionDecl *FunctionDecl
MethodDecl *MethodDecl
}
type TypeAssertion ¶
func (TypeAssertion) Eval ¶
func (this TypeAssertion) Eval() string
type TypeCaseClause ¶
type TypeCaseClause struct {
*common.Node
TypeSwitchCase *TypeSwitchCase
Statements []*Statement
}
func (TypeCaseClause) Eval ¶
func (this TypeCaseClause) Eval() string
type TypeDecl ¶
type TypeDecl struct {
*common.Node
TypeSpecs []*TypeSpec
StructType *StructType
InterfaceType *InterfaceType
}
type TypeLit ¶
type TypeLit struct {
*common.Node
ArrayType *ArrayType
StructType *StructType
PointerType *PointerType
FunctionType *FunctionType
InterfaceType *InterfaceType
SliceType *SliceType
MapType *MapType
ChannelType *ChannelType
}
type TypeSwitchCase ¶
func (TypeSwitchCase) Eval ¶
func (this TypeSwitchCase) Eval() string
type TypeSwitchGuard ¶
type TypeSwitchGuard struct {
*common.Node
Name string
PrimaryExpr *PrimaryExpr
}
func (TypeSwitchGuard) Eval ¶
func (this TypeSwitchGuard) Eval() string
type TypeSwitchStmt ¶
type TypeSwitchStmt struct {
*common.Node
SimpleStmt *SimpleStmt
TypeSwitchGuard *TypeSwitchGuard
TypeCaseClauses []*TypeCaseClause
}
func (TypeSwitchStmt) Eval ¶
func (this TypeSwitchStmt) Eval() string
type UnaryExpr ¶
type UnaryExpr struct {
*common.Node
PrimaryExpr *PrimaryExpr
Op string
UnaryExpr *UnaryExpr
}
Click to show internal directories.
Click to hide internal directories.