Show / Hide Table of Contents

Class JSON5BaseVisitor<Result>

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

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

The return type of the visit operation.

Methods

| Improve this Doc View Source

VisitArr(JSON5Parser.ArrContext)

Visit a parse tree produced by arr().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitArr(JSON5Parser.ArrContext context)
Parameters
Type Name Description
JSON5Parser.ArrContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitJson5(JSON5Parser.Json5Context)

Visit a parse tree produced by json5().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitJson5(JSON5Parser.Json5Context context)
Parameters
Type Name Description
JSON5Parser.Json5Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitKey(JSON5Parser.KeyContext)

Visit a parse tree produced by key().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitKey(JSON5Parser.KeyContext context)
Parameters
Type Name Description
JSON5Parser.KeyContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitNumber(JSON5Parser.NumberContext)

Visit a parse tree produced by number().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitObj(JSON5Parser.ObjContext)

Visit a parse tree produced by obj().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitObj(JSON5Parser.ObjContext context)
Parameters
Type Name Description
JSON5Parser.ObjContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPair(JSON5Parser.PairContext)

Visit a parse tree produced by pair().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPair(JSON5Parser.PairContext context)
Parameters
Type Name Description
JSON5Parser.PairContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitValue(JSON5Parser.ValueContext)

Visit a parse tree produced by value().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitValue(JSON5Parser.ValueContext context)
Parameters
Type Name Description
JSON5Parser.ValueContext context

The parse tree.

Returns
Type Description
Result

Implements

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