 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type AccessSpecifier
- type ArrayType
- type BasicLit
- type BasicLitKind
- type BlockPointerType
- type BuiltinType
- type Comment
- type CommentGroup
- type Decl
- type EnumItem
- type EnumType
- type EnumTypeDecl
- type Expr
- type Field
- type FieldList
- type File
- type FuncDecl
- type FuncType
- type Ident
- type Include
- type InstantiationType
- type Location
- type LvalueRefType
- type Macro
- type Node
- type Object
- type PPD
- type ParenExpr
- type PointerType
- type RecordType
- type RvalueRefType
- type ScopingExpr
- type Stmt
- type Tag
- type TagExpr
- type Token
- type TypeDecl
- type TypeFlag
- type TypeKind
- type TypedefDecl
- type Variadic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessSpecifier ¶
type AccessSpecifier uint
const ( Invalid AccessSpecifier = iota Public Protected Private )
type BasicLit ¶
type BasicLit struct {
	Kind  BasicLitKind
	Value string
}
    type BasicLitKind ¶
type BasicLitKind uint
const ( IntLit BasicLitKind = iota FloatLit CharLit StringLit )
type BlockPointerType ¶ added in v0.5.1
type BlockPointerType struct {
	X *FuncType
}
    Ret (^)(Params)
type BuiltinType ¶
[signed/unsigned/short/long/long long/double] [int]/char/float/complex/bool
type Comment ¶
type Comment struct {
	Text string // comment text (excluding '\n' for //-style comments)
}
    type CommentGroup ¶
type CommentGroup struct {
	List []*Comment // len(List) > 0
}
    type Decl ¶
type Decl interface {
	Node
	// contains filtered or unexported methods
}
    Decl is a declaration node.
type EnumTypeDecl ¶
enum Name { Item1, Item2, ... };
type Expr ¶
type Expr interface {
	Node
	// contains filtered or unexported methods
}
    Expr is an expression node.
type Field ¶
type Field struct {
	Doc      *CommentGroup   // associated documentation; or nil
	Type     Expr            // field/method/parameter type; or nil
	Names    []*Ident        // field/method/(type) parameter names; or nil
	Comment  *CommentGroup   // line comments; or nil
	Access   AccessSpecifier // field access(Record Type); Struct Field default is Public,Class Field default is Private
	IsStatic bool            // static field
}
    type FuncDecl ¶
type FuncDecl struct {
	Object
	MangledName string // C: same as Name, C++: mangled
	Type        *FuncType
	IsInline    bool
	IsStatic    bool
	// Class method specific fields
	IsConst       bool // const member function
	IsExplicit    bool // explicit constructor
	IsConstructor bool
	IsDestructor  bool
	IsVirtual     bool
	IsOverride    bool
}
    Ret Name(Params);
type InstantiationType ¶
Template<Arg1, Arg2, ...>
type Object ¶ added in v0.5.0
type Object struct {
	Doc    *CommentGroup // associated documentation; or nil
	Loc    *Location
	Name   *Ident
	Parent Expr // namespace or class
}
    type PPD ¶
type PPD interface {
	Node
	// contains filtered or unexported methods
}
    PPD is a preprocessing directive node.
type RecordType ¶
type Stmt ¶
type Stmt interface {
	Node
	// contains filtered or unexported methods
}
    Stmt is a statement node.
type TypeDecl ¶
type TypeDecl struct {
	Object
	Type *RecordType
}
    struct/union/class Name { Field1, Field2, ... };
 Click to show internal directories. 
   Click to hide internal directories.