Class SmalltalkBaseVisitor<Result>
This class provides an empty implementation of ISmalltalkVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Smalltalk
Assembly: Smalltalk.dll
Syntax
public class SmalltalkBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, ISmalltalkVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAnswer(SmalltalkParser.AnswerContext)
Visit a parse tree produced by answer().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAnswer(SmalltalkParser.AnswerContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.AnswerContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAssignment(SmalltalkParser.AssignmentContext)
Visit a parse tree produced by assignment().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAssignment(SmalltalkParser.AssignmentContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.AssignmentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBareLiteralArray(SmalltalkParser.BareLiteralArrayContext)
Visit a parse tree produced by bareLiteralArray().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBareLiteralArray(SmalltalkParser.BareLiteralArrayContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.BareLiteralArrayContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBareSymbol(SmalltalkParser.BareSymbolContext)
Visit a parse tree produced by bareSymbol().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBareSymbol(SmalltalkParser.BareSymbolContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.BareSymbolContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBinaryMessage(SmalltalkParser.BinaryMessageContext)
Visit a parse tree produced by binaryMessage().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBinaryMessage(SmalltalkParser.BinaryMessageContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.BinaryMessageContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBinarySend(SmalltalkParser.BinarySendContext)
Visit a parse tree produced by binarySend().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBinarySend(SmalltalkParser.BinarySendContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.BinarySendContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBinaryTail(SmalltalkParser.BinaryTailContext)
Visit a parse tree produced by binaryTail().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBinaryTail(SmalltalkParser.BinaryTailContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.BinaryTailContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBlock(SmalltalkParser.BlockContext)
Visit a parse tree produced by block().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBlock(SmalltalkParser.BlockContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.BlockContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBlockParamList(SmalltalkParser.BlockParamListContext)
Visit a parse tree produced by blockParamList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBlockParamList(SmalltalkParser.BlockParamListContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.BlockParamListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCascade(SmalltalkParser.CascadeContext)
Visit a parse tree produced by cascade().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCascade(SmalltalkParser.CascadeContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.CascadeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCharConstant(SmalltalkParser.CharConstantContext)
Visit a parse tree produced by charConstant().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCharConstant(SmalltalkParser.CharConstantContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.CharConstantContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDynamicArray(SmalltalkParser.DynamicArrayContext)
Visit a parse tree produced by dynamicArray().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDynamicArray(SmalltalkParser.DynamicArrayContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.DynamicArrayContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDynamicDictionary(SmalltalkParser.DynamicDictionaryContext)
Visit a parse tree produced by dynamicDictionary().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDynamicDictionary(SmalltalkParser.DynamicDictionaryContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.DynamicDictionaryContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression(SmalltalkParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression(SmalltalkParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.ExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpressionList(SmalltalkParser.ExpressionListContext)
Visit a parse tree produced by expressionList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpressionList(SmalltalkParser.ExpressionListContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.ExpressionListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpressions(SmalltalkParser.ExpressionsContext)
Visit a parse tree produced by expressions().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpressions(SmalltalkParser.ExpressionsContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.ExpressionsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitHex_(SmalltalkParser.Hex_Context)
Visit a parse tree produced by hex_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitHex_(SmalltalkParser.Hex_Context context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.Hex_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitKeywordMessage(SmalltalkParser.KeywordMessageContext)
Visit a parse tree produced by keywordMessage().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitKeywordMessage(SmalltalkParser.KeywordMessageContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.KeywordMessageContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitKeywordPair(SmalltalkParser.KeywordPairContext)
Visit a parse tree produced by keywordPair().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitKeywordPair(SmalltalkParser.KeywordPairContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.KeywordPairContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitKeywords(SmalltalkParser.KeywordsContext)
Visit a parse tree produced by keywords().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitKeywords(SmalltalkParser.KeywordsContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.KeywordsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitKeywordSend(SmalltalkParser.KeywordSendContext)
Visit a parse tree produced by keywordSend().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitKeywordSend(SmalltalkParser.KeywordSendContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.KeywordSendContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLiteral(SmalltalkParser.LiteralContext)
Visit a parse tree produced by literal().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLiteral(SmalltalkParser.LiteralContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.LiteralContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLiteralArray(SmalltalkParser.LiteralArrayContext)
Visit a parse tree produced by literalArray().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLiteralArray(SmalltalkParser.LiteralArrayContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.LiteralArrayContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLiteralArrayRest(SmalltalkParser.LiteralArrayRestContext)
Visit a parse tree produced by literalArrayRest().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLiteralArrayRest(SmalltalkParser.LiteralArrayRestContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.LiteralArrayRestContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMessage(SmalltalkParser.MessageContext)
Visit a parse tree produced by message().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMessage(SmalltalkParser.MessageContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.MessageContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNumber(SmalltalkParser.NumberContext)
Visit a parse tree produced by number().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNumber(SmalltalkParser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.NumberContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNumberExp(SmalltalkParser.NumberExpContext)
Visit a parse tree produced by numberExp().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNumberExp(SmalltalkParser.NumberExpContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.NumberExpContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOperand(SmalltalkParser.OperandContext)
Visit a parse tree produced by operand().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOperand(SmalltalkParser.OperandContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.OperandContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitParsetimeLiteral(SmalltalkParser.ParsetimeLiteralContext)
Visit a parse tree produced by parsetimeLiteral().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitParsetimeLiteral(SmalltalkParser.ParsetimeLiteralContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.ParsetimeLiteralContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPrimitive(SmalltalkParser.PrimitiveContext)
Visit a parse tree produced by primitive().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPrimitive(SmalltalkParser.PrimitiveContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.PrimitiveContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPseudoVariable(SmalltalkParser.PseudoVariableContext)
Visit a parse tree produced by pseudoVariable().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPseudoVariable(SmalltalkParser.PseudoVariableContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.PseudoVariableContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitReference(SmalltalkParser.ReferenceContext)
Visit a parse tree produced by reference().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitReference(SmalltalkParser.ReferenceContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.ReferenceContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRuntimeLiteral(SmalltalkParser.RuntimeLiteralContext)
Visit a parse tree produced by runtimeLiteral().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRuntimeLiteral(SmalltalkParser.RuntimeLiteralContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.RuntimeLiteralContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitScript(SmalltalkParser.ScriptContext)
Visit a parse tree produced by script().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitScript(SmalltalkParser.ScriptContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.ScriptContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSequence(SmalltalkParser.SequenceContext)
Visit a parse tree produced by sequence().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSequence(SmalltalkParser.SequenceContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.SequenceContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatementAnswer(SmalltalkParser.StatementAnswerContext)
Visit a parse tree produced by the StatementAnswer
labeled alternative in statements().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatementAnswer(SmalltalkParser.StatementAnswerContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.StatementAnswerContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatementExpressions(SmalltalkParser.StatementExpressionsContext)
Visit a parse tree produced by the StatementExpressions
labeled alternative in statements().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatementExpressions(SmalltalkParser.StatementExpressionsContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.StatementExpressionsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatementExpressionsAnswer(SmalltalkParser.StatementExpressionsAnswerContext)
Visit a parse tree produced by the StatementExpressionsAnswer
labeled alternative in statements().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatementExpressionsAnswer(SmalltalkParser.StatementExpressionsAnswerContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.StatementExpressionsAnswerContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStFloat(SmalltalkParser.StFloatContext)
Visit a parse tree produced by stFloat().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStFloat(SmalltalkParser.StFloatContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.StFloatContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStInteger(SmalltalkParser.StIntegerContext)
Visit a parse tree produced by stInteger().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStInteger(SmalltalkParser.StIntegerContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.StIntegerContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitString(SmalltalkParser.StringContext)
Visit a parse tree produced by
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitString(SmalltalkParser.StringContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.StringContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSubexpression(SmalltalkParser.SubexpressionContext)
Visit a parse tree produced by subexpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSubexpression(SmalltalkParser.SubexpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.SubexpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSymbol(SmalltalkParser.SymbolContext)
Visit a parse tree produced by symbol().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSymbol(SmalltalkParser.SymbolContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.SymbolContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTemps(SmalltalkParser.TempsContext)
Visit a parse tree produced by temps().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTemps(SmalltalkParser.TempsContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.TempsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUnaryMessage(SmalltalkParser.UnaryMessageContext)
Visit a parse tree produced by unaryMessage().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUnaryMessage(SmalltalkParser.UnaryMessageContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.UnaryMessageContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUnarySelector(SmalltalkParser.UnarySelectorContext)
Visit a parse tree produced by unarySelector().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUnarySelector(SmalltalkParser.UnarySelectorContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.UnarySelectorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUnarySend(SmalltalkParser.UnarySendContext)
Visit a parse tree produced by unarySend().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUnarySend(SmalltalkParser.UnarySendContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.UnarySendContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUnaryTail(SmalltalkParser.UnaryTailContext)
Visit a parse tree produced by unaryTail().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUnaryTail(SmalltalkParser.UnaryTailContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.UnaryTailContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVariable(SmalltalkParser.VariableContext)
Visit a parse tree produced by variable().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVariable(SmalltalkParser.VariableContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.VariableContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitWs(SmalltalkParser.WsContext)
Visit a parse tree produced by ws().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitWs(SmalltalkParser.WsContext context)
Parameters
Type | Name | Description |
---|---|---|
SmalltalkParser.WsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |