Class stellarisBaseVisitor<Result>
This class provides an empty implementation of IstellarisVisitor<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.Stellaris
Assembly: Stellaris.dll
Syntax
public class stellarisBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IstellarisVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAccessor(stellarisParser.AccessorContext)
Visit a parse tree produced by accessor().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAccessor(stellarisParser.AccessorContext context)
Parameters
Type | Name | Description |
---|---|---|
stellarisParser.AccessorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAttrib(stellarisParser.AttribContext)
Visit a parse tree produced by attrib().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAttrib(stellarisParser.AttribContext context)
Parameters
Type | Name | Description |
---|---|---|
stellarisParser.AttribContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitContent(stellarisParser.ContentContext)
Visit a parse tree produced by content().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitContent(stellarisParser.ContentContext context)
Parameters
Type | Name | Description |
---|---|---|
stellarisParser.ContentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpr(stellarisParser.ExprContext)
Visit a parse tree produced by expr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpr(stellarisParser.ExprContext context)
Parameters
Type | Name | Description |
---|---|---|
stellarisParser.ExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGroup(stellarisParser.GroupContext)
Visit a parse tree produced by group().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGroup(stellarisParser.GroupContext context)
Parameters
Type | Name | Description |
---|---|---|
stellarisParser.GroupContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitId_(stellarisParser.Id_Context)
Visit a parse tree produced by id_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitId_(stellarisParser.Id_Context context)
Parameters
Type | Name | Description |
---|---|---|
stellarisParser.Id_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitKey(stellarisParser.KeyContext)
Visit a parse tree produced by key().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitKey(stellarisParser.KeyContext context)
Parameters
Type | Name | Description |
---|---|---|
stellarisParser.KeyContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitKeyval(stellarisParser.KeyvalContext)
Visit a parse tree produced by keyval().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitKeyval(stellarisParser.KeyvalContext context)
Parameters
Type | Name | Description |
---|---|---|
stellarisParser.KeyvalContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVal(stellarisParser.ValContext)
Visit a parse tree produced by val().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVal(stellarisParser.ValContext context)
Parameters
Type | Name | Description |
---|---|---|
stellarisParser.ValContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |