Documentation ¶
Index ¶
- type TypeChecker
- func (t *TypeChecker) FindGlobalSymbol(name string) (*internal.Symbol, bool)
- func (t *TypeChecker) Visit(tree antlr.ParseTree) interface{}
- func (t *TypeChecker) VisitAppendCall(ctx *grammar.AppendCallContext) interface{}
- func (t *TypeChecker) VisitAppendExpression(ctx *grammar.AppendExpressionContext) interface{}
- func (t *TypeChecker) VisitArguments(ctx *grammar.ArgumentsContext) interface{}
- func (t *TypeChecker) VisitArrayDeclType(ctx *grammar.ArrayDeclTypeContext) interface{}
- func (t *TypeChecker) VisitArrayType(ctx *grammar.ArrayTypeContext) interface{}
- func (t *TypeChecker) VisitAssignmentSimpleStatement(ctx *grammar.AssignmentSimpleStatementContext) interface{}
- func (t *TypeChecker) VisitBlock(ctx *grammar.BlockContext) interface{}
- func (t *TypeChecker) VisitBlockStatement(ctx *grammar.BlockStatementContext) interface{}
- func (t *TypeChecker) VisitBooleanOperation(ctx *grammar.BooleanOperationContext) interface{}
- func (t *TypeChecker) VisitBreakStatement(ctx *grammar.BreakStatementContext) interface{}
- func (t *TypeChecker) VisitCapCall(ctx *grammar.CapCallContext) interface{}
- func (t *TypeChecker) VisitCapExpression(ctx *grammar.CapExpressionContext) interface{}
- func (t *TypeChecker) VisitCaretExpression(ctx *grammar.CaretExpressionContext) interface{}
- func (v *TypeChecker) VisitChildren(node antlr.RuleNode) interface{}
- func (t *TypeChecker) VisitComparison(ctx *grammar.ComparisonContext) interface{}
- func (t *TypeChecker) VisitContinueStatement(ctx *grammar.ContinueStatementContext) interface{}
- func (t *TypeChecker) VisitEmptyTypeDeclaration(ctx *grammar.EmptyTypeDeclarationContext) interface{}
- func (t *TypeChecker) VisitEmptyVariableDeclaration(ctx *grammar.EmptyVariableDeclarationContext) interface{}
- func (t *TypeChecker) VisitErrorNode(node antlr.ErrorNode) interface{}
- func (t *TypeChecker) VisitExpression(ctx *grammar.ExpressionContext) interface{}
- func (t *TypeChecker) VisitExpressionCaseClause(ctx *grammar.ExpressionCaseClauseContext) interface{}
- func (t *TypeChecker) VisitExpressionCaseClauseList(ctx *grammar.ExpressionCaseClauseListContext) interface{}
- func (t *TypeChecker) VisitExpressionList(ctx *grammar.ExpressionListContext) interface{}
- func (t *TypeChecker) VisitExpressionOperand(ctx *grammar.ExpressionOperandContext) interface{}
- func (t *TypeChecker) VisitExpressionPostDec(ctx *grammar.ExpressionPostDecContext) interface{}
- func (t *TypeChecker) VisitExpressionPostInc(ctx *grammar.ExpressionPostIncContext) interface{}
- func (t *TypeChecker) VisitExpressionPrimaryExpression(ctx *grammar.ExpressionPrimaryExpressionContext) interface{}
- func (t *TypeChecker) VisitExpressionSimpleStatement(ctx *grammar.ExpressionSimpleStatementContext) interface{}
- func (t *TypeChecker) VisitExpressionSwitchCase(ctx *grammar.ExpressionSwitchCaseContext) interface{}
- func (t *TypeChecker) VisitFloatLiteral(ctx *grammar.FloatLiteralContext) interface{}
- func (t *TypeChecker) VisitFuncArgsDecls(ctx *grammar.FuncArgsDeclsContext) interface{}
- func (t *TypeChecker) VisitFuncDecl(ctx *grammar.FuncDeclContext) interface{}
- func (t *TypeChecker) VisitFuncDef(ctx *grammar.FuncDefContext) interface{}
- func (t *TypeChecker) VisitFuncFrontDecl(ctx *grammar.FuncFrontDeclContext) interface{}
- func (t *TypeChecker) VisitFunctionCall(ctx *grammar.FunctionCallContext) interface{}
- func (t *TypeChecker) VisitIdentifierDeclType(ctx *grammar.IdentifierDeclTypeContext) interface{}
- func (t *TypeChecker) VisitIdentifierList(ctx *grammar.IdentifierListContext) interface{}
- func (t *TypeChecker) VisitIdentifierOperand(ctx *grammar.IdentifierOperandContext) interface{}
- func (t *TypeChecker) VisitIfElseBlock(ctx *grammar.IfElseBlockContext) interface{}
- func (t *TypeChecker) VisitIfElseIf(ctx *grammar.IfElseIfContext) interface{}
- func (t *TypeChecker) VisitIfSimpleElseBlock(ctx *grammar.IfSimpleElseBlockContext) interface{}
- func (t *TypeChecker) VisitIfSimpleElseIf(ctx *grammar.IfSimpleElseIfContext) interface{}
- func (t *TypeChecker) VisitIfSimpleNoElse(ctx *grammar.IfSimpleNoElseContext) interface{}
- func (t *TypeChecker) VisitIfSingleExpression(ctx *grammar.IfSingleExpressionContext) interface{}
- func (t *TypeChecker) VisitIfStatementStatement(ctx *grammar.IfStatementStatementContext) interface{}
- func (t *TypeChecker) VisitInPlaceAssignment(ctx *grammar.InPlaceAssignmentContext) interface{}
- func (t *TypeChecker) VisitIndex(ctx *grammar.IndexContext) interface{}
- func (t *TypeChecker) VisitInfiniteFor(ctx *grammar.InfiniteForContext) interface{}
- func (t *TypeChecker) VisitInnerTypeDecls(ctx *grammar.InnerTypeDeclsContext) interface{}
- func (t *TypeChecker) VisitInnerVarDecls(ctx *grammar.InnerVarDeclsContext) interface{}
- func (t *TypeChecker) VisitIntLiteral(ctx *grammar.IntLiteralContext) interface{}
- func (t *TypeChecker) VisitInterpretedStringLiteral(ctx *grammar.InterpretedStringLiteralContext) interface{}
- func (t *TypeChecker) VisitLenCall(ctx *grammar.LenCallContext) interface{}
- func (t *TypeChecker) VisitLengthExpression(ctx *grammar.LengthExpressionContext) interface{}
- func (t *TypeChecker) VisitLiteralOperand(ctx *grammar.LiteralOperandContext) interface{}
- func (t *TypeChecker) VisitLoopStatement(ctx *grammar.LoopStatementContext) interface{}
- func (t *TypeChecker) VisitMemberAccessor(ctx *grammar.MemberAccessorContext) interface{}
- func (t *TypeChecker) VisitMultiTypeDeclaration(ctx *grammar.MultiTypeDeclarationContext) interface{}
- func (t *TypeChecker) VisitMultiVariableDeclaration(ctx *grammar.MultiVariableDeclarationContext) interface{}
- func (t *TypeChecker) VisitNegativeExpression(ctx *grammar.NegativeExpressionContext) interface{}
- func (t *TypeChecker) VisitNestedType(ctx *grammar.NestedTypeContext) interface{}
- func (t *TypeChecker) VisitNormalAssignment(ctx *grammar.NormalAssignmentContext) interface{}
- func (t *TypeChecker) VisitNormalSwitch(ctx *grammar.NormalSwitchContext) interface{}
- func (t *TypeChecker) VisitNormalSwitchExpression(ctx *grammar.NormalSwitchExpressionContext) interface{}
- func (t *TypeChecker) VisitNotExpression(ctx *grammar.NotExpressionContext) interface{}
- func (t *TypeChecker) VisitNumericIntLiteral(ctx *grammar.NumericIntLiteralContext) interface{}
- func (t *TypeChecker) VisitNumerixHexLiteral(ctx *grammar.NumerixHexLiteralContext) interface{}
- func (t *TypeChecker) VisitOperand(ctx *grammar.OperandContext) interface{}
- func (t *TypeChecker) VisitOperandExpression(ctx *grammar.OperandExpressionContext) interface{}
- func (t *TypeChecker) VisitOperationPrecedence1(ctx *grammar.OperationPrecedence1Context) interface{}
- func (t *TypeChecker) VisitOperationPrecedence2(ctx *grammar.OperationPrecedence2Context) interface{}
- func (t *TypeChecker) VisitPositiveExpression(ctx *grammar.PositiveExpressionContext) interface{}
- func (t *TypeChecker) VisitPrintStatement(ctx *grammar.PrintStatementContext) interface{}
- func (t *TypeChecker) VisitPrintlnStatement(ctx *grammar.PrintlnStatementContext) interface{}
- func (t *TypeChecker) VisitRawStringLiteral(ctx *grammar.RawStringLiteralContext) interface{}
- func (t *TypeChecker) VisitReturnStatement(ctx *grammar.ReturnStatementContext) interface{}
- func (t *TypeChecker) VisitRoot(ctx *grammar.RootContext) interface{}
- func (t *TypeChecker) VisitRuneLiteral(ctx *grammar.RuneLiteralContext) interface{}
- func (t *TypeChecker) VisitSelector(ctx *grammar.SelectorContext) interface{}
- func (t *TypeChecker) VisitSimpleStatement(ctx *grammar.SimpleStatementContext) interface{}
- func (t *TypeChecker) VisitSimpleStatementStatement(ctx *grammar.SimpleStatementStatementContext) interface{}
- func (t *TypeChecker) VisitSimpleStatementSwitch(ctx *grammar.SimpleStatementSwitchContext) interface{}
- func (t *TypeChecker) VisitSimpleStatementSwitchExpression(ctx *grammar.SimpleStatementSwitchExpressionContext) interface{}
- func (t *TypeChecker) VisitSingleTypeDecl(ctx *grammar.SingleTypeDeclContext) interface{}
- func (t *TypeChecker) VisitSingleVarDecl(ctx *grammar.SingleVarDeclContext) interface{}
- func (t *TypeChecker) VisitSingleVarDeclNoExps(ctx *grammar.SingleVarDeclNoExpsContext) interface{}
- func (t *TypeChecker) VisitSingleVarDeclsNoExpsDecl(ctx *grammar.SingleVarDeclsNoExpsDeclContext) interface{}
- func (t *TypeChecker) VisitSliceDeclType(ctx *grammar.SliceDeclTypeContext) interface{}
- func (t *TypeChecker) VisitSliceType(ctx *grammar.SliceTypeContext) interface{}
- func (t *TypeChecker) VisitStatementList(ctx *grammar.StatementListContext) interface{}
- func (t *TypeChecker) VisitStructDeclType(ctx *grammar.StructDeclTypeContext) interface{}
- func (t *TypeChecker) VisitStructMemDecls(ctx *grammar.StructMemDeclsContext) interface{}
- func (t *TypeChecker) VisitStructType(ctx *grammar.StructTypeContext) interface{}
- func (t *TypeChecker) VisitSubIndex(ctx *grammar.SubIndexContext) interface{}
- func (t *TypeChecker) VisitSwitchCaseBranch(ctx *grammar.SwitchCaseBranchContext) interface{}
- func (t *TypeChecker) VisitSwitchDefaultBranch(ctx *grammar.SwitchDefaultBranchContext) interface{}
- func (t *TypeChecker) VisitSwitchStatement(ctx *grammar.SwitchStatementContext) interface{}
- func (t *TypeChecker) VisitTerminal(node antlr.TerminalNode) interface{}
- func (t *TypeChecker) VisitThreePartFor(ctx *grammar.ThreePartForContext) interface{}
- func (t *TypeChecker) VisitThreePartForNoExpression(ctx *grammar.ThreePartForNoExpressionContext) interface{}
- func (t *TypeChecker) VisitTopDeclarationList(ctx *grammar.TopDeclarationListContext) interface{}
- func (t *TypeChecker) VisitTypeDecl(ctx *grammar.TypeDeclContext) interface{}
- func (t *TypeChecker) VisitTypeDeclStatement(ctx *grammar.TypeDeclStatementContext) interface{}
- func (t *TypeChecker) VisitTypeDeclaration(ctx *grammar.TypeDeclarationContext) interface{}
- func (t *TypeChecker) VisitTypedVarDecl(ctx *grammar.TypedVarDeclContext) interface{}
- func (t *TypeChecker) VisitUntypedVarDecl(ctx *grammar.UntypedVarDeclContext) interface{}
- func (t *TypeChecker) VisitVariableDeclStatement(ctx *grammar.VariableDeclStatementContext) interface{}
- func (t *TypeChecker) VisitVariableDeclaration(ctx *grammar.VariableDeclarationContext) interface{}
- func (t *TypeChecker) VisitWalrusDeclaration(ctx *grammar.WalrusDeclarationContext) interface{}
- func (t *TypeChecker) VisitWhileFor(ctx *grammar.WhileForContext) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TypeChecker ¶
type TypeChecker struct {
// contains filtered or unexported fields
}
func NewTypeChecker ¶
func NewTypeChecker(filename string, listener antlr.ErrorListener) *TypeChecker
func (*TypeChecker) FindGlobalSymbol ¶
func (t *TypeChecker) FindGlobalSymbol(name string) (*internal.Symbol, bool)
func (*TypeChecker) Visit ¶
func (t *TypeChecker) Visit(tree antlr.ParseTree) interface{}
Visit implements grammar.MinigoVisitor.
func (*TypeChecker) VisitAppendCall ¶
func (t *TypeChecker) VisitAppendCall(ctx *grammar.AppendCallContext) interface{}
VisitAppendCall implements grammar.MinigoVisitor.
func (*TypeChecker) VisitAppendExpression ¶
func (t *TypeChecker) VisitAppendExpression(ctx *grammar.AppendExpressionContext) interface{}
VisitAppendExpression implements grammar.MinigoVisitor.
func (*TypeChecker) VisitArguments ¶
func (t *TypeChecker) VisitArguments(ctx *grammar.ArgumentsContext) interface{}
VisitArguments implements grammar.MinigoVisitor.
func (*TypeChecker) VisitArrayDeclType ¶
func (t *TypeChecker) VisitArrayDeclType(ctx *grammar.ArrayDeclTypeContext) interface{}
VisitArrayDeclType implements grammar.MinigoVisitor.
func (*TypeChecker) VisitArrayType ¶
func (t *TypeChecker) VisitArrayType(ctx *grammar.ArrayTypeContext) interface{}
VisitArrayType implements grammar.MinigoVisitor.
func (*TypeChecker) VisitAssignmentSimpleStatement ¶
func (t *TypeChecker) VisitAssignmentSimpleStatement(ctx *grammar.AssignmentSimpleStatementContext) interface{}
VisitAssignmentSimpleStatement implements grammar.MinigoVisitor.
func (*TypeChecker) VisitBlock ¶
func (t *TypeChecker) VisitBlock(ctx *grammar.BlockContext) interface{}
VisitBlock implements grammar.MinigoVisitor.
func (*TypeChecker) VisitBlockStatement ¶
func (t *TypeChecker) VisitBlockStatement(ctx *grammar.BlockStatementContext) interface{}
VisitBlockStatement implements grammar.MinigoVisitor.o
func (*TypeChecker) VisitBooleanOperation ¶
func (t *TypeChecker) VisitBooleanOperation(ctx *grammar.BooleanOperationContext) interface{}
VisitBooleanOperation implements grammar.MinigoVisitor.
func (*TypeChecker) VisitBreakStatement ¶
func (t *TypeChecker) VisitBreakStatement(ctx *grammar.BreakStatementContext) interface{}
VisitBreakStatement implements grammar.MinigoVisitor.
func (*TypeChecker) VisitCapCall ¶
func (t *TypeChecker) VisitCapCall(ctx *grammar.CapCallContext) interface{}
VisitCapCall implements grammar.MinigoVisitor.
func (*TypeChecker) VisitCapExpression ¶
func (t *TypeChecker) VisitCapExpression(ctx *grammar.CapExpressionContext) interface{}
VisitCapExpression implements grammar.MinigoVisitor.
func (*TypeChecker) VisitCaretExpression ¶
func (t *TypeChecker) VisitCaretExpression(ctx *grammar.CaretExpressionContext) interface{}
VisitCaretExpression implements grammar.MinigoVisitor.
func (*TypeChecker) VisitChildren ¶
func (v *TypeChecker) VisitChildren(node antlr.RuleNode) interface{}
func (*TypeChecker) VisitComparison ¶
func (t *TypeChecker) VisitComparison(ctx *grammar.ComparisonContext) interface{}
VisitComparison implements grammar.MinigoVisitor.
func (*TypeChecker) VisitContinueStatement ¶
func (t *TypeChecker) VisitContinueStatement(ctx *grammar.ContinueStatementContext) interface{}
VisitContinueStatement implements grammar.MinigoVisitor.
func (*TypeChecker) VisitEmptyTypeDeclaration ¶
func (t *TypeChecker) VisitEmptyTypeDeclaration(ctx *grammar.EmptyTypeDeclarationContext) interface{}
VisitEmptyTypeDeclaration implements grammar.MinigoVisitor. Subtle: this method shadows the method (BaseMinigoVisitor).VisitEmptyTypeDeclaration of TypeChecker.BaseMinigoVisitor.
func (*TypeChecker) VisitEmptyVariableDeclaration ¶
func (t *TypeChecker) VisitEmptyVariableDeclaration(ctx *grammar.EmptyVariableDeclarationContext) interface{}
VisitEmptyVariableDeclaration implements grammar.MinigoVisitor.
func (*TypeChecker) VisitErrorNode ¶
func (t *TypeChecker) VisitErrorNode(node antlr.ErrorNode) interface{}
VisitErrorNode implements grammar.MinigoVisitor.
func (*TypeChecker) VisitExpression ¶
func (t *TypeChecker) VisitExpression(ctx *grammar.ExpressionContext) interface{}
VisitExpression implements grammar.MinigoVisitor.
func (*TypeChecker) VisitExpressionCaseClause ¶
func (t *TypeChecker) VisitExpressionCaseClause(ctx *grammar.ExpressionCaseClauseContext) interface{}
VisitExpressionCaseClause implements grammar.MinigoVisitor.
func (*TypeChecker) VisitExpressionCaseClauseList ¶
func (t *TypeChecker) VisitExpressionCaseClauseList(ctx *grammar.ExpressionCaseClauseListContext) interface{}
VisitExpressionCaseClauseList implements grammar.MinigoVisitor.
func (*TypeChecker) VisitExpressionList ¶
func (t *TypeChecker) VisitExpressionList(ctx *grammar.ExpressionListContext) interface{}
VisitExpressionList implements grammar.MinigoVisitor.
func (*TypeChecker) VisitExpressionOperand ¶
func (t *TypeChecker) VisitExpressionOperand(ctx *grammar.ExpressionOperandContext) interface{}
VisitExpressionOperand implements grammar.MinigoVisitor.
func (*TypeChecker) VisitExpressionPostDec ¶
func (t *TypeChecker) VisitExpressionPostDec(ctx *grammar.ExpressionPostDecContext) interface{}
VisitExpressionPostDec implements grammar.MinigoVisitor.
func (*TypeChecker) VisitExpressionPostInc ¶
func (t *TypeChecker) VisitExpressionPostInc(ctx *grammar.ExpressionPostIncContext) interface{}
VisitExpressionPostInc implements grammar.MinigoVisitor.
func (*TypeChecker) VisitExpressionPrimaryExpression ¶
func (t *TypeChecker) VisitExpressionPrimaryExpression(ctx *grammar.ExpressionPrimaryExpressionContext) interface{}
VisitExpressionPrimaryExpression implements grammar.MinigoVisitor.
func (*TypeChecker) VisitExpressionSimpleStatement ¶
func (t *TypeChecker) VisitExpressionSimpleStatement(ctx *grammar.ExpressionSimpleStatementContext) interface{}
VisitExpressionSimpleStatement implements grammar.MinigoVisitor.
func (*TypeChecker) VisitExpressionSwitchCase ¶
func (t *TypeChecker) VisitExpressionSwitchCase(ctx *grammar.ExpressionSwitchCaseContext) interface{}
VisitExpressionSwitchCase implements grammar.MinigoVisitor.
func (*TypeChecker) VisitFloatLiteral ¶
func (t *TypeChecker) VisitFloatLiteral(ctx *grammar.FloatLiteralContext) interface{}
VisitFloatLiteral implements grammar.MinigoVisitor.
func (*TypeChecker) VisitFuncArgsDecls ¶
func (t *TypeChecker) VisitFuncArgsDecls(ctx *grammar.FuncArgsDeclsContext) interface{}
VisitFuncArgsDecls implements grammar.MinigoVisitor.
func (*TypeChecker) VisitFuncDecl ¶
func (t *TypeChecker) VisitFuncDecl(ctx *grammar.FuncDeclContext) interface{}
VisitFuncDecl implements grammar.MinigoVisitor.
func (*TypeChecker) VisitFuncDef ¶
func (t *TypeChecker) VisitFuncDef(ctx *grammar.FuncDefContext) interface{}
VisitFuncDef implements grammar.MinigoVisitor.
func (*TypeChecker) VisitFuncFrontDecl ¶
func (t *TypeChecker) VisitFuncFrontDecl(ctx *grammar.FuncFrontDeclContext) interface{}
VisitFuncFrontDecl implements grammar.MinigoVisitor.
func (*TypeChecker) VisitFunctionCall ¶
func (t *TypeChecker) VisitFunctionCall(ctx *grammar.FunctionCallContext) interface{}
VisitFunctionCall implements grammar.MinigoVisitor.
func (*TypeChecker) VisitIdentifierDeclType ¶
func (t *TypeChecker) VisitIdentifierDeclType(ctx *grammar.IdentifierDeclTypeContext) interface{}
VisitIdentifierDeclType implements grammar.MinigoVisitor.
func (*TypeChecker) VisitIdentifierList ¶
func (t *TypeChecker) VisitIdentifierList(ctx *grammar.IdentifierListContext) interface{}
VisitIdentifierList implements grammar.MinigoVisitor.
func (*TypeChecker) VisitIdentifierOperand ¶
func (t *TypeChecker) VisitIdentifierOperand(ctx *grammar.IdentifierOperandContext) interface{}
VisitIdentifierOperand implements grammar.MinigoVisitor.
func (*TypeChecker) VisitIfElseBlock ¶
func (t *TypeChecker) VisitIfElseBlock(ctx *grammar.IfElseBlockContext) interface{}
VisitIfElseBlock implements grammar.MinigoVisitor.
func (*TypeChecker) VisitIfElseIf ¶
func (t *TypeChecker) VisitIfElseIf(ctx *grammar.IfElseIfContext) interface{}
VisitIfElseIf implements grammar.MinigoVisitor.
func (*TypeChecker) VisitIfSimpleElseBlock ¶
func (t *TypeChecker) VisitIfSimpleElseBlock(ctx *grammar.IfSimpleElseBlockContext) interface{}
VisitIfSimpleElseBlock implements grammar.MinigoVisitor.
func (*TypeChecker) VisitIfSimpleElseIf ¶
func (t *TypeChecker) VisitIfSimpleElseIf(ctx *grammar.IfSimpleElseIfContext) interface{}
VisitIfSimpleElseIf implements grammar.MinigoVisitor.
func (*TypeChecker) VisitIfSimpleNoElse ¶
func (t *TypeChecker) VisitIfSimpleNoElse(ctx *grammar.IfSimpleNoElseContext) interface{}
VisitIfSimpleNoElse implements grammar.MinigoVisitor.
func (*TypeChecker) VisitIfSingleExpression ¶
func (t *TypeChecker) VisitIfSingleExpression(ctx *grammar.IfSingleExpressionContext) interface{}
VisitIfSingleExpression implements grammar.MinigoVisitor.
func (*TypeChecker) VisitIfStatementStatement ¶
func (t *TypeChecker) VisitIfStatementStatement(ctx *grammar.IfStatementStatementContext) interface{}
VisitIfStatementStatement implements grammar.MinigoVisitor.
func (*TypeChecker) VisitInPlaceAssignment ¶
func (t *TypeChecker) VisitInPlaceAssignment(ctx *grammar.InPlaceAssignmentContext) interface{}
VisitInPlaceAssignment implements grammar.MinigoVisitor.
func (*TypeChecker) VisitIndex ¶
func (t *TypeChecker) VisitIndex(ctx *grammar.IndexContext) interface{}
VisitIndex implements grammar.MinigoVisitor.
func (*TypeChecker) VisitInfiniteFor ¶
func (t *TypeChecker) VisitInfiniteFor(ctx *grammar.InfiniteForContext) interface{}
VisitInfiniteFor implements grammar.MinigoVisitor.
func (*TypeChecker) VisitInnerTypeDecls ¶
func (t *TypeChecker) VisitInnerTypeDecls(ctx *grammar.InnerTypeDeclsContext) interface{}
VisitInnerTypeDecls implements grammar.MinigoVisitor.
func (*TypeChecker) VisitInnerVarDecls ¶
func (t *TypeChecker) VisitInnerVarDecls(ctx *grammar.InnerVarDeclsContext) interface{}
VisitInnerVarDecls implements grammar.MinigoVisitor.
func (*TypeChecker) VisitIntLiteral ¶
func (t *TypeChecker) VisitIntLiteral(ctx *grammar.IntLiteralContext) interface{}
VisitIntLiteral implements grammar.MinigoVisitor.
func (*TypeChecker) VisitInterpretedStringLiteral ¶
func (t *TypeChecker) VisitInterpretedStringLiteral(ctx *grammar.InterpretedStringLiteralContext) interface{}
VisitInterpretedStringLiteral implements grammar.MinigoVisitor.
func (*TypeChecker) VisitLenCall ¶
func (t *TypeChecker) VisitLenCall(ctx *grammar.LenCallContext) interface{}
VisitLenCall implements grammar.MinigoVisitor.
func (*TypeChecker) VisitLengthExpression ¶
func (t *TypeChecker) VisitLengthExpression(ctx *grammar.LengthExpressionContext) interface{}
VisitLengthExpression implements grammar.MinigoVisitor.
func (*TypeChecker) VisitLiteralOperand ¶
func (t *TypeChecker) VisitLiteralOperand(ctx *grammar.LiteralOperandContext) interface{}
VisitLiteralOperand implements grammar.MinigoVisitor.
func (*TypeChecker) VisitLoopStatement ¶
func (t *TypeChecker) VisitLoopStatement(ctx *grammar.LoopStatementContext) interface{}
VisitLoopStatement implements grammar.MinigoVisitor.
func (*TypeChecker) VisitMemberAccessor ¶
func (t *TypeChecker) VisitMemberAccessor(ctx *grammar.MemberAccessorContext) interface{}
VisitMemberAccessor implements grammar.MinigoVisitor.
func (*TypeChecker) VisitMultiTypeDeclaration ¶
func (t *TypeChecker) VisitMultiTypeDeclaration(ctx *grammar.MultiTypeDeclarationContext) interface{}
VisitMultiTypeDeclaration implements grammar.MinigoVisitor.
func (*TypeChecker) VisitMultiVariableDeclaration ¶
func (t *TypeChecker) VisitMultiVariableDeclaration(ctx *grammar.MultiVariableDeclarationContext) interface{}
VisitMultiVariableDeclaration implements grammar.MinigoVisitor.
func (*TypeChecker) VisitNegativeExpression ¶
func (t *TypeChecker) VisitNegativeExpression(ctx *grammar.NegativeExpressionContext) interface{}
VisitNegativeExpression implements grammar.MinigoVisitor.
func (*TypeChecker) VisitNestedType ¶
func (t *TypeChecker) VisitNestedType(ctx *grammar.NestedTypeContext) interface{}
VisitNestedType implements grammar.MinigoVisitor.
func (*TypeChecker) VisitNormalAssignment ¶
func (t *TypeChecker) VisitNormalAssignment(ctx *grammar.NormalAssignmentContext) interface{}
VisitNormalAssignment implements grammar.MinigoVisitor.
func (*TypeChecker) VisitNormalSwitch ¶
func (t *TypeChecker) VisitNormalSwitch(ctx *grammar.NormalSwitchContext) interface{}
VisitNormalSwitch implements grammar.MinigoVisitor.
func (*TypeChecker) VisitNormalSwitchExpression ¶
func (t *TypeChecker) VisitNormalSwitchExpression(ctx *grammar.NormalSwitchExpressionContext) interface{}
VisitNormalSwitchExpression implements grammar.MinigoVisitor.
func (*TypeChecker) VisitNotExpression ¶
func (t *TypeChecker) VisitNotExpression(ctx *grammar.NotExpressionContext) interface{}
VisitNotExpression implements grammar.MinigoVisitor.
func (*TypeChecker) VisitNumericIntLiteral ¶
func (t *TypeChecker) VisitNumericIntLiteral(ctx *grammar.NumericIntLiteralContext) interface{}
VisitNumericIntLiteral implements grammar.MinigoVisitor.
func (*TypeChecker) VisitNumerixHexLiteral ¶
func (t *TypeChecker) VisitNumerixHexLiteral(ctx *grammar.NumerixHexLiteralContext) interface{}
VisitNumerixHexLiteral implements grammar.MinigoVisitor.
func (*TypeChecker) VisitOperand ¶
func (t *TypeChecker) VisitOperand(ctx *grammar.OperandContext) interface{}
VisitOperand implements grammar.MinigoVisitor.
func (*TypeChecker) VisitOperandExpression ¶
func (t *TypeChecker) VisitOperandExpression(ctx *grammar.OperandExpressionContext) interface{}
VisitOperandExpression implements grammar.MinigoVisitor.
func (*TypeChecker) VisitOperationPrecedence1 ¶
func (t *TypeChecker) VisitOperationPrecedence1(ctx *grammar.OperationPrecedence1Context) interface{}
VisitOperationPrecedence1 implements grammar.MinigoVisitor.
func (*TypeChecker) VisitOperationPrecedence2 ¶
func (t *TypeChecker) VisitOperationPrecedence2(ctx *grammar.OperationPrecedence2Context) interface{}
VisitOperationPrecedence2 implements grammar.MinigoVisitor.
func (*TypeChecker) VisitPositiveExpression ¶
func (t *TypeChecker) VisitPositiveExpression(ctx *grammar.PositiveExpressionContext) interface{}
VisitPositiveExpression implements grammar.MinigoVisitor.
func (*TypeChecker) VisitPrintStatement ¶
func (t *TypeChecker) VisitPrintStatement(ctx *grammar.PrintStatementContext) interface{}
VisitPrintStatement implements grammar.MinigoVisitor.
func (*TypeChecker) VisitPrintlnStatement ¶
func (t *TypeChecker) VisitPrintlnStatement(ctx *grammar.PrintlnStatementContext) interface{}
VisitPrintlnStatement implements grammar.MinigoVisitor.
func (*TypeChecker) VisitRawStringLiteral ¶
func (t *TypeChecker) VisitRawStringLiteral(ctx *grammar.RawStringLiteralContext) interface{}
VisitRawStringLiteral implements grammar.MinigoVisitor.
func (*TypeChecker) VisitReturnStatement ¶
func (t *TypeChecker) VisitReturnStatement(ctx *grammar.ReturnStatementContext) interface{}
VisitReturnStatement implements grammar.MinigoVisitor.
func (*TypeChecker) VisitRoot ¶
func (t *TypeChecker) VisitRoot(ctx *grammar.RootContext) interface{}
VisitRoot implements grammar.MinigoVisitor.
func (*TypeChecker) VisitRuneLiteral ¶
func (t *TypeChecker) VisitRuneLiteral(ctx *grammar.RuneLiteralContext) interface{}
VisitRuneLiteral implements grammar.MinigoVisitor.
func (*TypeChecker) VisitSelector ¶
func (t *TypeChecker) VisitSelector(ctx *grammar.SelectorContext) interface{}
VisitSelector implements grammar.MinigoVisitor.
func (*TypeChecker) VisitSimpleStatement ¶
func (t *TypeChecker) VisitSimpleStatement(ctx *grammar.SimpleStatementContext) interface{}
VisitSimpleStatement implements grammar.MinigoVisitor.
func (*TypeChecker) VisitSimpleStatementStatement ¶
func (t *TypeChecker) VisitSimpleStatementStatement(ctx *grammar.SimpleStatementStatementContext) interface{}
VisitSimpleStatementStatement implements grammar.MinigoVisitor.
func (*TypeChecker) VisitSimpleStatementSwitch ¶
func (t *TypeChecker) VisitSimpleStatementSwitch(ctx *grammar.SimpleStatementSwitchContext) interface{}
VisitSimpleStatementSwitch implements grammar.MinigoVisitor.
func (*TypeChecker) VisitSimpleStatementSwitchExpression ¶
func (t *TypeChecker) VisitSimpleStatementSwitchExpression(ctx *grammar.SimpleStatementSwitchExpressionContext) interface{}
VisitSimpleStatementSwitchExpression implements grammar.MinigoVisitor.
func (*TypeChecker) VisitSingleTypeDecl ¶
func (t *TypeChecker) VisitSingleTypeDecl(ctx *grammar.SingleTypeDeclContext) interface{}
VisitSingleTypeDecl implements grammar.MinigoVisitor.
func (*TypeChecker) VisitSingleVarDecl ¶
func (t *TypeChecker) VisitSingleVarDecl(ctx *grammar.SingleVarDeclContext) interface{}
VisitSingleVarDecl implements grammar.MinigoVisitor.
func (*TypeChecker) VisitSingleVarDeclNoExps ¶
func (t *TypeChecker) VisitSingleVarDeclNoExps(ctx *grammar.SingleVarDeclNoExpsContext) interface{}
VisitSingleVarDeclNoExps implements grammar.MinigoVisitor.
func (*TypeChecker) VisitSingleVarDeclsNoExpsDecl ¶
func (t *TypeChecker) VisitSingleVarDeclsNoExpsDecl(ctx *grammar.SingleVarDeclsNoExpsDeclContext) interface{}
VisitSingleVarDeclsNoExpsDecl implements grammar.MinigoVisitor.
func (*TypeChecker) VisitSliceDeclType ¶
func (t *TypeChecker) VisitSliceDeclType(ctx *grammar.SliceDeclTypeContext) interface{}
VisitSliceDeclType implements grammar.MinigoVisitor.
func (*TypeChecker) VisitSliceType ¶
func (t *TypeChecker) VisitSliceType(ctx *grammar.SliceTypeContext) interface{}
VisitSliceType implements grammar.MinigoVisitor.
func (*TypeChecker) VisitStatementList ¶
func (t *TypeChecker) VisitStatementList(ctx *grammar.StatementListContext) interface{}
VisitStatementList implements grammar.MinigoVisitor.
func (*TypeChecker) VisitStructDeclType ¶
func (t *TypeChecker) VisitStructDeclType(ctx *grammar.StructDeclTypeContext) interface{}
VisitStructDeclType implements grammar.MinigoVisitor.
func (*TypeChecker) VisitStructMemDecls ¶
func (t *TypeChecker) VisitStructMemDecls(ctx *grammar.StructMemDeclsContext) interface{}
VisitStructMemDecls implements grammar.MinigoVisitor.
func (*TypeChecker) VisitStructType ¶
func (t *TypeChecker) VisitStructType(ctx *grammar.StructTypeContext) interface{}
VisitStructType implements grammar.MinigoVisitor.
func (*TypeChecker) VisitSubIndex ¶
func (t *TypeChecker) VisitSubIndex(ctx *grammar.SubIndexContext) interface{}
From this function I have to return the type of the value that's getting indexed
func (*TypeChecker) VisitSwitchCaseBranch ¶
func (t *TypeChecker) VisitSwitchCaseBranch(ctx *grammar.SwitchCaseBranchContext) interface{}
VisitSwitchCaseBranch implements grammar.MinigoVisitor.
func (*TypeChecker) VisitSwitchDefaultBranch ¶
func (t *TypeChecker) VisitSwitchDefaultBranch(ctx *grammar.SwitchDefaultBranchContext) interface{}
VisitSwitchDefaultBranch implements grammar.MinigoVisitor.
func (*TypeChecker) VisitSwitchStatement ¶
func (t *TypeChecker) VisitSwitchStatement(ctx *grammar.SwitchStatementContext) interface{}
VisitSwitchStatement implements grammar.MinigoVisitor.
func (*TypeChecker) VisitTerminal ¶
func (t *TypeChecker) VisitTerminal(node antlr.TerminalNode) interface{}
VisitTerminal implements grammar.MinigoVisitor.
func (*TypeChecker) VisitThreePartFor ¶
func (t *TypeChecker) VisitThreePartFor(ctx *grammar.ThreePartForContext) interface{}
VisitThreePartFor implements grammar.MinigoVisitor.
func (*TypeChecker) VisitThreePartForNoExpression ¶
func (t *TypeChecker) VisitThreePartForNoExpression(ctx *grammar.ThreePartForNoExpressionContext) interface{}
VisitThreePartForNoExpression implements grammar.MinigoVisitor.
func (*TypeChecker) VisitTopDeclarationList ¶
func (t *TypeChecker) VisitTopDeclarationList(ctx *grammar.TopDeclarationListContext) interface{}
VisitTopDeclarationList implements grammar.MinigoVisitor.
func (*TypeChecker) VisitTypeDecl ¶
func (t *TypeChecker) VisitTypeDecl(ctx *grammar.TypeDeclContext) interface{}
VisitTypeDecl implements grammar.MinigoVisitor.
func (*TypeChecker) VisitTypeDeclStatement ¶
func (t *TypeChecker) VisitTypeDeclStatement(ctx *grammar.TypeDeclStatementContext) interface{}
VisitTypeDeclStatement implements grammar.MinigoVisitor.
func (*TypeChecker) VisitTypeDeclaration ¶
func (t *TypeChecker) VisitTypeDeclaration(ctx *grammar.TypeDeclarationContext) interface{}
VisitTypeDeclaration implements grammar.MinigoVisitor.
func (*TypeChecker) VisitTypedVarDecl ¶
func (t *TypeChecker) VisitTypedVarDecl(ctx *grammar.TypedVarDeclContext) interface{}
VisitTypedVarDecl implements grammar.MinigoVisitor.
func (*TypeChecker) VisitUntypedVarDecl ¶
func (t *TypeChecker) VisitUntypedVarDecl(ctx *grammar.UntypedVarDeclContext) interface{}
VisitUntypedVarDecl implements grammar.MinigoVisitor.
func (*TypeChecker) VisitVariableDeclStatement ¶
func (t *TypeChecker) VisitVariableDeclStatement(ctx *grammar.VariableDeclStatementContext) interface{}
VisitVariableDeclStatement implements grammar.MinigoVisitor.
func (*TypeChecker) VisitVariableDeclaration ¶
func (t *TypeChecker) VisitVariableDeclaration(ctx *grammar.VariableDeclarationContext) interface{}
VisitVariableDeclaration implements grammar.MinigoVisitor.
func (*TypeChecker) VisitWalrusDeclaration ¶
func (t *TypeChecker) VisitWalrusDeclaration(ctx *grammar.WalrusDeclarationContext) interface{}
VisitWalrusDeclaration implements grammar.MinigoVisitor.
func (*TypeChecker) VisitWhileFor ¶
func (t *TypeChecker) VisitWhileFor(ctx *grammar.WhileForContext) interface{}
VisitWhileFor implements grammar.MinigoVisitor.