C# Class Antlr4.Tool.ErrorManager

ファイルを表示 Open project: sharwell/antlr4cs Class Usage Examples

Public Properties

Property Type Description
FORMATS_DIR string
errorTypes ISet
errors int
tool AntlrTool
warnings int

Public Methods

Method 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

Protected Methods

Method Description
VerifyFormat ( ) : bool

Private Methods

Method Description
GetLastNonErrorManagerCodeLocation ( System.Exception e ) : string
RawError ( string msg ) : void
RawError ( string msg, System.Exception e ) : void

Method Details

Emit() public method

public Emit ( ErrorType etype, ANTLRMessage msg ) : void
etype ErrorType
msg ANTLRMessage
return void

ErrorManager() public method

public ErrorManager ( AntlrTool tool ) : System.Collections.Generic
tool AntlrTool
return System.Collections.Generic

FatalInternalError() public static method

public static FatalInternalError ( string error, System.Exception e ) : void
error string
e System.Exception
return void

FormatWantsSingleLineMessage() public method

public FormatWantsSingleLineMessage ( ) : bool
return bool

GetLocationFormat() public method

public GetLocationFormat ( ) : Template
return Template

GetMessageFormat() public method

public GetMessageFormat ( ) : Template
return Template

GetMessageTemplate() public method

public GetMessageTemplate ( ANTLRMessage msg ) : Template
msg ANTLRMessage
return Template

GetNumErrors() public method

public GetNumErrors ( ) : int
return int

GetReportFormat() public method

public GetReportFormat ( ErrorSeverity severity ) : Template
severity ErrorSeverity
return Template

GrammarError() public method

public GrammarError ( ErrorType etype, string fileName, Antlr token ) : void
etype ErrorType
fileName string
token Antlr
return void

Info() public method

public Info ( string msg ) : void
msg string
return void

InternalError() public static method

public static InternalError ( string error ) : void
error string
return void

InternalError() public static method

public static InternalError ( string error, System.Exception e ) : void
error string
e System.Exception
return void

LeftRecursionCycles() public method

public LeftRecursionCycles ( string fileName, IEnumerable cycles ) : void
fileName string
cycles IEnumerable
return void

Panic() public static method

public static Panic ( ) : void
return void

Panic() public method

public Panic ( ErrorType errorType ) : void
errorType ErrorType
return void

Panic() public static method

public static Panic ( string msg ) : void
msg string
return void

ResetErrorState() public method

public ResetErrorState ( ) : void
return void

SetFormat() public method

public SetFormat ( string formatName ) : void
formatName string
return void

SyntaxError() public method

public SyntaxError ( ErrorType etype, string fileName, Antlr token, Antlr antlrException ) : void
etype ErrorType
fileName string
token Antlr
antlrException Antlr
return void

ToolError() public method

public ToolError ( ErrorType errorType ) : void
errorType ErrorType
return void

ToolError() public method

public ToolError ( ErrorType errorType, System.Exception e ) : void
errorType ErrorType
e System.Exception
return void

VerifyFormat() protected method

protected VerifyFormat ( ) : bool
return bool

Property Details

FORMATS_DIR public_oe static_oe property

public static string FORMATS_DIR
return string

errorTypes public_oe property

public ISet errorTypes
return ISet

errors public_oe property

public int errors
return int

tool public_oe property

public AntlrTool tool
return AntlrTool

warnings public_oe property

public int warnings
return int