C# Класс Mono.CSharp.Report

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AllWarnings int[]
DebugFlags int
WarningsAreErrors bool

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Debug ( int category, string message ) : void
Debug ( string message ) : void
IsWarningAsError ( int code ) : bool
IsWarningEnabled ( int code, int level, Mono.CSharp.Location loc ) : bool

Описание методов

AddWarningAsError() публичный Метод

public AddWarningAsError ( string warningId ) : void
warningId string
Результат void

CheckWarningCode() публичный Метод

public CheckWarningCode ( int code, Mono.CSharp.Location loc ) : bool
code int
loc Mono.CSharp.Location
Результат bool

CheckWarningCode() публичный Метод

public CheckWarningCode ( string code, Mono.CSharp.Location loc ) : bool
code string
loc Mono.CSharp.Location
Результат bool

DisableReporting() публичный Метод

public DisableReporting ( ) : void
Результат void

EnableReporting() публичный Метод

public EnableReporting ( ) : void
Результат void

Error() публичный Метод

public Error ( int code, Mono.CSharp.Location loc, string error ) : void
code int
loc Mono.CSharp.Location
error string
Результат void

Error() публичный Метод

public Error ( int code, Mono.CSharp.Location loc, string format, string arg ) : void
code int
loc Mono.CSharp.Location
format string
arg string
Результат void

Error() публичный Метод

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
Результат void

Error() публичный Метод

public Error ( int code, string error ) : void
code int
error string
Результат void

Error() публичный Метод

public Error ( int code, string format, string arg ) : void
code int
format string
arg string
Результат void

Error() публичный Метод

public Error ( int code, string format, string arg1, string arg2 ) : void
code int
format string
arg1 string
arg2 string
Результат void

ExtraInformation() публичный Метод

public ExtraInformation ( Mono.CSharp.Location loc, string msg ) : void
loc Mono.CSharp.Location
msg string
Результат void

FeatureIsNotAvailable() публичный Метод

public FeatureIsNotAvailable ( Mono.CSharp.Location loc, string feature ) : void
loc Mono.CSharp.Location
feature string
Результат void

FeatureIsNotSupported() публичный Метод

public FeatureIsNotSupported ( Mono.CSharp.Location loc, string feature ) : void
loc Mono.CSharp.Location
feature string
Результат void

IsWarningDisabledGlobally() публичный Метод

public IsWarningDisabledGlobally ( int code ) : bool
code int
Результат bool

RegisterWarningRegion() публичный Метод

public RegisterWarningRegion ( Mono.CSharp.Location location ) : WarningRegions
location Mono.CSharp.Location
Результат WarningRegions

RemoveWarningAsError() публичный Метод

public RemoveWarningAsError ( string warningId ) : void
warningId string
Результат void

Report() публичный Метод

public Report ( ReportPrinter printer ) : System
printer ReportPrinter
Результат System

RuntimeMissingSupport() публичный Метод

public RuntimeMissingSupport ( Mono.CSharp.Location loc, string feature ) : void
loc Mono.CSharp.Location
feature string
Результат void

SetIgnoreWarning() публичный Метод

public SetIgnoreWarning ( int code ) : void
code int
Результат void

SetPrinter() публичный Метод

public SetPrinter ( ReportPrinter printer ) : ReportPrinter
printer ReportPrinter
Результат ReportPrinter

SymbolRelatedToPreviousError() публичный Метод

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
Результат void

SymbolRelatedToPreviousError() публичный Метод

public SymbolRelatedToPreviousError ( MemberCore mc ) : void
mc MemberCore
Результат void

SymbolRelatedToPreviousError() публичный Метод

public SymbolRelatedToPreviousError ( MemberSpec ms ) : void
ms MemberSpec
Результат void

SymbolRelatedToPreviousError() публичный Метод

public SymbolRelatedToPreviousError ( string loc ) : void
loc string
Результат void

Warning() публичный Метод

public Warning ( int code, int level, Mono.CSharp.Location loc, string message ) : void
code int
level int
loc Mono.CSharp.Location
message string
Результат void

Warning() публичный Метод

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
Результат void

Warning() публичный Метод

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
Результат void

Warning() публичный Метод

public Warning ( int code, int level, string message ) : void
code int
level int
message string
Результат void

Warning() публичный Метод

public Warning ( int code, int level, string format, string arg ) : void
code int
level int
format string
arg string
Результат void

Warning() публичный Метод

public Warning ( int code, int level, string format, string arg1, string arg2 ) : void
code int
level int
format string
arg1 string
arg2 string
Результат void

Описание свойств

AllWarnings публичное статическое свойство

public static int[] AllWarnings
Результат int[]

DebugFlags публичное статическое свойство

public static int DebugFlags
Результат int

WarningsAreErrors публичное свойство

Whether warnings should be considered errors
public bool WarningsAreErrors
Результат bool