C# Class Antlr4.Tool.ErrorManager

Afficher le fichier Open project: sharwell/antlr4cs Class Usage Examples

Méthodes publiques

Свойство Type Description
FORMATS_DIR string
errorTypes ISet
errors int
tool AntlrTool
warnings int

Méthodes publiques

Méthode Description
Emit ( ErrorType etype, ANTLRMessage msg ) : void
ErrorManager ( AntlrTool tool ) : System.Collections.Generic
FatalInternalError ( string error, System.Exception e ) : void
FormatWantsSingleLineMessage ( ) : bool
GetLocationFormat ( ) : Template
GetMessageFormat ( ) : Template
GetMessageTemplate ( ANTLRMessage msg ) : Template
GetNumErrors ( ) : int
GetReportFormat ( ErrorSeverity severity ) : Template
GrammarError ( ErrorType etype, string fileName, Antlr token ) : void
Info ( string msg ) : void
InternalError ( string error ) : void
InternalError ( string error, System.Exception e ) : void
LeftRecursionCycles ( string fileName, IEnumerable cycles ) : void
Panic ( ) : void
Panic ( ErrorType errorType ) : void
Panic ( string msg ) : void
ResetErrorState ( ) : void
SetFormat ( string formatName ) : void
SyntaxError ( ErrorType etype, string fileName, Antlr token, Antlr antlrException ) : void
ToolError ( ErrorType errorType ) : void
ToolError ( ErrorType errorType, System.Exception e ) : void

Méthodes protégées

Méthode Description
VerifyFormat ( ) : bool

Private Methods

Méthode Description
GetLastNonErrorManagerCodeLocation ( System.Exception e ) : string
RawError ( string msg ) : void
RawError ( string msg, System.Exception e ) : void

Method Details

Emit() public méthode

public Emit ( ErrorType etype, ANTLRMessage msg ) : void
etype ErrorType
msg ANTLRMessage
Résultat void

ErrorManager() public méthode

public ErrorManager ( AntlrTool tool ) : System.Collections.Generic
tool AntlrTool
Résultat System.Collections.Generic

FatalInternalError() public static méthode

public static FatalInternalError ( string error, System.Exception e ) : void
error string
e System.Exception
Résultat void

FormatWantsSingleLineMessage() public méthode

public FormatWantsSingleLineMessage ( ) : bool
Résultat bool

GetLocationFormat() public méthode

public GetLocationFormat ( ) : Template
Résultat Template

GetMessageFormat() public méthode

public GetMessageFormat ( ) : Template
Résultat Template

GetMessageTemplate() public méthode

public GetMessageTemplate ( ANTLRMessage msg ) : Template
msg ANTLRMessage
Résultat Template

GetNumErrors() public méthode

public GetNumErrors ( ) : int
Résultat int

GetReportFormat() public méthode

public GetReportFormat ( ErrorSeverity severity ) : Template
severity ErrorSeverity
Résultat Template

GrammarError() public méthode

public GrammarError ( ErrorType etype, string fileName, Antlr token ) : void
etype ErrorType
fileName string
token Antlr
Résultat void

Info() public méthode

public Info ( string msg ) : void
msg string
Résultat void

InternalError() public static méthode

public static InternalError ( string error ) : void
error string
Résultat void

InternalError() public static méthode

public static InternalError ( string error, System.Exception e ) : void
error string
e System.Exception
Résultat void

LeftRecursionCycles() public méthode

public LeftRecursionCycles ( string fileName, IEnumerable cycles ) : void
fileName string
cycles IEnumerable
Résultat void

Panic() public static méthode

public static Panic ( ) : void
Résultat void

Panic() public méthode

public Panic ( ErrorType errorType ) : void
errorType ErrorType
Résultat void

Panic() public static méthode

public static Panic ( string msg ) : void
msg string
Résultat void

ResetErrorState() public méthode

public ResetErrorState ( ) : void
Résultat void

SetFormat() public méthode

public SetFormat ( string formatName ) : void
formatName string
Résultat void

SyntaxError() public méthode

public SyntaxError ( ErrorType etype, string fileName, Antlr token, Antlr antlrException ) : void
etype ErrorType
fileName string
token Antlr
antlrException Antlr
Résultat void

ToolError() public méthode

public ToolError ( ErrorType errorType ) : void
errorType ErrorType
Résultat void

ToolError() public méthode

public ToolError ( ErrorType errorType, System.Exception e ) : void
errorType ErrorType
e System.Exception
Résultat void

VerifyFormat() protected méthode

protected VerifyFormat ( ) : bool
Résultat bool

Property Details

FORMATS_DIR public_oe static_oe property

public static string FORMATS_DIR
Résultat string

errorTypes public_oe property

public ISet errorTypes
Résultat ISet

errors public_oe property

public int errors
Résultat int

tool public_oe property

public AntlrTool tool
Résultat AntlrTool

warnings public_oe property

public int warnings
Résultat int