Documentation
¶
Index ¶
- Constants
- Variables
- func BinOPWithNilSSAValue() string
- func BindPatternDeclarationWithoutInitializer() string
- func ConstDeclarationWithoutInitializer() string
- func CreateBuilder() ssa.Builder
- func Frontend(src string) (*ast.SourceFile, error)
- func FunctionParamNameEmpty() string
- func InstanceOfGotNilValue() string
- func InvalidFunctionCallee() string
- func InvalidPropertyBinding() string
- func LabelNameDupNotAllowed() string
- func LabelNameEmptyNotAllowed() string
- func NewExpressionOnlySupportIdentifierClassName() string
- func NoDeclarationName() string
- func NoOperandFoundForPrefixUnaryExp() string
- func NoViableOperandForPostfixUnaryExp() string
- func NoViableOperandForPrefixUnaryExp() string
- func RestElementRequiresIdentifier() string
- func SuperKeywordNotAvailableInCurrentContext() string
- func ThisKeywordNotAvailableInCurrentContext() string
- func TypeofValueIsNil() string
- func UnexpectedArithmeticOP() string
- func UnexpectedBinaryBitWiseOP() string
- func UnexpectedBreakStmt() string
- func UnexpectedClassMethodType() string
- func UnexpectedComparisonOP() string
- func UnexpectedContinueStmt() string
- func UnexpectedLeftValueForObjectPropertyAccess() string
- func UnexpectedPropertyNameType() string
- func UnexpectedRightValueForElementAccess() string
- func UnexpectedRightValueForObjectPropertyAccess() string
- func UnexpectedUnaryOP() string
- func UnexpectedVariableDeclarationModifierError(name string) string
- func UnhandledBinOP() string
- func UnhandledMemberNameType() string
- func UnhandledPropertyNameType() string
- func UnhandledStatement() string
- func UnhandledVariableDeclarationType() string
- func VariableIsNotDefined() string
- type SSABuilder
- func (*SSABuilder) BuildFromAST(raw ssa.FrontAST, b *ssa.FunctionBuilder) error
- func (*SSABuilder) FilterFile(path string) bool
- func (s *SSABuilder) FilterParseAST(path string) bool
- func (*SSABuilder) FilterPreHandlerFile(path string) bool
- func (s *SSABuilder) GetAntlrCache() *ssa.AntlrCache
- func (*SSABuilder) GetLanguage() ssaconfig.Language
- func (*SSABuilder) ParseAST(src string, cache *ssa.AntlrCache) (ssa.FrontAST, error)
- func (s *SSABuilder) PreHandlerFile(ast ssa.FrontAST, editor *memedit.MemEditor, builder *ssa.FunctionBuilder)
- func (s *SSABuilder) PreHandlerProject(fileSystem fi.FileSystem, ast ssa.FrontAST, fb *ssa.FunctionBuilder, ...) error
- func (s *SSABuilder) WrapWithPreprocessedFS(fs fi.FileSystem) fi.FileSystem
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 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 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
Click to show internal directories.
Click to hide internal directories.