Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyzedFile ¶
func (AnalyzedFile) Directory ¶
func (file AnalyzedFile) Directory() string
type ExpressionType ¶
type ExpressionType string
const ( ExprTypeBlock ExpressionType = "BlockStmt" ExprTypeIf ExpressionType = "IfStmt" ExprTypeSwitch ExpressionType = "SwitchStmt" ExprTypeTypeSwitch ExpressionType = "TypeSwitchStmt" ExprTypeCaseClause ExpressionType = "CaseClause" ExprTypeRange ExpressionType = "RangeStmt" ExprTypeFor ExpressionType = "ForStmt" ExprTypeAssign ExpressionType = "AssignStmt" ExprTypeDeclaration ExpressionType = "DeclStmt" ExprTypeDefer ExpressionType = "DeferStmt" ExprTypeExpr ExpressionType = "ExprStmt" ExprTypeGenDecl ExpressionType = "GenDecl" )
func ExprTypeFromStmt ¶
func ExprTypeFromStmt(stmt ast.Stmt) ExpressionType
type Function ¶
func (Function) GetStatements ¶
type Statement ¶
type Statement struct { Type ExpressionType Position Position ParentStatement *Statement NestedStatements Statements }
func NewStatement ¶
func (Statement) IsBranchStmt ¶
type Statements ¶
type Statements []Statement
func (*Statements) Pop ¶
func (stmts *Statements) Pop() (Statement, error)
func (*Statements) Push ¶
func (stmts *Statements) Push(newStmts Statements)
Click to show internal directories.
Click to hide internal directories.