Class CtoParserBaseVisitor<Result>
This class provides an empty implementation of ICtoParserVisitor<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.Cto
Assembly: Cto.dll
Syntax
public class CtoParserBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, ICtoParserVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAssetDeclaration(CtoParser.AssetDeclarationContext)
Visit a parse tree produced by assetDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAssetDeclaration(CtoParser.AssetDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.AssetDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBooleanField(CtoParser.BooleanFieldContext)
Visit a parse tree produced by booleanField().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBooleanField(CtoParser.BooleanFieldContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.BooleanFieldContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitClassBody(CtoParser.ClassBodyContext)
Visit a parse tree produced by classBody().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitClassBody(CtoParser.ClassBodyContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.ClassBodyContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitClassBodyDeclaration(CtoParser.ClassBodyDeclarationContext)
Visit a parse tree produced by classBodyDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitClassBodyDeclaration(CtoParser.ClassBodyDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.ClassBodyDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitClassModifier(CtoParser.ClassModifierContext)
Visit a parse tree produced by classModifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitClassModifier(CtoParser.ClassModifierContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.ClassModifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitConceptDeclaration(CtoParser.ConceptDeclarationContext)
Visit a parse tree produced by conceptDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitConceptDeclaration(CtoParser.ConceptDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.ConceptDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDateField(CtoParser.DateFieldContext)
Visit a parse tree produced by dateField().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDateField(CtoParser.DateFieldContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.DateFieldContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDecorator(CtoParser.DecoratorContext)
Visit a parse tree produced by decorator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDecorator(CtoParser.DecoratorContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.DecoratorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDefaultBoolean(CtoParser.DefaultBooleanContext)
Visit a parse tree produced by defaultBoolean().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDefaultBoolean(CtoParser.DefaultBooleanContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.DefaultBooleanContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDefaultDate(CtoParser.DefaultDateContext)
Visit a parse tree produced by defaultDate().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDefaultDate(CtoParser.DefaultDateContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.DefaultDateContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDefaultNumber(CtoParser.DefaultNumberContext)
Visit a parse tree produced by defaultNumber().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDefaultNumber(CtoParser.DefaultNumberContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.DefaultNumberContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDefaultString(CtoParser.DefaultStringContext)
Visit a parse tree produced by defaultString().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDefaultString(CtoParser.DefaultStringContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.DefaultStringContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitElementValuePair(CtoParser.ElementValuePairContext)
Visit a parse tree produced by elementValuePair().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitElementValuePair(CtoParser.ElementValuePairContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.ElementValuePairContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEnumConstant(CtoParser.EnumConstantContext)
Visit a parse tree produced by enumConstant().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEnumConstant(CtoParser.EnumConstantContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.EnumConstantContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEnumDeclaration(CtoParser.EnumDeclarationContext)
Visit a parse tree produced by enumDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEnumDeclaration(CtoParser.EnumDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.EnumDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEventDeclaration(CtoParser.EventDeclarationContext)
Visit a parse tree produced by eventDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEventDeclaration(CtoParser.EventDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.EventDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExtendsOrIdentified(CtoParser.ExtendsOrIdentifiedContext)
Visit a parse tree produced by extendsOrIdentified().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExtendsOrIdentified(CtoParser.ExtendsOrIdentifiedContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.ExtendsOrIdentifiedContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFieldDeclaration(CtoParser.FieldDeclarationContext)
Visit a parse tree produced by fieldDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFieldDeclaration(CtoParser.FieldDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.FieldDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFloatLiteral(CtoParser.FloatLiteralContext)
Visit a parse tree produced by floatLiteral().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFloatLiteral(CtoParser.FloatLiteralContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.FloatLiteralContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdentified(CtoParser.IdentifiedContext)
Visit a parse tree produced by identified().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdentified(CtoParser.IdentifiedContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.IdentifiedContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdentifier(CtoParser.IdentifierContext)
Visit a parse tree produced by identifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdentifier(CtoParser.IdentifierContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.IdentifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdentifierField(CtoParser.IdentifierFieldContext)
Visit a parse tree produced by identifierField().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdentifierField(CtoParser.IdentifierFieldContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.IdentifierFieldContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitImportDeclaration(CtoParser.ImportDeclarationContext)
Visit a parse tree produced by importDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitImportDeclaration(CtoParser.ImportDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.ImportDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIntegerLiteral(CtoParser.IntegerLiteralContext)
Visit a parse tree produced by integerLiteral().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIntegerLiteral(CtoParser.IntegerLiteralContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.IntegerLiteralContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLiteral(CtoParser.LiteralContext)
Visit a parse tree produced by literal().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLiteral(CtoParser.LiteralContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.LiteralContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitModelUnit(CtoParser.ModelUnitContext)
Visit a parse tree produced by modelUnit().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitModelUnit(CtoParser.ModelUnitContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.ModelUnitContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNamespaceDeclaration(CtoParser.NamespaceDeclarationContext)
Visit a parse tree produced by namespaceDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNamespaceDeclaration(CtoParser.NamespaceDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.NamespaceDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNumberLiteral(CtoParser.NumberLiteralContext)
Visit a parse tree produced by numberLiteral().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNumberLiteral(CtoParser.NumberLiteralContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.NumberLiteralContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNumericField(CtoParser.NumericFieldContext)
Visit a parse tree produced by numericField().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNumericField(CtoParser.NumericFieldContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.NumericFieldContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNumericPrimitive(CtoParser.NumericPrimitiveContext)
Visit a parse tree produced by numericPrimitive().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNumericPrimitive(CtoParser.NumericPrimitiveContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.NumericPrimitiveContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitParticipantDeclaration(CtoParser.ParticipantDeclarationContext)
Visit a parse tree produced by participantDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitParticipantDeclaration(CtoParser.ParticipantDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.ParticipantDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitQualifiedName(CtoParser.QualifiedNameContext)
Visit a parse tree produced by qualifiedName().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitQualifiedName(CtoParser.QualifiedNameContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.QualifiedNameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRangeDeclaration(CtoParser.RangeDeclarationContext)
Visit a parse tree produced by rangeDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRangeDeclaration(CtoParser.RangeDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.RangeDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRangeValidation(CtoParser.RangeValidationContext)
Visit a parse tree produced by rangeValidation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRangeValidation(CtoParser.RangeValidationContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.RangeValidationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitReference(CtoParser.ReferenceContext)
Visit a parse tree produced by reference().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitReference(CtoParser.ReferenceContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.ReferenceContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRegexDeclaration(CtoParser.RegexDeclarationContext)
Visit a parse tree produced by regexDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRegexDeclaration(CtoParser.RegexDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.RegexDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSquare(CtoParser.SquareContext)
Visit a parse tree produced by square().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSquare(CtoParser.SquareContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.SquareContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStringField(CtoParser.StringFieldContext)
Visit a parse tree produced by stringField().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStringField(CtoParser.StringFieldContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.StringFieldContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStringLiteral(CtoParser.StringLiteralContext)
Visit a parse tree produced by stringLiteral().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStringLiteral(CtoParser.StringLiteralContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.StringLiteralContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTransactionDeclaration(CtoParser.TransactionDeclarationContext)
Visit a parse tree produced by transactionDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTransactionDeclaration(CtoParser.TransactionDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.TransactionDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTypeDeclaration(CtoParser.TypeDeclarationContext)
Visit a parse tree produced by typeDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTypeDeclaration(CtoParser.TypeDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
CtoParser.TypeDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |