Documentation ¶
Index ¶
- Constants
- func ArrowFunctionNeedExpressionOrBlock() string
- func AssignLeftSideEmpty() string
- func AssignRightSideEmpty() string
- func BinaryOperatorNotSupport(op string) string
- func ExpressionNotVariable(expr string) string
- func GetEndPosition(t antlr.Token) (int, int)
- func MakeSliceArgumentTooMuch() string
- func MakeUnknownType() string
- func MultipleAssignFailed(left, right int) string
- func NotSetTypeInMakeExpression() string
- func SliceCallExpressionIsEmpty() string
- func SliceCallExpressionTooMuch() string
- func UnaryOperatorNotSupport(op string) string
- func UndefineLabelstmt() string
- func UnexpectedAssertStmt() string
- func UnexpectedBreakStmt() string
- func UnexpectedContinueStmt() string
- func UnexpectedFallthroughStmt() string
- type ErrorListener
- type Parser
Constants ¶
View Source
const TAG ssa.ErrorTag = "JS"
Variables ¶
This section is empty.
Functions ¶
func ArrowFunctionNeedExpressionOrBlock ¶
func ArrowFunctionNeedExpressionOrBlock() string
func AssignLeftSideEmpty ¶
func AssignLeftSideEmpty() string
func AssignRightSideEmpty ¶
func AssignRightSideEmpty() string
func ExpressionNotVariable ¶
func GetEndPosition ¶
func MakeSliceArgumentTooMuch ¶
func MakeSliceArgumentTooMuch() string
func MakeUnknownType ¶
func MakeUnknownType() string
func MultipleAssignFailed ¶
func NotSetTypeInMakeExpression ¶
func NotSetTypeInMakeExpression() string
func SliceCallExpressionIsEmpty ¶
func SliceCallExpressionIsEmpty() string
func SliceCallExpressionTooMuch ¶
func SliceCallExpressionTooMuch() string
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
Types ¶
type ErrorListener ¶ added in v1.3.0
type ErrorListener struct { *antlr.DefaultErrorListener // contains filtered or unexported fields }
error listener for lexer and parser
func NewErrorListener ¶ added in v1.3.0
func NewErrorListener() *ErrorListener
func (*ErrorListener) SyntaxError ¶ added in v1.3.0
func (el *ErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)
Click to show internal directories.
Click to hide internal directories.