go2ssa

package
v1.3.5-beta9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

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 BinaryOperatorNotSupport

func BinaryOperatorNotSupport(op string) string

func CannotAssign

func CannotAssign() string

func CannotParseString

func CannotParseString(test string, err string) string

func ExpressionNotVariable

func ExpressionNotVariable(expr string) string

func Frontend

func Frontend(src string, must bool) (*gol.SourceFileContext, error)

func InvalidChanType

func InvalidChanType(typ string) string

func MakeArgumentTooMuch

func MakeArgumentTooMuch(typ string) string

func MakeSliceArgumentTooMuch

func MakeSliceArgumentTooMuch() string

func MakeUnknownType

func MakeUnknownType() string

func MissInitExpr

func MissInitExpr(name string) string

func MultipleAssignFailed

func MultipleAssignFailed(left, right int) string

func NeedTwoExpression

func NeedTwoExpression() string

func NotSetTypeInMakeExpression

func NotSetTypeInMakeExpression(typ string) string

func OutofBounds

func OutofBounds(ml, vl int) string

func SliceCallExpressionIsEmpty

func SliceCallExpressionIsEmpty() string

func SliceCallExpressionTooMuch

func SliceCallExpressionTooMuch() string

func StructNotFind

func StructNotFind(n string) string

func ToDo

func ToDo() string

func UnaryOperatorNotSupport

func UnaryOperatorNotSupport(op string) string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL