js2ssa

package
v1.3.5-alpha-0814 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TAG ssa.ErrorTag = "JS"

Variables

View Source
var Builder = &SSABuild{}

Functions

func ArrowFunctionNeedExpressionOrBlock

func ArrowFunctionNeedExpressionOrBlock() string

func AssignLeftSideEmpty

func AssignLeftSideEmpty() string

func AssignRightSideEmpty

func AssignRightSideEmpty() string

func BinaryOperatorNotSupport

func BinaryOperatorNotSupport(op string) string

func ExpressionNotVariable

func ExpressionNotVariable(expr string) string

func Frontend added in v1.3.2

func Frontend(src string, must bool) (*JS.ProgramContext, error)

func MakeSliceArgumentTooMuch

func MakeSliceArgumentTooMuch() string

func MakeUnknownType

func MakeUnknownType() string

func MultipleAssignFailed

func MultipleAssignFailed(left, right int) string

func NotSetTypeInMakeExpression

func NotSetTypeInMakeExpression() string

func SliceCallExpressionIsEmpty

func SliceCallExpressionIsEmpty() string

func SliceCallExpressionTooMuch

func SliceCallExpressionTooMuch() 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

Types

type SSABuild added in v1.3.3

type SSABuild struct {
	ssa.DummyExtraFileAnalyzer
}

func (*SSABuild) Build added in v1.3.3

func (*SSABuild) Build(src string, force bool, builder *ssa.FunctionBuilder) error

func (*SSABuild) FilterFile added in v1.3.3

func (*SSABuild) FilterFile(path string) bool

func (*SSABuild) GetLanguage

func (*SSABuild) GetLanguage() consts.Language

Jump to

Keyboard shortcuts

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