Class terraformBaseVisitor<Result>
This class provides an empty implementation of IterraformVisitor<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.Terraform
Assembly: Terraform.dll
Syntax
public class terraformBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IterraformVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitArgument(terraformParser.ArgumentContext)
Visit a parse tree produced by argument().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitArgument(terraformParser.ArgumentContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.ArgumentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBlock(terraformParser.BlockContext)
Visit a parse tree produced by block().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBlock(terraformParser.BlockContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.BlockContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBlockbody(terraformParser.BlockbodyContext)
Visit a parse tree produced by blockbody().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBlockbody(terraformParser.BlockbodyContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.BlockbodyContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBlocktype(terraformParser.BlocktypeContext)
Visit a parse tree produced by blocktype().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBlocktype(terraformParser.BlocktypeContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.BlocktypeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitData(terraformParser.DataContext)
Visit a parse tree produced by data().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitData(terraformParser.DataContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.DataContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression(terraformParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression(terraformParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.ExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFile_(terraformParser.File_Context)
Visit a parse tree produced by file_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFile_(terraformParser.File_Context context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.File_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFiledecl(terraformParser.FiledeclContext)
Visit a parse tree produced by filedecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFiledecl(terraformParser.FiledeclContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.FiledeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitForloop(terraformParser.ForloopContext)
Visit a parse tree produced by forloop().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitForloop(terraformParser.ForloopContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.ForloopContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunctionarguments(terraformParser.FunctionargumentsContext)
Visit a parse tree produced by functionarguments().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunctionarguments(terraformParser.FunctionargumentsContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.FunctionargumentsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunctioncall(terraformParser.FunctioncallContext)
Visit a parse tree produced by functioncall().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunctioncall(terraformParser.FunctioncallContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.FunctioncallContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunctionname(terraformParser.FunctionnameContext)
Visit a parse tree produced by functionname().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunctionname(terraformParser.FunctionnameContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.FunctionnameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdentifier(terraformParser.IdentifierContext)
Visit a parse tree produced by identifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdentifier(terraformParser.IdentifierContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.IdentifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdentifierchain(terraformParser.IdentifierchainContext)
Visit a parse tree produced by identifierchain().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdentifierchain(terraformParser.IdentifierchainContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.IdentifierchainContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIndex(terraformParser.IndexContext)
Visit a parse tree produced by index().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIndex(terraformParser.IndexContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.IndexContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInline_index(terraformParser.Inline_indexContext)
Visit a parse tree produced by inline_index().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInline_index(terraformParser.Inline_indexContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.Inline_indexContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLabel(terraformParser.LabelContext)
Visit a parse tree produced by label().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLabel(terraformParser.LabelContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.LabelContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitList_(terraformParser.List_Context)
Visit a parse tree produced by list_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitList_(terraformParser.List_Context context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.List_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLocal(terraformParser.LocalContext)
Visit a parse tree produced by local().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLocal(terraformParser.LocalContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.LocalContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMap_(terraformParser.Map_Context)
Visit a parse tree produced by map_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMap_(terraformParser.Map_Context context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.Map_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitModule(terraformParser.ModuleContext)
Visit a parse tree produced by module().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitModule(terraformParser.ModuleContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.ModuleContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitName(terraformParser.NameContext)
Visit a parse tree produced by name().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitName(terraformParser.NameContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.NameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNumber(terraformParser.NumberContext)
Visit a parse tree produced by number().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNumber(terraformParser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.NumberContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOperator_(terraformParser.Operator_Context)
Visit a parse tree produced by operator_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOperator_(terraformParser.Operator_Context context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.Operator_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOutput(terraformParser.OutputContext)
Visit a parse tree produced by output().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOutput(terraformParser.OutputContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.OutputContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProvider(terraformParser.ProviderContext)
Visit a parse tree produced by provider().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProvider(terraformParser.ProviderContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.ProviderContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitResource(terraformParser.ResourceContext)
Visit a parse tree produced by resource().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitResource(terraformParser.ResourceContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.ResourceContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitResourcetype(terraformParser.ResourcetypeContext)
Visit a parse tree produced by resourcetype().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitResourcetype(terraformParser.ResourcetypeContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.ResourcetypeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSection(terraformParser.SectionContext)
Visit a parse tree produced by section().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSection(terraformParser.SectionContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.SectionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSigned_number(terraformParser.Signed_numberContext)
Visit a parse tree produced by signed_number().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSigned_number(terraformParser.Signed_numberContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.Signed_numberContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitString(terraformParser.StringContext)
Visit a parse tree produced by
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitString(terraformParser.StringContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.StringContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTerraform(terraformParser.TerraformContext)
Visit a parse tree produced by terraform().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTerraform(terraformParser.TerraformContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.TerraformContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVal(terraformParser.ValContext)
Visit a parse tree produced by val().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVal(terraformParser.ValContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.ValContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVariable(terraformParser.VariableContext)
Visit a parse tree produced by variable().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVariable(terraformParser.VariableContext context)
Parameters
Type | Name | Description |
---|---|---|
terraformParser.VariableContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |