Show / Hide Table of Contents

Class LuaBaseVisitor<Result>

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

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

The return type of the visit operation.

Methods

| Improve this Doc View Source

VisitArgs(LuaParser.ArgsContext)

Visit a parse tree produced by args().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitArgs(LuaParser.ArgsContext context)
Parameters
Type Name Description
LuaParser.ArgsContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitAttnamelist(LuaParser.AttnamelistContext)

Visit a parse tree produced by attnamelist().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAttnamelist(LuaParser.AttnamelistContext context)
Parameters
Type Name Description
LuaParser.AttnamelistContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitAttrib(LuaParser.AttribContext)

Visit a parse tree produced by attrib().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAttrib(LuaParser.AttribContext context)
Parameters
Type Name Description
LuaParser.AttribContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitBlock(LuaParser.BlockContext)

Visit a parse tree produced by block().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitBlock(LuaParser.BlockContext context)
Parameters
Type Name Description
LuaParser.BlockContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitChunk(LuaParser.ChunkContext)

Visit a parse tree produced by chunk().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitChunk(LuaParser.ChunkContext context)
Parameters
Type Name Description
LuaParser.ChunkContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExp(LuaParser.ExpContext)

Visit a parse tree produced by exp().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExp(LuaParser.ExpContext context)
Parameters
Type Name Description
LuaParser.ExpContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExplist(LuaParser.ExplistContext)

Visit a parse tree produced by explist().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExplist(LuaParser.ExplistContext context)
Parameters
Type Name Description
LuaParser.ExplistContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitField(LuaParser.FieldContext)

Visit a parse tree produced by field().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFieldlist(LuaParser.FieldlistContext)

Visit a parse tree produced by fieldlist().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFieldlist(LuaParser.FieldlistContext context)
Parameters
Type Name Description
LuaParser.FieldlistContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFieldsep(LuaParser.FieldsepContext)

Visit a parse tree produced by fieldsep().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFieldsep(LuaParser.FieldsepContext context)
Parameters
Type Name Description
LuaParser.FieldsepContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFuncbody(LuaParser.FuncbodyContext)

Visit a parse tree produced by funcbody().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFuncbody(LuaParser.FuncbodyContext context)
Parameters
Type Name Description
LuaParser.FuncbodyContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFuncname(LuaParser.FuncnameContext)

Visit a parse tree produced by funcname().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFuncname(LuaParser.FuncnameContext context)
Parameters
Type Name Description
LuaParser.FuncnameContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFunctioncall(LuaParser.FunctioncallContext)

Visit a parse tree produced by functioncall().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFunctioncall(LuaParser.FunctioncallContext context)
Parameters
Type Name Description
LuaParser.FunctioncallContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFunctiondef(LuaParser.FunctiondefContext)

Visit a parse tree produced by functiondef().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFunctiondef(LuaParser.FunctiondefContext context)
Parameters
Type Name Description
LuaParser.FunctiondefContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLabel(LuaParser.LabelContext)

Visit a parse tree produced by label().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLabel(LuaParser.LabelContext context)
Parameters
Type Name Description
LuaParser.LabelContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitNameAndArgs(LuaParser.NameAndArgsContext)

Visit a parse tree produced by nameAndArgs().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitNameAndArgs(LuaParser.NameAndArgsContext context)
Parameters
Type Name Description
LuaParser.NameAndArgsContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitNamelist(LuaParser.NamelistContext)

Visit a parse tree produced by namelist().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitNamelist(LuaParser.NamelistContext context)
Parameters
Type Name Description
LuaParser.NamelistContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitNumber(LuaParser.NumberContext)

Visit a parse tree produced by number().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitNumber(LuaParser.NumberContext context)
Parameters
Type Name Description
LuaParser.NumberContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOperatorAddSub(LuaParser.OperatorAddSubContext)

Visit a parse tree produced by operatorAddSub().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOperatorAddSub(LuaParser.OperatorAddSubContext context)
Parameters
Type Name Description
LuaParser.OperatorAddSubContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOperatorAnd(LuaParser.OperatorAndContext)

Visit a parse tree produced by operatorAnd().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOperatorAnd(LuaParser.OperatorAndContext context)
Parameters
Type Name Description
LuaParser.OperatorAndContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOperatorBitwise(LuaParser.OperatorBitwiseContext)

Visit a parse tree produced by operatorBitwise().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOperatorBitwise(LuaParser.OperatorBitwiseContext context)
Parameters
Type Name Description
LuaParser.OperatorBitwiseContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOperatorComparison(LuaParser.OperatorComparisonContext)

Visit a parse tree produced by operatorComparison().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOperatorComparison(LuaParser.OperatorComparisonContext context)
Parameters
Type Name Description
LuaParser.OperatorComparisonContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOperatorMulDivMod(LuaParser.OperatorMulDivModContext)

Visit a parse tree produced by operatorMulDivMod().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOperatorMulDivMod(LuaParser.OperatorMulDivModContext context)
Parameters
Type Name Description
LuaParser.OperatorMulDivModContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOperatorOr(LuaParser.OperatorOrContext)

Visit a parse tree produced by operatorOr().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOperatorOr(LuaParser.OperatorOrContext context)
Parameters
Type Name Description
LuaParser.OperatorOrContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOperatorPower(LuaParser.OperatorPowerContext)

Visit a parse tree produced by operatorPower().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOperatorPower(LuaParser.OperatorPowerContext context)
Parameters
Type Name Description
LuaParser.OperatorPowerContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOperatorStrcat(LuaParser.OperatorStrcatContext)

Visit a parse tree produced by operatorStrcat().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOperatorStrcat(LuaParser.OperatorStrcatContext context)
Parameters
Type Name Description
LuaParser.OperatorStrcatContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOperatorUnary(LuaParser.OperatorUnaryContext)

Visit a parse tree produced by operatorUnary().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOperatorUnary(LuaParser.OperatorUnaryContext context)
Parameters
Type Name Description
LuaParser.OperatorUnaryContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitParlist(LuaParser.ParlistContext)

Visit a parse tree produced by parlist().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitParlist(LuaParser.ParlistContext context)
Parameters
Type Name Description
LuaParser.ParlistContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPrefixexp(LuaParser.PrefixexpContext)

Visit a parse tree produced by prefixexp().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPrefixexp(LuaParser.PrefixexpContext context)
Parameters
Type Name Description
LuaParser.PrefixexpContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRetstat(LuaParser.RetstatContext)

Visit a parse tree produced by retstat().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRetstat(LuaParser.RetstatContext context)
Parameters
Type Name Description
LuaParser.RetstatContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitStat(LuaParser.StatContext)

Visit a parse tree produced by stat().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitStat(LuaParser.StatContext context)
Parameters
Type Name Description
LuaParser.StatContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitString(LuaParser.StringContext)

Visit a parse tree produced by .

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitString(LuaParser.StringContext context)
Parameters
Type Name Description
LuaParser.StringContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTableconstructor(LuaParser.TableconstructorContext)

Visit a parse tree produced by tableconstructor().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitTableconstructor(LuaParser.TableconstructorContext context)
Parameters
Type Name Description
LuaParser.TableconstructorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitVar_(LuaParser.Var_Context)

Visit a parse tree produced by var_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitVar_(LuaParser.Var_Context context)
Parameters
Type Name Description
LuaParser.Var_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitVarlist(LuaParser.VarlistContext)

Visit a parse tree produced by varlist().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitVarlist(LuaParser.VarlistContext context)
Parameters
Type Name Description
LuaParser.VarlistContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitVarOrExp(LuaParser.VarOrExpContext)

Visit a parse tree produced by varOrExp().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitVarOrExp(LuaParser.VarOrExpContext context)
Parameters
Type Name Description
LuaParser.VarOrExpContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitVarSuffix(LuaParser.VarSuffixContext)

Visit a parse tree produced by varSuffix().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitVarSuffix(LuaParser.VarSuffixContext context)
Parameters
Type Name Description
LuaParser.VarSuffixContext context

The parse tree.

Returns
Type Description
Result

Implements

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