Class CapnProtoBaseVisitor<Result>
This class provides an empty implementation of ICapnProtoVisitor<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.Capnproto
Assembly: Capnproto.dll
Syntax
public class CapnProtoBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, ICapnProtoVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAnnotation_def(CapnProtoParser.Annotation_defContext)
Visit a parse tree produced by annotation_def().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAnnotation_def(CapnProtoParser.Annotation_defContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Annotation_defContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAnnotation_parameters(CapnProtoParser.Annotation_parametersContext)
Visit a parse tree produced by annotation_parameters().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAnnotation_parameters(CapnProtoParser.Annotation_parametersContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Annotation_parametersContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAnnotation_reference(CapnProtoParser.Annotation_referenceContext)
Visit a parse tree produced by annotation_reference().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAnnotation_reference(CapnProtoParser.Annotation_referenceContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Annotation_referenceContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitConst_def(CapnProtoParser.Const_defContext)
Visit a parse tree produced by const_def().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitConst_def(CapnProtoParser.Const_defContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Const_defContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitConst_value(CapnProtoParser.Const_valueContext)
Visit a parse tree produced by const_value().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitConst_value(CapnProtoParser.Const_valueContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Const_valueContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDocument(CapnProtoParser.DocumentContext)
Visit a parse tree produced by document().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDocument(CapnProtoParser.DocumentContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.DocumentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDocument_content(CapnProtoParser.Document_contentContext)
Visit a parse tree produced by document_content().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDocument_content(CapnProtoParser.Document_contentContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Document_contentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEnum_content(CapnProtoParser.Enum_contentContext)
Visit a parse tree produced by enum_content().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEnum_content(CapnProtoParser.Enum_contentContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Enum_contentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEnum_def(CapnProtoParser.Enum_defContext)
Visit a parse tree produced by enum_def().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEnum_def(CapnProtoParser.Enum_defContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Enum_defContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitField_def(CapnProtoParser.Field_defContext)
Visit a parse tree produced by field_def().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitField_def(CapnProtoParser.Field_defContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Field_defContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFile_identifier(CapnProtoParser.File_identifierContext)
Visit a parse tree produced by file_identifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFile_identifier(CapnProtoParser.File_identifierContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.File_identifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunction_def(CapnProtoParser.Function_defContext)
Visit a parse tree produced by function_def().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunction_def(CapnProtoParser.Function_defContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Function_defContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunction_parameters(CapnProtoParser.Function_parametersContext)
Visit a parse tree produced by function_parameters().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunction_parameters(CapnProtoParser.Function_parametersContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Function_parametersContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGeneric_type_parameters(CapnProtoParser.Generic_type_parametersContext)
Visit a parse tree produced by generic_type_parameters().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGeneric_type_parameters(CapnProtoParser.Generic_type_parametersContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Generic_type_parametersContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGroup_content(CapnProtoParser.Group_contentContext)
Visit a parse tree produced by group_content().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGroup_content(CapnProtoParser.Group_contentContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Group_contentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGroup_def(CapnProtoParser.Group_defContext)
Visit a parse tree produced by group_def().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGroup_def(CapnProtoParser.Group_defContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Group_defContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInner_type(CapnProtoParser.Inner_typeContext)
Visit a parse tree produced by inner_type().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInner_type(CapnProtoParser.Inner_typeContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Inner_typeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInner_using(CapnProtoParser.Inner_usingContext)
Visit a parse tree produced by inner_using().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInner_using(CapnProtoParser.Inner_usingContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Inner_usingContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInterface_content(CapnProtoParser.Interface_contentContext)
Visit a parse tree produced by interface_content().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInterface_content(CapnProtoParser.Interface_contentContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Interface_contentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInterface_def(CapnProtoParser.Interface_defContext)
Visit a parse tree produced by interface_def().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInterface_def(CapnProtoParser.Interface_defContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Interface_defContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLiteral_bytes(CapnProtoParser.Literal_bytesContext)
Visit a parse tree produced by literal_bytes().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLiteral_bytes(CapnProtoParser.Literal_bytesContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Literal_bytesContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLiteral_list(CapnProtoParser.Literal_listContext)
Visit a parse tree produced by literal_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLiteral_list(CapnProtoParser.Literal_listContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Literal_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLiteral_union(CapnProtoParser.Literal_unionContext)
Visit a parse tree produced by literal_union().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLiteral_union(CapnProtoParser.Literal_unionContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Literal_unionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNamed_union_def(CapnProtoParser.Named_union_defContext)
Visit a parse tree produced by named_union_def().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNamed_union_def(CapnProtoParser.Named_union_defContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Named_union_defContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNamespace_(CapnProtoParser.Namespace_Context)
Visit a parse tree produced by namespace_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNamespace_(CapnProtoParser.Namespace_Context context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Namespace_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStruct_content(CapnProtoParser.Struct_contentContext)
Visit a parse tree produced by struct_content().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStruct_content(CapnProtoParser.Struct_contentContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Struct_contentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStruct_def(CapnProtoParser.Struct_defContext)
Visit a parse tree produced by struct_def().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStruct_def(CapnProtoParser.Struct_defContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Struct_defContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitType_(CapnProtoParser.Type_Context)
Visit a parse tree produced by type_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitType_(CapnProtoParser.Type_Context context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Type_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUnion_content(CapnProtoParser.Union_contentContext)
Visit a parse tree produced by union_content().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUnion_content(CapnProtoParser.Union_contentContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Union_contentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUnion_mapping(CapnProtoParser.Union_mappingContext)
Visit a parse tree produced by union_mapping().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUnion_mapping(CapnProtoParser.Union_mappingContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Union_mappingContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUnnamed_union_def(CapnProtoParser.Unnamed_union_defContext)
Visit a parse tree produced by unnamed_union_def().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUnnamed_union_def(CapnProtoParser.Unnamed_union_defContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Unnamed_union_defContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUsing_import(CapnProtoParser.Using_importContext)
Visit a parse tree produced by using_import().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUsing_import(CapnProtoParser.Using_importContext context)
Parameters
Type | Name | Description |
---|---|---|
CapnProtoParser.Using_importContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |