Show / Hide Table of Contents

Class Protobuf3BaseVisitor<Result>

This class provides an empty implementation of IProtobuf3Visitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.

Inheritance
System.Object
Protobuf3BaseVisitor<Result>
Implements
IProtobuf3Visitor<Result>
IParseTreeVisitor<Result>
Namespace: GCore.Antlr.Grammers.Protobuf3
Assembly: Protobuf3.dll
Syntax
public class Protobuf3BaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IProtobuf3Visitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name Description
Result

The return type of the visit operation.

Methods

| Improve this Doc View Source

VisitBlockLit(Protobuf3Parser.BlockLitContext)

Visit a parse tree produced by blockLit().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitBlockLit(Protobuf3Parser.BlockLitContext context)
Parameters
Type Name Description
Protobuf3Parser.BlockLitContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitBoolLit(Protobuf3Parser.BoolLitContext)

Visit a parse tree produced by boolLit().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitBoolLit(Protobuf3Parser.BoolLitContext context)
Parameters
Type Name Description
Protobuf3Parser.BoolLitContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitConstant(Protobuf3Parser.ConstantContext)

Visit a parse tree produced by constant().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitConstant(Protobuf3Parser.ConstantContext context)
Parameters
Type Name Description
Protobuf3Parser.ConstantContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitEmptyStatement_(Protobuf3Parser.EmptyStatement_Context)

Visit a parse tree produced by emptyStatement_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitEmptyStatement_(Protobuf3Parser.EmptyStatement_Context context)
Parameters
Type Name Description
Protobuf3Parser.EmptyStatement_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitEnumBody(Protobuf3Parser.EnumBodyContext)

Visit a parse tree produced by enumBody().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitEnumBody(Protobuf3Parser.EnumBodyContext context)
Parameters
Type Name Description
Protobuf3Parser.EnumBodyContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitEnumDef(Protobuf3Parser.EnumDefContext)

Visit a parse tree produced by enumDef().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitEnumDef(Protobuf3Parser.EnumDefContext context)
Parameters
Type Name Description
Protobuf3Parser.EnumDefContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitEnumElement(Protobuf3Parser.EnumElementContext)

Visit a parse tree produced by enumElement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitEnumElement(Protobuf3Parser.EnumElementContext context)
Parameters
Type Name Description
Protobuf3Parser.EnumElementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitEnumField(Protobuf3Parser.EnumFieldContext)

Visit a parse tree produced by enumField().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitEnumField(Protobuf3Parser.EnumFieldContext context)
Parameters
Type Name Description
Protobuf3Parser.EnumFieldContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitEnumName(Protobuf3Parser.EnumNameContext)

Visit a parse tree produced by enumName().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitEnumName(Protobuf3Parser.EnumNameContext context)
Parameters
Type Name Description
Protobuf3Parser.EnumNameContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitEnumType(Protobuf3Parser.EnumTypeContext)

Visit a parse tree produced by enumType().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitEnumType(Protobuf3Parser.EnumTypeContext context)
Parameters
Type Name Description
Protobuf3Parser.EnumTypeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitEnumValueOption(Protobuf3Parser.EnumValueOptionContext)

Visit a parse tree produced by enumValueOption().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitEnumValueOption(Protobuf3Parser.EnumValueOptionContext context)
Parameters
Type Name Description
Protobuf3Parser.EnumValueOptionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitEnumValueOptions(Protobuf3Parser.EnumValueOptionsContext)

Visit a parse tree produced by enumValueOptions().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitEnumValueOptions(Protobuf3Parser.EnumValueOptionsContext context)
Parameters
Type Name Description
Protobuf3Parser.EnumValueOptionsContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitField(Protobuf3Parser.FieldContext)

Visit a parse tree produced by field().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitField(Protobuf3Parser.FieldContext context)
Parameters
Type Name Description
Protobuf3Parser.FieldContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFieldName(Protobuf3Parser.FieldNameContext)

Visit a parse tree produced by fieldName().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFieldName(Protobuf3Parser.FieldNameContext context)
Parameters
Type Name Description
Protobuf3Parser.FieldNameContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFieldNumber(Protobuf3Parser.FieldNumberContext)

Visit a parse tree produced by fieldNumber().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFieldNumber(Protobuf3Parser.FieldNumberContext context)
Parameters
Type Name Description
Protobuf3Parser.FieldNumberContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFieldOption(Protobuf3Parser.FieldOptionContext)

Visit a parse tree produced by fieldOption().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFieldOption(Protobuf3Parser.FieldOptionContext context)
Parameters
Type Name Description
Protobuf3Parser.FieldOptionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFieldOptions(Protobuf3Parser.FieldOptionsContext)

Visit a parse tree produced by fieldOptions().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFieldOptions(Protobuf3Parser.FieldOptionsContext context)
Parameters
Type Name Description
Protobuf3Parser.FieldOptionsContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFloatLit(Protobuf3Parser.FloatLitContext)

Visit a parse tree produced by floatLit().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFloatLit(Protobuf3Parser.FloatLitContext context)
Parameters
Type Name Description
Protobuf3Parser.FloatLitContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFullIdent(Protobuf3Parser.FullIdentContext)

Visit a parse tree produced by fullIdent().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFullIdent(Protobuf3Parser.FullIdentContext context)
Parameters
Type Name Description
Protobuf3Parser.FullIdentContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIdent(Protobuf3Parser.IdentContext)

Visit a parse tree produced by ident().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIdent(Protobuf3Parser.IdentContext context)
Parameters
Type Name Description
Protobuf3Parser.IdentContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitImportStatement(Protobuf3Parser.ImportStatementContext)

Visit a parse tree produced by importStatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitImportStatement(Protobuf3Parser.ImportStatementContext context)
Parameters
Type Name Description
Protobuf3Parser.ImportStatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIntLit(Protobuf3Parser.IntLitContext)

Visit a parse tree produced by intLit().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIntLit(Protobuf3Parser.IntLitContext context)
Parameters
Type Name Description
Protobuf3Parser.IntLitContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitKeyType(Protobuf3Parser.KeyTypeContext)

Visit a parse tree produced by keyType().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitKeyType(Protobuf3Parser.KeyTypeContext context)
Parameters
Type Name Description
Protobuf3Parser.KeyTypeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitKeywords(Protobuf3Parser.KeywordsContext)

Visit a parse tree produced by keywords().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitKeywords(Protobuf3Parser.KeywordsContext context)
Parameters
Type Name Description
Protobuf3Parser.KeywordsContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMapField(Protobuf3Parser.MapFieldContext)

Visit a parse tree produced by mapField().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMapField(Protobuf3Parser.MapFieldContext context)
Parameters
Type Name Description
Protobuf3Parser.MapFieldContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMapName(Protobuf3Parser.MapNameContext)

Visit a parse tree produced by mapName().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMapName(Protobuf3Parser.MapNameContext context)
Parameters
Type Name Description
Protobuf3Parser.MapNameContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMessageBody(Protobuf3Parser.MessageBodyContext)

Visit a parse tree produced by messageBody().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMessageBody(Protobuf3Parser.MessageBodyContext context)
Parameters
Type Name Description
Protobuf3Parser.MessageBodyContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMessageDef(Protobuf3Parser.MessageDefContext)

Visit a parse tree produced by messageDef().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMessageDef(Protobuf3Parser.MessageDefContext context)
Parameters
Type Name Description
Protobuf3Parser.MessageDefContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMessageElement(Protobuf3Parser.MessageElementContext)

Visit a parse tree produced by messageElement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMessageElement(Protobuf3Parser.MessageElementContext context)
Parameters
Type Name Description
Protobuf3Parser.MessageElementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMessageName(Protobuf3Parser.MessageNameContext)

Visit a parse tree produced by messageName().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMessageName(Protobuf3Parser.MessageNameContext context)
Parameters
Type Name Description
Protobuf3Parser.MessageNameContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMessageType(Protobuf3Parser.MessageTypeContext)

Visit a parse tree produced by messageType().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMessageType(Protobuf3Parser.MessageTypeContext context)
Parameters
Type Name Description
Protobuf3Parser.MessageTypeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOneof(Protobuf3Parser.OneofContext)

Visit a parse tree produced by oneof().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOneof(Protobuf3Parser.OneofContext context)
Parameters
Type Name Description
Protobuf3Parser.OneofContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOneofField(Protobuf3Parser.OneofFieldContext)

Visit a parse tree produced by oneofField().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOneofField(Protobuf3Parser.OneofFieldContext context)
Parameters
Type Name Description
Protobuf3Parser.OneofFieldContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOneofName(Protobuf3Parser.OneofNameContext)

Visit a parse tree produced by oneofName().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOneofName(Protobuf3Parser.OneofNameContext context)
Parameters
Type Name Description
Protobuf3Parser.OneofNameContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOptionName(Protobuf3Parser.OptionNameContext)

Visit a parse tree produced by optionName().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOptionName(Protobuf3Parser.OptionNameContext context)
Parameters
Type Name Description
Protobuf3Parser.OptionNameContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOptionStatement(Protobuf3Parser.OptionStatementContext)

Visit a parse tree produced by optionStatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOptionStatement(Protobuf3Parser.OptionStatementContext context)
Parameters
Type Name Description
Protobuf3Parser.OptionStatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPackageStatement(Protobuf3Parser.PackageStatementContext)

Visit a parse tree produced by packageStatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPackageStatement(Protobuf3Parser.PackageStatementContext context)
Parameters
Type Name Description
Protobuf3Parser.PackageStatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProto(Protobuf3Parser.ProtoContext)

Visit a parse tree produced by proto().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitProto(Protobuf3Parser.ProtoContext context)
Parameters
Type Name Description
Protobuf3Parser.ProtoContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRange_(Protobuf3Parser.Range_Context)

Visit a parse tree produced by range_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRange_(Protobuf3Parser.Range_Context context)
Parameters
Type Name Description
Protobuf3Parser.Range_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRanges(Protobuf3Parser.RangesContext)

Visit a parse tree produced by ranges().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRanges(Protobuf3Parser.RangesContext context)
Parameters
Type Name Description
Protobuf3Parser.RangesContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitReserved(Protobuf3Parser.ReservedContext)

Visit a parse tree produced by reserved().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitReserved(Protobuf3Parser.ReservedContext context)
Parameters
Type Name Description
Protobuf3Parser.ReservedContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitReservedFieldNames(Protobuf3Parser.ReservedFieldNamesContext)

Visit a parse tree produced by reservedFieldNames().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitReservedFieldNames(Protobuf3Parser.ReservedFieldNamesContext context)
Parameters
Type Name Description
Protobuf3Parser.ReservedFieldNamesContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRpc(Protobuf3Parser.RpcContext)

Visit a parse tree produced by rpc().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRpc(Protobuf3Parser.RpcContext context)
Parameters
Type Name Description
Protobuf3Parser.RpcContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRpcName(Protobuf3Parser.RpcNameContext)

Visit a parse tree produced by rpcName().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRpcName(Protobuf3Parser.RpcNameContext context)
Parameters
Type Name Description
Protobuf3Parser.RpcNameContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitServiceDef(Protobuf3Parser.ServiceDefContext)

Visit a parse tree produced by serviceDef().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitServiceDef(Protobuf3Parser.ServiceDefContext context)
Parameters
Type Name Description
Protobuf3Parser.ServiceDefContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitServiceElement(Protobuf3Parser.ServiceElementContext)

Visit a parse tree produced by serviceElement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitServiceElement(Protobuf3Parser.ServiceElementContext context)
Parameters
Type Name Description
Protobuf3Parser.ServiceElementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitServiceName(Protobuf3Parser.ServiceNameContext)

Visit a parse tree produced by serviceName().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitServiceName(Protobuf3Parser.ServiceNameContext context)
Parameters
Type Name Description
Protobuf3Parser.ServiceNameContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitStrLit(Protobuf3Parser.StrLitContext)

Visit a parse tree produced by strLit().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitStrLit(Protobuf3Parser.StrLitContext context)
Parameters
Type Name Description
Protobuf3Parser.StrLitContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSyntax(Protobuf3Parser.SyntaxContext)

Visit a parse tree produced by syntax().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSyntax(Protobuf3Parser.SyntaxContext context)
Parameters
Type Name Description
Protobuf3Parser.SyntaxContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTopLevelDef(Protobuf3Parser.TopLevelDefContext)

Visit a parse tree produced by topLevelDef().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitTopLevelDef(Protobuf3Parser.TopLevelDefContext context)
Parameters
Type Name Description
Protobuf3Parser.TopLevelDefContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitType_(Protobuf3Parser.Type_Context)

Visit a parse tree produced by type_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitType_(Protobuf3Parser.Type_Context context)
Parameters
Type Name Description
Protobuf3Parser.Type_Context context

The parse tree.

Returns
Type Description
Result

Implements

IProtobuf3Visitor<Result>
IParseTreeVisitor<>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX