Documentation ¶
Index ¶
- Constants
- Variables
- func ArrowFunctionNeedExpressionOrBlock() string
- func AssignLeftSideEmpty() string
- func AssignRightSideEmpty() string
- func BinaryOperatorNotSupport(op string) string
- func CannotAssign() string
- func CannotParseString(test string, err string) string
- func ExpressionNotVariable(expr string) string
- func Frontend(src string, must bool) (*gol.SourceFileContext, error)
- func InvalidChanType(typ string) string
- func MakeArgumentTooMuch(typ string) string
- func MakeSliceArgumentTooMuch() string
- func MakeUnknownType() string
- func MissInitExpr(name string) string
- func MultipleAssignFailed(left, right int) string
- func NeedTwoExpression() string
- func NotSetTypeInMakeExpression(typ string) string
- func OutofBounds(ml, vl int) string
- func SliceCallExpressionIsEmpty() string
- func SliceCallExpressionTooMuch() string
- func StructNotFind(n string) string
- func ToDo() string
- func UnaryOperatorNotSupport(op string) string
- func UndefineLabelstmt() string
- func UnexpectedAssertStmt() string
- func UnexpectedBreakStmt() string
- func UnexpectedContinueStmt() string
- func UnexpectedFallthroughStmt() string
- func UnhandledBool() string
- func Unreachable() string
- type SSABuilder
- func (s *SSABuilder) Build(src string, force bool, builder *ssa.FunctionBuilder) error
- func (*SSABuilder) FilterFile(path string) bool
- func (*SSABuilder) GetLanguage() consts.Language
- func (s *SSABuilder) InitHandler(fb *ssa.FunctionBuilder)
- func (s *SSABuilder) PreHandlerProject(fileSystem fi.FileSystem, functionBuilder *ssa.FunctionBuilder, path string) error
Constants ¶
View Source
const TAG ssa.ErrorTag = "GO"
Variables ¶
View Source
var Builder = &SSABuilder{}
View Source
var SpecialTypes = map[string]ssa.Type{ "comparable": ssa.CreateAnyType(), "error": ssa.CreateErrorType(), }
View Source
var SpecialValue = []string{
"iota",
}
Functions ¶
func ArrowFunctionNeedExpressionOrBlock ¶
func ArrowFunctionNeedExpressionOrBlock() string
func AssignLeftSideEmpty ¶
func AssignLeftSideEmpty() string
func AssignRightSideEmpty ¶
func AssignRightSideEmpty() string
func CannotAssign ¶
func CannotAssign() string
func CannotParseString ¶
func ExpressionNotVariable ¶
func InvalidChanType ¶
func MakeArgumentTooMuch ¶
func MakeSliceArgumentTooMuch ¶
func MakeSliceArgumentTooMuch() string
func MakeUnknownType ¶
func MakeUnknownType() string
func MissInitExpr ¶
func MultipleAssignFailed ¶
func NeedTwoExpression ¶
func NeedTwoExpression() string
func OutofBounds ¶
func SliceCallExpressionIsEmpty ¶
func SliceCallExpressionIsEmpty() string
func SliceCallExpressionTooMuch ¶
func SliceCallExpressionTooMuch() string
func StructNotFind ¶
func UnaryOperatorNotSupport ¶
func UndefineLabelstmt ¶
func UndefineLabelstmt() string
func UnexpectedAssertStmt ¶
func UnexpectedAssertStmt() string
func UnexpectedBreakStmt ¶
func UnexpectedBreakStmt() string
func UnexpectedContinueStmt ¶
func UnexpectedContinueStmt() string
func UnexpectedFallthroughStmt ¶
func UnexpectedFallthroughStmt() string
func UnhandledBool ¶
func UnhandledBool() string
func Unreachable ¶
func Unreachable() string
Types ¶
type SSABuilder ¶
type SSABuilder struct {
ssa.DummyPreHandler
}
func (*SSABuilder) Build ¶
func (s *SSABuilder) Build(src string, force bool, builder *ssa.FunctionBuilder) error
func (*SSABuilder) FilterFile ¶
func (*SSABuilder) FilterFile(path string) bool
func (*SSABuilder) GetLanguage ¶
func (*SSABuilder) GetLanguage() consts.Language
func (*SSABuilder) InitHandler ¶
func (s *SSABuilder) InitHandler(fb *ssa.FunctionBuilder)
func (*SSABuilder) PreHandlerProject ¶
func (s *SSABuilder) PreHandlerProject(fileSystem fi.FileSystem, functionBuilder *ssa.FunctionBuilder, path string) error
Click to show internal directories.
Click to hide internal directories.