C# Class Mono.CSharp.Report

Afficher le fichier Open project: kumpera/mono Class Usage Examples

Méthodes publiques

Свойство Type Description
AllWarnings int[]
DebugFlags int
WarningsAreErrors bool

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddWarningAsError ( string warningId ) : void
warningId string
Résultat void

CheckWarningCode() public méthode

public CheckWarningCode ( int code, Mono.CSharp.Location loc ) : bool
code int
loc Mono.CSharp.Location
Résultat bool

CheckWarningCode() public méthode

public CheckWarningCode ( string code, Mono.CSharp.Location loc ) : bool
code string
loc Mono.CSharp.Location
Résultat bool

DisableReporting() public méthode

public DisableReporting ( ) : void
Résultat void

EnableReporting() public méthode

public EnableReporting ( ) : void
Résultat void

Error() public méthode

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

Error() public méthode

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

Error() public méthode

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
Résultat void

Error() public méthode

public Error ( int code, string error ) : void
code int
error string
Résultat void

Error() public méthode

public Error ( int code, string format, string arg ) : void
code int
format string
arg string
Résultat void

Error() public méthode

public Error ( int code, string format, string arg1, string arg2 ) : void
code int
format string
arg1 string
arg2 string
Résultat void

ExtraInformation() public méthode

public ExtraInformation ( Mono.CSharp.Location loc, string msg ) : void
loc Mono.CSharp.Location
msg string
Résultat void

FeatureIsNotAvailable() public méthode

public FeatureIsNotAvailable ( Mono.CSharp.Location loc, string feature ) : void
loc Mono.CSharp.Location
feature string
Résultat void

FeatureIsNotSupported() public méthode

public FeatureIsNotSupported ( Mono.CSharp.Location loc, string feature ) : void
loc Mono.CSharp.Location
feature string
Résultat void

IsWarningDisabledGlobally() public méthode

public IsWarningDisabledGlobally ( int code ) : bool
code int
Résultat bool

RegisterWarningRegion() public méthode

public RegisterWarningRegion ( Mono.CSharp.Location location ) : WarningRegions
location Mono.CSharp.Location
Résultat WarningRegions

RemoveWarningAsError() public méthode

public RemoveWarningAsError ( string warningId ) : void
warningId string
Résultat void

Report() public méthode

public Report ( ReportPrinter printer ) : System
printer ReportPrinter
Résultat System

RuntimeMissingSupport() public méthode

public RuntimeMissingSupport ( Mono.CSharp.Location loc, string feature ) : void
loc Mono.CSharp.Location
feature string
Résultat void

SetIgnoreWarning() public méthode

public SetIgnoreWarning ( int code ) : void
code int
Résultat void

SetPrinter() public méthode

public SetPrinter ( ReportPrinter printer ) : ReportPrinter
printer ReportPrinter
Résultat ReportPrinter

SymbolRelatedToPreviousError() public méthode

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
Résultat void

SymbolRelatedToPreviousError() public méthode

public SymbolRelatedToPreviousError ( MemberCore mc ) : void
mc MemberCore
Résultat void

SymbolRelatedToPreviousError() public méthode

public SymbolRelatedToPreviousError ( MemberSpec ms ) : void
ms MemberSpec
Résultat void

SymbolRelatedToPreviousError() public méthode

public SymbolRelatedToPreviousError ( string loc ) : void
loc string
Résultat void

Warning() public méthode

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

Warning() public méthode

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
Résultat void

Warning() public méthode

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
Résultat void

Warning() public méthode

public Warning ( int code, int level, string message ) : void
code int
level int
message string
Résultat void

Warning() public méthode

public Warning ( int code, int level, string format, string arg ) : void
code int
level int
format string
arg string
Résultat void

Warning() public méthode

public Warning ( int code, int level, string format, string arg1, string arg2 ) : void
code int
level int
format string
arg1 string
arg2 string
Résultat void

Property Details

AllWarnings public_oe static_oe property

public static int[] AllWarnings
Résultat int[]

DebugFlags public_oe static_oe property

public static int DebugFlags
Résultat int

WarningsAreErrors public_oe property

Whether warnings should be considered errors
public bool WarningsAreErrors
Résultat bool