Documentation ¶
Index ¶
- func MergePosition(a, b *position.Position) *position.Position
- type BinaryExpr
- type BuiltinExpr
- type CaprefTerm
- type CondStmt
- type ConvExpr
- type DecoDecl
- type DecoStmt
- type DelStmt
- type Error
- type ExprList
- type FloatLit
- type IdTerm
- type IndexedExpr
- type IntLit
- type NextStmt
- type Node
- type OtherwiseStmt
- type PatternExpr
- type PatternFragment
- type PatternLit
- type StmtList
- type StopStmt
- type StringLit
- type UnaryExpr
- type VarDecl
- type Visitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BinaryExpr ¶
func (*BinaryExpr) Pos ¶
func (n *BinaryExpr) Pos() *position.Position
func (*BinaryExpr) SetType ¶
func (n *BinaryExpr) SetType(t types.Type)
func (*BinaryExpr) Type ¶
func (n *BinaryExpr) Type() types.Type
type BuiltinExpr ¶
type BuiltinExpr struct { P position.Position Name string Args Node // contains filtered or unexported fields }
func (*BuiltinExpr) Pos ¶
func (n *BuiltinExpr) Pos() *position.Position
func (*BuiltinExpr) SetType ¶
func (n *BuiltinExpr) SetType(t types.Type)
func (*BuiltinExpr) Type ¶
func (n *BuiltinExpr) Type() types.Type
type CaprefTerm ¶
type CaprefTerm struct { P position.Position Name string IsNamed bool // true if the capref is a named reference, not positional Symbol *symbol.Symbol }
func (*CaprefTerm) Pos ¶
func (n *CaprefTerm) Pos() *position.Position
func (*CaprefTerm) Type ¶
func (n *CaprefTerm) Type() types.Type
type CondStmt ¶
type DecoDecl ¶
type DecoStmt ¶
type IdTerm ¶
type IndexedExpr ¶
type IndexedExpr struct {
Lhs, Index Node
// contains filtered or unexported fields
}
func (*IndexedExpr) Pos ¶
func (n *IndexedExpr) Pos() *position.Position
func (*IndexedExpr) SetType ¶
func (n *IndexedExpr) SetType(t types.Type)
func (*IndexedExpr) Type ¶
func (n *IndexedExpr) Type() types.Type
type Node ¶
type OtherwiseStmt ¶
func (*OtherwiseStmt) Pos ¶
func (n *OtherwiseStmt) Pos() *position.Position
func (*OtherwiseStmt) Type ¶
func (n *OtherwiseStmt) Type() types.Type
type PatternExpr ¶
type PatternExpr struct { Expr Node Pattern string // if not empty, the fully defined pattern after typecheck Index int // reference to the compiled object offset after codegen }
patternExprNode is the top of a pattern expression
func (*PatternExpr) Pos ¶
func (n *PatternExpr) Pos() *position.Position
func (*PatternExpr) Type ¶
func (n *PatternExpr) Type() types.Type
type PatternFragment ¶
type PatternFragment struct { Id Node Expr Node Symbol *symbol.Symbol // Optional Symbol for a named pattern Pattern string // If not empty, contains the complete evaluated pattern of the expr }
patternDefNode holds a named pattern expression
func (*PatternFragment) Pos ¶
func (n *PatternFragment) Pos() *position.Position
func (*PatternFragment) Type ¶
func (n *PatternFragment) Type() types.Type
type PatternLit ¶
patternConstNode holds inline constant pattern fragments
func (*PatternLit) Pos ¶
func (n *PatternLit) Pos() *position.Position
func (*PatternLit) Type ¶
func (n *PatternLit) Type() types.Type
type StmtList ¶
type UnaryExpr ¶
type VarDecl ¶
Click to show internal directories.
Click to hide internal directories.