Table of Contents

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 TextLocation
endLocation TextLocation

PragmaWarningPreprocessorDirective(string)

public PragmaWarningPreprocessorDirective(string argument = null)

Parameters

argument string

Fields

DisableKeywordRole

public static readonly TokenRole DisableKeywordRole

Field Value

TokenRole

PragmaKeywordRole

public static readonly TokenRole PragmaKeywordRole

Field Value

TokenRole

RestoreKeywordRole

public static readonly TokenRole RestoreKeywordRole

Field Value

TokenRole

WarningKeywordRole

public static readonly TokenRole WarningKeywordRole

Field Value

TokenRole

WarningRole

public static readonly Role<PrimitiveExpression> WarningRole

Field Value

Role<PrimitiveExpression>

Properties

Disable

public bool Disable { get; }

Property Value

bool

DisableToken

public CSharpTokenNode DisableToken { get; }

Property Value

CSharpTokenNode

EndLocation

public override TextLocation EndLocation { get; }

Property Value

TextLocation

PragmaToken

public CSharpTokenNode PragmaToken { get; }

Property Value

CSharpTokenNode

RestoreToken

public CSharpTokenNode RestoreToken { get; }

Property Value

CSharpTokenNode

WarningToken

public CSharpTokenNode WarningToken { get; }

Property Value

CSharpTokenNode

Warnings

public AstNodeCollection<PrimitiveExpression> Warnings { get; }

Property Value

AstNodeCollection<PrimitiveExpression>

Methods

IsDefined(int)

public bool IsDefined(int pragmaWarning)

Parameters

pragmaWarning int

Returns

bool