Documentation
¶
Index ¶
- Constants
- func NewNode(t string, s, e token.Position) *node
- func NewStmtNode(t string, s, e token.Position, comments ...*CommentStmt) *stmtNode
- type ArithmeticExpr
- type BinaryExpr
- type CallExpr
- type CommentStmt
- type DeclStmt
- type DeclTarget
- type EmptyEntry
- type EmptyExpr
- type EmptyStmt
- type Entry
- type Expr
- type Field
- type File
- type FnDefStmt
- type GroupExpr
- type IdentExpr
- type ImportExpr
- type ImportStmt
- type IndexExpr
- type KeyEntry
- type ListTypeExpr
- type MemberExpr
- type Node
- type NumberLitExpr
- type Parameter
- type SectionStmt
- type Stmt
- type StringLitExpr
- type StructLitExpr
- type TemplateEntry
- type TemplateLitExpr
- type TernaryExpr
- type TypeDefStmt
- type TypeExpr
- type TypePair
Constants ¶
View Source
const ArithmeticExprNode = "arithmetic_expr"
View Source
const BinaryExprNode = "binary_expr"
View Source
const CallExprNode = "call_expr"
View Source
const CommentStmtNode = "comment_stmt"
View Source
const DeclStmtNode = "decl_stmt"
View Source
const DeclTargetNode = "decl_target"
View Source
const EmptyEntryNode = "empty_entry"
View Source
const EmptyExprNode = "empty_expr"
View Source
const EmptyStmtNode = "empty_stmt"
View Source
const FieldNode = "field"
View Source
const FileNode = "file"
View Source
const FnDefStmtNode = "fn_def_stmt"
View Source
const GroupExprNode = "group_expr"
View Source
const IdentExprNode = "ident_expr"
View Source
const ImportExprNode = "import_expr"
View Source
const ImportStmtNode = "import_stmt"
View Source
const IndexExprNode = "index_expr"
View Source
const KeyEntryNode = "key_entry"
View Source
const ListTypeExprNode = "list_type_expr"
View Source
const MemberExprNode = "member_expr"
View Source
const NumberLitExprNode = "number_literal_expr"
View Source
const ParameterNode = "parameter"
View Source
const SectionStmtNode = "section_stmt"
View Source
const StringLitExprNode = "string_literal_expr"
View Source
const StructLitExprNode = "struct_literal_expr"
View Source
const TemplateEntryNode = "template_entry"
View Source
const TemplateLitExprNode = "template_literal_expr"
View Source
const TernaryExprNode = "ternary_expr"
View Source
const TypeDefStmtNode = "type_def_stmt"
View Source
const TypePairNode = "type_pair"
Variables ¶
This section is empty.
Functions ¶
func NewStmtNode ¶
func NewStmtNode(t string, s, e token.Position, comments ...*CommentStmt) *stmtNode
Types ¶
type ArithmeticExpr ¶
type BinaryExpr ¶
type CommentStmt ¶
type DeclStmt ¶
type DeclStmt struct {
Stmt `json:"node"`
Name *IdentExpr `json:"name"`
Targets []*DeclTarget `json:"targets"`
}
type DeclTarget ¶
type DeclTarget struct {
Node `json:"node"`
Tag *StringLitExpr `json:"tag"`
Name *IdentExpr `json:"name"`
}
type EmptyEntry ¶
type EmptyEntry struct {
Node `json:"node"`
}
type File ¶
type File struct {
Node `json:"node"`
Decl *DeclStmt `json:"decl"`
Imports []*ImportStmt `json:"imports"`
Stmts []Stmt `json:"stmts"`
}
type ImportExpr ¶
type ImportStmt ¶
type ListTypeExpr ¶
type MemberExpr ¶
type NumberLitExpr ¶
type SectionStmt ¶
type Stmt ¶
type Stmt interface {
Node
Comments() []*CommentStmt
// contains filtered or unexported methods
}
type StringLitExpr ¶
func NewString ¶
func NewString(t token.Token) *StringLitExpr
type StructLitExpr ¶
type TemplateEntry ¶
type TemplateLitExpr ¶
type TernaryExpr ¶
type TypeDefStmt ¶
Click to show internal directories.
Click to hide internal directories.