Show / Hide Table of Contents

Class sgfBaseVisitor<Result>

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

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

The return type of the visit operation.

Methods

| Improve this Doc View Source

VisitCollection(sgfParser.CollectionContext)

Visit a parse tree produced by collection().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCollection(sgfParser.CollectionContext context)
Parameters
Type Name Description
sgfParser.CollectionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitGameInfo(sgfParser.GameInfoContext)

Visit a parse tree produced by gameInfo().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGameInfo(sgfParser.GameInfoContext context)
Parameters
Type Name Description
sgfParser.GameInfoContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitGameTree(sgfParser.GameTreeContext)

Visit a parse tree produced by gameTree().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGameTree(sgfParser.GameTreeContext context)
Parameters
Type Name Description
sgfParser.GameTreeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitGo_(sgfParser.Go_Context)

Visit a parse tree produced by go_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGo_(sgfParser.Go_Context context)
Parameters
Type Name Description
sgfParser.Go_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLoa(sgfParser.LoaContext)

Visit a parse tree produced by loa().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLoa(sgfParser.LoaContext context)
Parameters
Type Name Description
sgfParser.LoaContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMarkup(sgfParser.MarkupContext)

Visit a parse tree produced by markup().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMarkup(sgfParser.MarkupContext context)
Parameters
Type Name Description
sgfParser.MarkupContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMisc(sgfParser.MiscContext)

Visit a parse tree produced by misc().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMisc(sgfParser.MiscContext context)
Parameters
Type Name Description
sgfParser.MiscContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMove(sgfParser.MoveContext)

Visit a parse tree produced by move().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMove(sgfParser.MoveContext context)
Parameters
Type Name Description
sgfParser.MoveContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMoveAnnotation(sgfParser.MoveAnnotationContext)

Visit a parse tree produced by moveAnnotation().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMoveAnnotation(sgfParser.MoveAnnotationContext context)
Parameters
Type Name Description
sgfParser.MoveAnnotationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitNode(sgfParser.NodeContext)

Visit a parse tree produced by node().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitNode(sgfParser.NodeContext context)
Parameters
Type Name Description
sgfParser.NodeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitNodeAnnotation(sgfParser.NodeAnnotationContext)

Visit a parse tree produced by nodeAnnotation().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitNodeAnnotation(sgfParser.NodeAnnotationContext context)
Parameters
Type Name Description
sgfParser.NodeAnnotationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPrivateProp(sgfParser.PrivatePropContext)

Visit a parse tree produced by privateProp().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPrivateProp(sgfParser.PrivatePropContext context)
Parameters
Type Name Description
sgfParser.PrivatePropContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProperty_(sgfParser.Property_Context)

Visit a parse tree produced by property_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitProperty_(sgfParser.Property_Context context)
Parameters
Type Name Description
sgfParser.Property_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRoot(sgfParser.RootContext)

Visit a parse tree produced by root().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRoot(sgfParser.RootContext context)
Parameters
Type Name Description
sgfParser.RootContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSequence(sgfParser.SequenceContext)

Visit a parse tree produced by sequence().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSequence(sgfParser.SequenceContext context)
Parameters
Type Name Description
sgfParser.SequenceContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSetup(sgfParser.SetupContext)

Visit a parse tree produced by setup().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSetup(sgfParser.SetupContext context)
Parameters
Type Name Description
sgfParser.SetupContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTiming(sgfParser.TimingContext)

Visit a parse tree produced by timing().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitTiming(sgfParser.TimingContext context)
Parameters
Type Name Description
sgfParser.TimingContext context

The parse tree.

Returns
Type Description
Result

Implements

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