Class PragmaWarningPreprocessorDirective
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax
- Assembly
- ICSharpCode.Decompiler.dll
public class PragmaWarningPreprocessorDirective : PreProcessorDirective, IAnnotatable, IFreezable, INode, ICloneable
- Inheritance
-
PragmaWarningPreprocessorDirective
- Implements
- Inherited Members
- Extension Methods
Constructors
PragmaWarningPreprocessorDirective(TextLocation, TextLocation)
public PragmaWarningPreprocessorDirective(TextLocation startLocation, TextLocation endLocation)
Parameters
startLocation
TextLocationendLocation
TextLocation
PragmaWarningPreprocessorDirective(string)
public PragmaWarningPreprocessorDirective(string argument = null)
Parameters
argument
string
Fields
DisableKeywordRole
public static readonly TokenRole DisableKeywordRole
Field Value
PragmaKeywordRole
public static readonly TokenRole PragmaKeywordRole
Field Value
RestoreKeywordRole
public static readonly TokenRole RestoreKeywordRole
Field Value
WarningKeywordRole
public static readonly TokenRole WarningKeywordRole
Field Value
WarningRole
public static readonly Role<PrimitiveExpression> WarningRole
Field Value
Properties
Disable
public bool Disable { get; }
Property Value
DisableToken
public CSharpTokenNode DisableToken { get; }
Property Value
EndLocation
public override TextLocation EndLocation { get; }
Property Value
PragmaToken
public CSharpTokenNode PragmaToken { get; }
Property Value
RestoreToken
public CSharpTokenNode RestoreToken { get; }
Property Value
WarningToken
public CSharpTokenNode WarningToken { get; }
Property Value
Warnings
public AstNodeCollection<PrimitiveExpression> Warnings { get; }
Property Value
Methods
IsDefined(int)
public bool IsDefined(int pragmaWarning)
Parameters
pragmaWarning
int