Documentation ¶
Index ¶
- func Render(program *program.Program, node Node) string
- type AlwaysInlineAttr
- type ArraySubscriptExpr
- type AsmLabelAttr
- type AvailabilityAttr
- type BinaryOperator
- type BreakStmt
- type BuiltinType
- type CStyleCastExpr
- type CallExpr
- type CharacterLiteral
- type CompoundStmt
- type ConditionalOperator
- type ConstAttr
- type ConstantArrayType
- type DeclRefExpr
- type DeclStmt
- type DeprecatedAttr
- type ElaboratedType
- type Enum
- type EnumConstantDecl
- type EnumDecl
- type EnumType
- type FieldDecl
- type FloatingLiteral
- type ForStmt
- type FormatAttr
- type FunctionDecl
- type FunctionDefinition
- type FunctionProtoType
- type IfStmt
- type ImplicitCastExpr
- type IntegerLiteral
- type MallocAttr
- type MemberExpr
- type ModeAttr
- type NoThrowAttr
- type Node
- type NonNullAttr
- type ParenExpr
- type ParmVarDecl
- type PointerType
- type PredefinedExpr
- type QualType
- type Record
- type RecordDecl
- type RecordType
- type RestrictAttr
- type ReturnStmt
- type StringLiteral
- type TranslationUnitDecl
- type Typedef
- type TypedefDecl
- type TypedefType
- type UnaryOperator
- type VarDecl
- type WhileStmt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlwaysInlineAttr ¶
func (*AlwaysInlineAttr) AddChild ¶
func (n *AlwaysInlineAttr) AddChild(node Node)
type ArraySubscriptExpr ¶
type ArraySubscriptExpr struct { Address string Position string Type string Kind string Children []Node }
func (*ArraySubscriptExpr) AddChild ¶
func (n *ArraySubscriptExpr) AddChild(node Node)
type AsmLabelAttr ¶
func (*AsmLabelAttr) AddChild ¶
func (n *AsmLabelAttr) AddChild(node Node)
type AvailabilityAttr ¶
type AvailabilityAttr struct { Address string Position string OS string Version string Unknown1 float64 Unknown2 int Message1 string Message2 string Children []Node }
func (*AvailabilityAttr) AddChild ¶
func (n *AvailabilityAttr) AddChild(node Node)
type BinaryOperator ¶
type BinaryOperator struct { Address string Position string Type string Operator string Children []Node }
func (*BinaryOperator) AddChild ¶
func (n *BinaryOperator) AddChild(node Node)
type BuiltinType ¶
func (*BuiltinType) AddChild ¶
func (n *BuiltinType) AddChild(node Node)
type CStyleCastExpr ¶
type CStyleCastExpr struct { Address string Position string Type string Kind string Children []Node }
func (*CStyleCastExpr) AddChild ¶
func (n *CStyleCastExpr) AddChild(node Node)
type CharacterLiteral ¶
type CharacterLiteral struct { Address string Position string Type string Value int Children []Node }
func (*CharacterLiteral) AddChild ¶
func (n *CharacterLiteral) AddChild(node Node)
type CompoundStmt ¶
func (*CompoundStmt) AddChild ¶
func (n *CompoundStmt) AddChild(node Node)
type ConditionalOperator ¶
func (*ConditionalOperator) AddChild ¶
func (n *ConditionalOperator) AddChild(node Node)
type ConstantArrayType ¶
func (*ConstantArrayType) AddChild ¶
func (n *ConstantArrayType) AddChild(node Node)
type DeclRefExpr ¶
type DeclRefExpr struct { Address string Position string Type string Lvalue bool For string Address2 string Name string Type2 string Children []Node }
func (*DeclRefExpr) AddChild ¶
func (n *DeclRefExpr) AddChild(node Node)
type DeprecatedAttr ¶
type DeprecatedAttr struct { Address string Position string Message1 string Message2 string Children []Node }
func (*DeprecatedAttr) AddChild ¶
func (n *DeprecatedAttr) AddChild(node Node)
type ElaboratedType ¶
func (*ElaboratedType) AddChild ¶
func (n *ElaboratedType) AddChild(node Node)
type EnumConstantDecl ¶
type EnumConstantDecl struct { Address string Position string Position2 string Name string Type string Children []Node }
func (*EnumConstantDecl) AddChild ¶
func (n *EnumConstantDecl) AddChild(node Node)
type EnumDecl ¶
type FieldDecl ¶
type FloatingLiteral ¶
type FloatingLiteral struct { Address string Position string Type string Value float64 Children []Node }
func (*FloatingLiteral) AddChild ¶
func (n *FloatingLiteral) AddChild(node Node)
type FormatAttr ¶
type FormatAttr struct { Address string Position string Implicit bool Inherited bool FunctionName string Unknown1 int Unknown2 int Children []Node }
func (*FormatAttr) AddChild ¶
func (n *FormatAttr) AddChild(node Node)
type FunctionDecl ¶
type FunctionDecl struct { Address string Position string Prev string Position2 string Name string Type string IsExtern bool IsImplicit bool IsUsed bool Children []Node }
func (*FunctionDecl) AddChild ¶
func (n *FunctionDecl) AddChild(node Node)
type FunctionDefinition ¶
type FunctionDefinition struct { // The name of the function, like "printf". Name string // The C return type, like "int". ReturnType string // The C argument types, like ["bool", "int"]. There is currently no way // to represent a varargs. ArgumentTypes []string // If this is not empty then this function name should be used instead // of the Name. Many low level functions have an exact match with a Go // function. For example, "sin()". Substitution string }
FunctionDefinition contains the prototype definition for a function.
type FunctionProtoType ¶
func (*FunctionProtoType) AddChild ¶
func (n *FunctionProtoType) AddChild(node Node)
type ImplicitCastExpr ¶
type ImplicitCastExpr struct { Address string Position string Type string Kind string Children []Node }
func (*ImplicitCastExpr) AddChild ¶
func (n *ImplicitCastExpr) AddChild(node Node)
type IntegerLiteral ¶
func (*IntegerLiteral) AddChild ¶
func (n *IntegerLiteral) AddChild(node Node)
type MallocAttr ¶
func (*MallocAttr) AddChild ¶
func (n *MallocAttr) AddChild(node Node)
type MemberExpr ¶
type MemberExpr struct { Address string Position string Type string Lvalue bool Name string Address2 string Children []Node }
func (*MemberExpr) AddChild ¶
func (n *MemberExpr) AddChild(node Node)
type NoThrowAttr ¶
func (*NoThrowAttr) AddChild ¶
func (n *NoThrowAttr) AddChild(node Node)
type NonNullAttr ¶
func (*NonNullAttr) AddChild ¶
func (n *NonNullAttr) AddChild(node Node)
type ParmVarDecl ¶
type ParmVarDecl struct { Address string Position string Position2 string Name string Type string Type2 string IsUsed bool Children []Node }
func (*ParmVarDecl) AddChild ¶
func (n *ParmVarDecl) AddChild(node Node)
type PointerType ¶
func (*PointerType) AddChild ¶
func (n *PointerType) AddChild(node Node)
type PredefinedExpr ¶
type PredefinedExpr struct { Address string Position string Type string Name string Lvalue bool Children []Node }
func (*PredefinedExpr) AddChild ¶
func (n *PredefinedExpr) AddChild(node Node)
type RecordDecl ¶
type RecordDecl struct { Address string Position string Prev string Position2 string Kind string Name string Definition bool Children []Node }
func (*RecordDecl) AddChild ¶
func (n *RecordDecl) AddChild(node Node)
type RecordType ¶
func (*RecordType) AddChild ¶
func (n *RecordType) AddChild(node Node)
type RestrictAttr ¶
func (*RestrictAttr) AddChild ¶
func (n *RestrictAttr) AddChild(node Node)
type ReturnStmt ¶
func (*ReturnStmt) AddChild ¶
func (n *ReturnStmt) AddChild(node Node)
type StringLiteral ¶
type StringLiteral struct { Address string Position string Type string Value string Lvalue bool Children []Node }
func (*StringLiteral) AddChild ¶
func (n *StringLiteral) AddChild(node Node)
type TranslationUnitDecl ¶
func (*TranslationUnitDecl) AddChild ¶
func (n *TranslationUnitDecl) AddChild(node Node)
type TypedefDecl ¶
type TypedefDecl struct { Address string Position string Position2 string Name string Type string Type2 string IsImplicit bool IsReferenced bool Children []Node }
func (*TypedefDecl) AddChild ¶
func (n *TypedefDecl) AddChild(node Node)
type TypedefType ¶
func (*TypedefType) AddChild ¶
func (n *TypedefType) AddChild(node Node)
type UnaryOperator ¶
type UnaryOperator struct { Address string Position string Type string IsLvalue bool IsPrefix bool Operator string Children []Node }
func (*UnaryOperator) AddChild ¶
func (n *UnaryOperator) AddChild(node Node)
Source Files ¶
- always_inline_attr.go
- array_subscript_expr.go
- asm_label_attr.go
- ast.go
- availability_attr.go
- binary_operator.go
- break_stmt.go
- builtin_type.go
- c_style_cast_expr.go
- call_expr.go
- character_literal.go
- compound_stmt.go
- conditional_operator.go
- const_attr.go
- constant_array_type.go
- decl_ref_expr.go
- decl_stmt.go
- deprecated_attr.go
- elaborated_type.go
- enum.go
- enum_constant_decl.go
- enum_decl.go
- enum_type.go
- field_decl.go
- floating_literal.go
- for_stmt.go
- format_attr.go
- function_decl.go
- function_definition.go
- function_proto_type.go
- if_stmt.go
- implicit_cast_expr.go
- integer_literal.go
- malloc_attr.go
- member_expr.go
- mode_attr.go
- no_throw_attr.go
- non_null_attr.go
- paren_expr.go
- parm_var_decl.go
- pointer_type.go
- predefined_expr.go
- qual_type.go
- record.go
- record_decl.go
- record_type.go
- restrict_attr.go
- return_stmt.go
- string_literal.go
- translation_unit_decl.go
- typedef.go
- typedef_decl.go
- typedef_type.go
- unary_operator.go
- util.go
- var_decl.go
- while_stmt.go
Click to show internal directories.
Click to hide internal directories.