ts2ssa

package
v1.4.4-alpha1202-loadi... Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const EXPORT_EQUAL_VALUE = "EXPORT_EQUAL_VALUE"
View Source
const TAG ssa.ErrorTag = "JS"

Variables

View Source
var Builder ssa.Builder = &SSABuilder{}

Functions

func BinOPWithNilSSAValue

func BinOPWithNilSSAValue() string

func BindPatternDeclarationWithoutInitializer

func BindPatternDeclarationWithoutInitializer() string

func ConstDeclarationWithoutInitializer

func ConstDeclarationWithoutInitializer() string

func CreateBuilder

func CreateBuilder() ssa.Builder

func Frontend

func Frontend(src string) (*ast.SourceFile, error)

func FunctionParamNameEmpty

func FunctionParamNameEmpty() string

func InstanceOfGotNilValue

func InstanceOfGotNilValue() string

func InvalidFunctionCallee

func InvalidFunctionCallee() string

func InvalidPropertyBinding

func InvalidPropertyBinding() string

func LabelNameDupNotAllowed

func LabelNameDupNotAllowed() string

func LabelNameEmptyNotAllowed

func LabelNameEmptyNotAllowed() string

func NewExpressionOnlySupportIdentifierClassName

func NewExpressionOnlySupportIdentifierClassName() string

func NoDeclarationName

func NoDeclarationName() string

func NoOperandFoundForPrefixUnaryExp

func NoOperandFoundForPrefixUnaryExp() string

func NoViableOperandForPostfixUnaryExp

func NoViableOperandForPostfixUnaryExp() string

func NoViableOperandForPrefixUnaryExp

func NoViableOperandForPrefixUnaryExp() string

func RestElementRequiresIdentifier

func RestElementRequiresIdentifier() string

func SuperKeywordNotAvailableInCurrentContext

func SuperKeywordNotAvailableInCurrentContext() string

func ThisKeywordNotAvailableInCurrentContext

func ThisKeywordNotAvailableInCurrentContext() string

func TypeofValueIsNil

func TypeofValueIsNil() string

func UnexpectedArithmeticOP

func UnexpectedArithmeticOP() string

func UnexpectedBinaryBitWiseOP

func UnexpectedBinaryBitWiseOP() string

func UnexpectedBreakStmt

func UnexpectedBreakStmt() string

func UnexpectedClassMethodType

func UnexpectedClassMethodType() string

func UnexpectedComparisonOP

func UnexpectedComparisonOP() string

func UnexpectedContinueStmt

func UnexpectedContinueStmt() string

func UnexpectedLeftValueForObjectPropertyAccess

func UnexpectedLeftValueForObjectPropertyAccess() string

func UnexpectedPropertyNameType

func UnexpectedPropertyNameType() string

func UnexpectedRightValueForElementAccess

func UnexpectedRightValueForElementAccess() string

func UnexpectedRightValueForObjectPropertyAccess

func UnexpectedRightValueForObjectPropertyAccess() string

func UnexpectedUnaryOP

func UnexpectedUnaryOP() string

func UnexpectedVariableDeclarationModifierError

func UnexpectedVariableDeclarationModifierError(name string) string

func UnhandledBinOP

func UnhandledBinOP() string

func UnhandledMemberNameType

func UnhandledMemberNameType() string

func UnhandledPropertyNameType

func UnhandledPropertyNameType() string

func UnhandledStatement

func UnhandledStatement() string

func UnhandledVariableDeclarationType

func UnhandledVariableDeclarationType() string

func VariableIsNotDefined

func VariableIsNotDefined() string

Types

type SSABuilder

type SSABuilder struct {
	*ssa.PreHandlerBase
}

func (*SSABuilder) BuildFromAST

func (*SSABuilder) BuildFromAST(raw ssa.FrontAST, b *ssa.FunctionBuilder) error

func (*SSABuilder) FilterFile

func (*SSABuilder) FilterFile(path string) bool

func (*SSABuilder) FilterParseAST

func (s *SSABuilder) FilterParseAST(path string) bool

func (*SSABuilder) FilterPreHandlerFile

func (*SSABuilder) FilterPreHandlerFile(path string) bool

func (*SSABuilder) GetAntlrCache

func (s *SSABuilder) GetAntlrCache() *ssa.AntlrCache

func (*SSABuilder) GetLanguage

func (*SSABuilder) GetLanguage() ssaconfig.Language

func (*SSABuilder) ParseAST

func (*SSABuilder) ParseAST(src string, cache *ssa.AntlrCache) (ssa.FrontAST, error)

func (*SSABuilder) PreHandlerFile

func (s *SSABuilder) PreHandlerFile(ast ssa.FrontAST, editor *memedit.MemEditor, builder *ssa.FunctionBuilder)

func (*SSABuilder) PreHandlerProject

func (s *SSABuilder) PreHandlerProject(fileSystem fi.FileSystem, ast ssa.FrontAST, fb *ssa.FunctionBuilder, editor *memedit.MemEditor) error

func (*SSABuilder) WrapWithPreprocessedFS

func (s *SSABuilder) WrapWithPreprocessedFS(fs fi.FileSystem) fi.FileSystem

Jump to

Keyboard shortcuts

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