Documentation
¶
Index ¶
- type AccessSpecifier
- type ArrayType
- type BasicLit
- type BasicLitKind
- type BuiltinType
- type Comment
- type CommentGroup
- type Decl
- type DeclBase
- 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 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 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 DeclBase ¶
type DeclBase struct {
Doc *CommentGroup // associated documentation; or nil
Loc *Location
Parent Expr // namespace or class
}
type EnumTypeDecl ¶
enum Name { Item1, Item2, ... };
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 {
DeclBase
Name *Ident
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 RecordType ¶
type TypeDecl ¶
type TypeDecl struct {
DeclBase
Name *Ident
Type *RecordType
}
struct/union/class Name { Field1, Field2, ... };
Click to show internal directories.
Click to hide internal directories.