C# Class Mono.CSharp.Report

Show file Open project: kumpera/mono Class Usage Examples

Public Properties

Property Type Description
AllWarnings int[]
DebugFlags int
WarningsAreErrors bool

Public Methods

Method Description
AddWarningAsError ( string warningId ) : void
CheckWarningCode ( int code, Mono.CSharp.Location loc ) : bool
CheckWarningCode ( string code, Mono.CSharp.Location loc ) : bool
DisableReporting ( ) : void
EnableReporting ( ) : void
Error ( int code, Mono.CSharp.Location loc, string error ) : void
Error ( int code, Mono.CSharp.Location loc, string format, string arg ) : void
Error ( int code, Mono.CSharp.Location loc, string format, string arg1, string arg2 ) : void
Error ( int code, string error ) : void
Error ( int code, string format, string arg ) : void
Error ( int code, string format, string arg1, string arg2 ) : void
ExtraInformation ( Mono.CSharp.Location loc, string msg ) : void
FeatureIsNotAvailable ( Mono.CSharp.Location loc, string feature ) : void
FeatureIsNotSupported ( Mono.CSharp.Location loc, string feature ) : void
IsWarningDisabledGlobally ( int code ) : bool
RegisterWarningRegion ( Mono.CSharp.Location location ) : WarningRegions
RemoveWarningAsError ( string warningId ) : void
Report ( ReportPrinter printer ) : System
RuntimeMissingSupport ( Mono.CSharp.Location loc, string feature ) : void
SetIgnoreWarning ( int code ) : void
SetPrinter ( ReportPrinter printer ) : ReportPrinter
SymbolRelatedToPreviousError ( Mono.CSharp.Location loc, string symbol ) : void

In most error cases is very useful to have information about symbol that caused the error. Call this method before you call Report.Error when it makes sense.

SymbolRelatedToPreviousError ( MemberCore mc ) : void
SymbolRelatedToPreviousError ( MemberSpec ms ) : void
SymbolRelatedToPreviousError ( string loc ) : void
Warning ( int code, int level, Mono.CSharp.Location loc, string message ) : void
Warning ( int code, int level, Mono.CSharp.Location loc, string format, string arg ) : void
Warning ( int code, int level, Mono.CSharp.Location loc, string format, string arg1, string arg2 ) : void
Warning ( int code, int level, string message ) : void
Warning ( int code, int level, string format, string arg ) : void
Warning ( int code, int level, string format, string arg1, string arg2 ) : void

Private Methods

Method Description
Debug ( int category, string message ) : void
Debug ( string message ) : void
IsWarningAsError ( int code ) : bool
IsWarningEnabled ( int code, int level, Mono.CSharp.Location loc ) : bool

Method Details

AddWarningAsError() public method

public AddWarningAsError ( string warningId ) : void
warningId string
return void

CheckWarningCode() public method

public CheckWarningCode ( int code, Mono.CSharp.Location loc ) : bool
code int
loc Mono.CSharp.Location
return bool

CheckWarningCode() public method

public CheckWarningCode ( string code, Mono.CSharp.Location loc ) : bool
code string
loc Mono.CSharp.Location
return bool

DisableReporting() public method

public DisableReporting ( ) : void
return void

EnableReporting() public method

public EnableReporting ( ) : void
return void

Error() public method

public Error ( int code, Mono.CSharp.Location loc, string error ) : void
code int
loc Mono.CSharp.Location
error string
return void

Error() public method

public Error ( int code, Mono.CSharp.Location loc, string format, string arg ) : void
code int
loc Mono.CSharp.Location
format string
arg string
return void

Error() public method

public Error ( int code, Mono.CSharp.Location loc, string format, string arg1, string arg2 ) : void
code int
loc Mono.CSharp.Location
format string
arg1 string
arg2 string
return void

Error() public method

public Error ( int code, string error ) : void
code int
error string
return void

Error() public method

public Error ( int code, string format, string arg ) : void
code int
format string
arg string
return void

Error() public method

public Error ( int code, string format, string arg1, string arg2 ) : void
code int
format string
arg1 string
arg2 string
return void

ExtraInformation() public method

public ExtraInformation ( Mono.CSharp.Location loc, string msg ) : void
loc Mono.CSharp.Location
msg string
return void

FeatureIsNotAvailable() public method

public FeatureIsNotAvailable ( Mono.CSharp.Location loc, string feature ) : void
loc Mono.CSharp.Location
feature string
return void

FeatureIsNotSupported() public method

public FeatureIsNotSupported ( Mono.CSharp.Location loc, string feature ) : void
loc Mono.CSharp.Location
feature string
return void

IsWarningDisabledGlobally() public method

public IsWarningDisabledGlobally ( int code ) : bool
code int
return bool

RegisterWarningRegion() public method

public RegisterWarningRegion ( Mono.CSharp.Location location ) : WarningRegions
location Mono.CSharp.Location
return WarningRegions

RemoveWarningAsError() public method

public RemoveWarningAsError ( string warningId ) : void
warningId string
return void

Report() public method

public Report ( ReportPrinter printer ) : System
printer ReportPrinter
return System

RuntimeMissingSupport() public method

public RuntimeMissingSupport ( Mono.CSharp.Location loc, string feature ) : void
loc Mono.CSharp.Location
feature string
return void

SetIgnoreWarning() public method

public SetIgnoreWarning ( int code ) : void
code int
return void

SetPrinter() public method

public SetPrinter ( ReportPrinter printer ) : ReportPrinter
printer ReportPrinter
return ReportPrinter

SymbolRelatedToPreviousError() public method

In most error cases is very useful to have information about symbol that caused the error. Call this method before you call Report.Error when it makes sense.
public SymbolRelatedToPreviousError ( Mono.CSharp.Location loc, string symbol ) : void
loc Mono.CSharp.Location
symbol string
return void

SymbolRelatedToPreviousError() public method

public SymbolRelatedToPreviousError ( MemberCore mc ) : void
mc MemberCore
return void

SymbolRelatedToPreviousError() public method

public SymbolRelatedToPreviousError ( MemberSpec ms ) : void
ms MemberSpec
return void

SymbolRelatedToPreviousError() public method

public SymbolRelatedToPreviousError ( string loc ) : void
loc string
return void

Warning() public method

public Warning ( int code, int level, Mono.CSharp.Location loc, string message ) : void
code int
level int
loc Mono.CSharp.Location
message string
return void

Warning() public method

public Warning ( int code, int level, Mono.CSharp.Location loc, string format, string arg ) : void
code int
level int
loc Mono.CSharp.Location
format string
arg string
return void

Warning() public method

public Warning ( int code, int level, Mono.CSharp.Location loc, string format, string arg1, string arg2 ) : void
code int
level int
loc Mono.CSharp.Location
format string
arg1 string
arg2 string
return void

Warning() public method

public Warning ( int code, int level, string message ) : void
code int
level int
message string
return void

Warning() public method

public Warning ( int code, int level, string format, string arg ) : void
code int
level int
format string
arg string
return void

Warning() public method

public Warning ( int code, int level, string format, string arg1, string arg2 ) : void
code int
level int
format string
arg1 string
arg2 string
return void

Property Details

AllWarnings public static property

public static int[] AllWarnings
return int[]

DebugFlags public static property

public static int DebugFlags
return int

WarningsAreErrors public property

Whether warnings should be considered errors
public bool WarningsAreErrors
return bool