Class CBaseVisitor<Result>
This class provides an empty implementation of ICVisitor<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.C
Assembly: C.dll
Syntax
public class CBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, ICVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAbstractDeclarator(CParser.AbstractDeclaratorContext)
Visit a parse tree produced by abstractDeclarator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAbstractDeclarator(CParser.AbstractDeclaratorContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.AbstractDeclaratorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAdditiveExpression(CParser.AdditiveExpressionContext)
Visit a parse tree produced by additiveExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAdditiveExpression(CParser.AdditiveExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.AdditiveExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAlignmentSpecifier(CParser.AlignmentSpecifierContext)
Visit a parse tree produced by alignmentSpecifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAlignmentSpecifier(CParser.AlignmentSpecifierContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.AlignmentSpecifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAndExpression(CParser.AndExpressionContext)
Visit a parse tree produced by andExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAndExpression(CParser.AndExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.AndExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitArgumentExpressionList(CParser.ArgumentExpressionListContext)
Visit a parse tree produced by argumentExpressionList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitArgumentExpressionList(CParser.ArgumentExpressionListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.ArgumentExpressionListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAssignmentExpression(CParser.AssignmentExpressionContext)
Visit a parse tree produced by assignmentExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAssignmentExpression(CParser.AssignmentExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.AssignmentExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAssignmentOperator(CParser.AssignmentOperatorContext)
Visit a parse tree produced by assignmentOperator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAssignmentOperator(CParser.AssignmentOperatorContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.AssignmentOperatorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAtomicTypeSpecifier(CParser.AtomicTypeSpecifierContext)
Visit a parse tree produced by atomicTypeSpecifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAtomicTypeSpecifier(CParser.AtomicTypeSpecifierContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.AtomicTypeSpecifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBlockItem(CParser.BlockItemContext)
Visit a parse tree produced by blockItem().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBlockItem(CParser.BlockItemContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.BlockItemContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBlockItemList(CParser.BlockItemListContext)
Visit a parse tree produced by blockItemList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBlockItemList(CParser.BlockItemListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.BlockItemListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCastExpression(CParser.CastExpressionContext)
Visit a parse tree produced by castExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCastExpression(CParser.CastExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.CastExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCompilationUnit(CParser.CompilationUnitContext)
Visit a parse tree produced by compilationUnit().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCompilationUnit(CParser.CompilationUnitContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.CompilationUnitContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCompoundStatement(CParser.CompoundStatementContext)
Visit a parse tree produced by compoundStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCompoundStatement(CParser.CompoundStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.CompoundStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitConditionalExpression(CParser.ConditionalExpressionContext)
Visit a parse tree produced by conditionalExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitConditionalExpression(CParser.ConditionalExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.ConditionalExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitConstantExpression(CParser.ConstantExpressionContext)
Visit a parse tree produced by constantExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitConstantExpression(CParser.ConstantExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.ConstantExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDeclaration(CParser.DeclarationContext)
Visit a parse tree produced by declaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDeclaration(CParser.DeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.DeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDeclarationList(CParser.DeclarationListContext)
Visit a parse tree produced by declarationList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDeclarationList(CParser.DeclarationListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.DeclarationListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDeclarationSpecifier(CParser.DeclarationSpecifierContext)
Visit a parse tree produced by declarationSpecifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDeclarationSpecifier(CParser.DeclarationSpecifierContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.DeclarationSpecifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDeclarationSpecifiers(CParser.DeclarationSpecifiersContext)
Visit a parse tree produced by declarationSpecifiers().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDeclarationSpecifiers(CParser.DeclarationSpecifiersContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.DeclarationSpecifiersContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDeclarationSpecifiers2(CParser.DeclarationSpecifiers2Context)
Visit a parse tree produced by declarationSpecifiers2().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDeclarationSpecifiers2(CParser.DeclarationSpecifiers2Context context)
Parameters
Type | Name | Description |
---|---|---|
CParser.DeclarationSpecifiers2Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDeclarator(CParser.DeclaratorContext)
Visit a parse tree produced by declarator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDeclarator(CParser.DeclaratorContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.DeclaratorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDesignation(CParser.DesignationContext)
Visit a parse tree produced by designation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDesignation(CParser.DesignationContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.DesignationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDesignator(CParser.DesignatorContext)
Visit a parse tree produced by designator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDesignator(CParser.DesignatorContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.DesignatorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDesignatorList(CParser.DesignatorListContext)
Visit a parse tree produced by designatorList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDesignatorList(CParser.DesignatorListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.DesignatorListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDirectAbstractDeclarator(CParser.DirectAbstractDeclaratorContext)
Visit a parse tree produced by directAbstractDeclarator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDirectAbstractDeclarator(CParser.DirectAbstractDeclaratorContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.DirectAbstractDeclaratorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDirectDeclarator(CParser.DirectDeclaratorContext)
Visit a parse tree produced by directDeclarator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDirectDeclarator(CParser.DirectDeclaratorContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.DirectDeclaratorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEnumerationConstant(CParser.EnumerationConstantContext)
Visit a parse tree produced by enumerationConstant().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEnumerationConstant(CParser.EnumerationConstantContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.EnumerationConstantContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEnumerator(CParser.EnumeratorContext)
Visit a parse tree produced by enumerator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEnumerator(CParser.EnumeratorContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.EnumeratorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEnumeratorList(CParser.EnumeratorListContext)
Visit a parse tree produced by enumeratorList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEnumeratorList(CParser.EnumeratorListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.EnumeratorListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEnumSpecifier(CParser.EnumSpecifierContext)
Visit a parse tree produced by enumSpecifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEnumSpecifier(CParser.EnumSpecifierContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.EnumSpecifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEqualityExpression(CParser.EqualityExpressionContext)
Visit a parse tree produced by equalityExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEqualityExpression(CParser.EqualityExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.EqualityExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExclusiveOrExpression(CParser.ExclusiveOrExpressionContext)
Visit a parse tree produced by exclusiveOrExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExclusiveOrExpression(CParser.ExclusiveOrExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.ExclusiveOrExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression(CParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression(CParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.ExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpressionStatement(CParser.ExpressionStatementContext)
Visit a parse tree produced by expressionStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpressionStatement(CParser.ExpressionStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.ExpressionStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExternalDeclaration(CParser.ExternalDeclarationContext)
Visit a parse tree produced by externalDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExternalDeclaration(CParser.ExternalDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.ExternalDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitForCondition(CParser.ForConditionContext)
Visit a parse tree produced by forCondition().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitForCondition(CParser.ForConditionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.ForConditionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitForDeclaration(CParser.ForDeclarationContext)
Visit a parse tree produced by forDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitForDeclaration(CParser.ForDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.ForDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitForExpression(CParser.ForExpressionContext)
Visit a parse tree produced by forExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitForExpression(CParser.ForExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.ForExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunctionDefinition(CParser.FunctionDefinitionContext)
Visit a parse tree produced by functionDefinition().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunctionDefinition(CParser.FunctionDefinitionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.FunctionDefinitionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunctionSpecifier(CParser.FunctionSpecifierContext)
Visit a parse tree produced by functionSpecifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunctionSpecifier(CParser.FunctionSpecifierContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.FunctionSpecifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGccAttribute(CParser.GccAttributeContext)
Visit a parse tree produced by gccAttribute().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGccAttribute(CParser.GccAttributeContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.GccAttributeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGccAttributeList(CParser.GccAttributeListContext)
Visit a parse tree produced by gccAttributeList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGccAttributeList(CParser.GccAttributeListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.GccAttributeListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGccAttributeSpecifier(CParser.GccAttributeSpecifierContext)
Visit a parse tree produced by gccAttributeSpecifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGccAttributeSpecifier(CParser.GccAttributeSpecifierContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.GccAttributeSpecifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGccDeclaratorExtension(CParser.GccDeclaratorExtensionContext)
Visit a parse tree produced by gccDeclaratorExtension().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGccDeclaratorExtension(CParser.GccDeclaratorExtensionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.GccDeclaratorExtensionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGenericAssociation(CParser.GenericAssociationContext)
Visit a parse tree produced by genericAssociation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGenericAssociation(CParser.GenericAssociationContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.GenericAssociationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGenericAssocList(CParser.GenericAssocListContext)
Visit a parse tree produced by genericAssocList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGenericAssocList(CParser.GenericAssocListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.GenericAssocListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGenericSelection(CParser.GenericSelectionContext)
Visit a parse tree produced by genericSelection().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGenericSelection(CParser.GenericSelectionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.GenericSelectionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdentifierList(CParser.IdentifierListContext)
Visit a parse tree produced by identifierList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdentifierList(CParser.IdentifierListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.IdentifierListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInclusiveOrExpression(CParser.InclusiveOrExpressionContext)
Visit a parse tree produced by inclusiveOrExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInclusiveOrExpression(CParser.InclusiveOrExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.InclusiveOrExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInitDeclarator(CParser.InitDeclaratorContext)
Visit a parse tree produced by initDeclarator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInitDeclarator(CParser.InitDeclaratorContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.InitDeclaratorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInitDeclaratorList(CParser.InitDeclaratorListContext)
Visit a parse tree produced by initDeclaratorList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInitDeclaratorList(CParser.InitDeclaratorListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.InitDeclaratorListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInitializer(CParser.InitializerContext)
Visit a parse tree produced by initializer().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInitializer(CParser.InitializerContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.InitializerContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInitializerList(CParser.InitializerListContext)
Visit a parse tree produced by initializerList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInitializerList(CParser.InitializerListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.InitializerListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIterationStatement(CParser.IterationStatementContext)
Visit a parse tree produced by iterationStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIterationStatement(CParser.IterationStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.IterationStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitJumpStatement(CParser.JumpStatementContext)
Visit a parse tree produced by jumpStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitJumpStatement(CParser.JumpStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.JumpStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLabeledStatement(CParser.LabeledStatementContext)
Visit a parse tree produced by labeledStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLabeledStatement(CParser.LabeledStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.LabeledStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLogicalAndExpression(CParser.LogicalAndExpressionContext)
Visit a parse tree produced by logicalAndExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLogicalAndExpression(CParser.LogicalAndExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.LogicalAndExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLogicalOrExpression(CParser.LogicalOrExpressionContext)
Visit a parse tree produced by logicalOrExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLogicalOrExpression(CParser.LogicalOrExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.LogicalOrExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMultiplicativeExpression(CParser.MultiplicativeExpressionContext)
Visit a parse tree produced by multiplicativeExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMultiplicativeExpression(CParser.MultiplicativeExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.MultiplicativeExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNestedParenthesesBlock(CParser.NestedParenthesesBlockContext)
Visit a parse tree produced by nestedParenthesesBlock().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNestedParenthesesBlock(CParser.NestedParenthesesBlockContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.NestedParenthesesBlockContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitParameterDeclaration(CParser.ParameterDeclarationContext)
Visit a parse tree produced by parameterDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitParameterDeclaration(CParser.ParameterDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.ParameterDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitParameterList(CParser.ParameterListContext)
Visit a parse tree produced by parameterList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitParameterList(CParser.ParameterListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.ParameterListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitParameterTypeList(CParser.ParameterTypeListContext)
Visit a parse tree produced by parameterTypeList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitParameterTypeList(CParser.ParameterTypeListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.ParameterTypeListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPointer(CParser.PointerContext)
Visit a parse tree produced by pointer().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPointer(CParser.PointerContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.PointerContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPostfixExpression(CParser.PostfixExpressionContext)
Visit a parse tree produced by postfixExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPostfixExpression(CParser.PostfixExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.PostfixExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPrimaryExpression(CParser.PrimaryExpressionContext)
Visit a parse tree produced by primaryExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPrimaryExpression(CParser.PrimaryExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.PrimaryExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRelationalExpression(CParser.RelationalExpressionContext)
Visit a parse tree produced by relationalExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRelationalExpression(CParser.RelationalExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.RelationalExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSelectionStatement(CParser.SelectionStatementContext)
Visit a parse tree produced by selectionStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSelectionStatement(CParser.SelectionStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.SelectionStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitShiftExpression(CParser.ShiftExpressionContext)
Visit a parse tree produced by shiftExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitShiftExpression(CParser.ShiftExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.ShiftExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSpecifierQualifierList(CParser.SpecifierQualifierListContext)
Visit a parse tree produced by specifierQualifierList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSpecifierQualifierList(CParser.SpecifierQualifierListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.SpecifierQualifierListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatement(CParser.StatementContext)
Visit a parse tree produced by statement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatement(CParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.StatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStaticAssertDeclaration(CParser.StaticAssertDeclarationContext)
Visit a parse tree produced by staticAssertDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStaticAssertDeclaration(CParser.StaticAssertDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.StaticAssertDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStorageClassSpecifier(CParser.StorageClassSpecifierContext)
Visit a parse tree produced by storageClassSpecifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStorageClassSpecifier(CParser.StorageClassSpecifierContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.StorageClassSpecifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStructDeclaration(CParser.StructDeclarationContext)
Visit a parse tree produced by structDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStructDeclaration(CParser.StructDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.StructDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStructDeclarationList(CParser.StructDeclarationListContext)
Visit a parse tree produced by structDeclarationList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStructDeclarationList(CParser.StructDeclarationListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.StructDeclarationListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStructDeclarator(CParser.StructDeclaratorContext)
Visit a parse tree produced by structDeclarator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStructDeclarator(CParser.StructDeclaratorContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.StructDeclaratorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStructDeclaratorList(CParser.StructDeclaratorListContext)
Visit a parse tree produced by structDeclaratorList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStructDeclaratorList(CParser.StructDeclaratorListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.StructDeclaratorListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStructOrUnion(CParser.StructOrUnionContext)
Visit a parse tree produced by structOrUnion().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStructOrUnion(CParser.StructOrUnionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.StructOrUnionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStructOrUnionSpecifier(CParser.StructOrUnionSpecifierContext)
Visit a parse tree produced by structOrUnionSpecifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStructOrUnionSpecifier(CParser.StructOrUnionSpecifierContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.StructOrUnionSpecifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTranslationUnit(CParser.TranslationUnitContext)
Visit a parse tree produced by translationUnit().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTranslationUnit(CParser.TranslationUnitContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.TranslationUnitContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTypedefName(CParser.TypedefNameContext)
Visit a parse tree produced by typedefName().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTypedefName(CParser.TypedefNameContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.TypedefNameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTypeName(CParser.TypeNameContext)
Visit a parse tree produced by typeName().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTypeName(CParser.TypeNameContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.TypeNameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTypeQualifier(CParser.TypeQualifierContext)
Visit a parse tree produced by typeQualifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTypeQualifier(CParser.TypeQualifierContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.TypeQualifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTypeQualifierList(CParser.TypeQualifierListContext)
Visit a parse tree produced by typeQualifierList().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTypeQualifierList(CParser.TypeQualifierListContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.TypeQualifierListContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTypeSpecifier(CParser.TypeSpecifierContext)
Visit a parse tree produced by typeSpecifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTypeSpecifier(CParser.TypeSpecifierContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.TypeSpecifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUnaryExpression(CParser.UnaryExpressionContext)
Visit a parse tree produced by unaryExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUnaryExpression(CParser.UnaryExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.UnaryExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUnaryOperator(CParser.UnaryOperatorContext)
Visit a parse tree produced by unaryOperator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUnaryOperator(CParser.UnaryOperatorContext context)
Parameters
Type | Name | Description |
---|---|---|
CParser.UnaryOperatorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |