Table of Contents

Class PreProcessorDirective

Namespace
ICSharpCode.Decompiler.CSharp.Syntax
Assembly
ICSharpCode.Decompiler.dll
public class PreProcessorDirective : AstNode, IAnnotatable, IFreezable, INode, ICloneable
Inheritance
PreProcessorDirective
Implements
Derived
Inherited Members
Extension Methods

Constructors

PreProcessorDirective(PreProcessorDirectiveType, TextLocation, TextLocation)

public PreProcessorDirective(PreProcessorDirectiveType type, TextLocation startLocation, TextLocation endLocation)

Parameters

type PreProcessorDirectiveType
startLocation TextLocation
endLocation TextLocation

PreProcessorDirective(PreProcessorDirectiveType, string)

public PreProcessorDirective(PreProcessorDirectiveType type, string argument = null)

Parameters

type PreProcessorDirectiveType
argument string

Properties

Argument

public string Argument { get; set; }

Property Value

string

EndLocation

public override TextLocation EndLocation { get; }

Property Value

TextLocation

NodeType

public override NodeType NodeType { get; }

Property Value

NodeType

StartLocation

public override TextLocation StartLocation { get; }

Property Value

TextLocation

Take

For an '#if' directive, specifies whether the condition evaluated to true.

public bool Take { get; set; }

Property Value

bool

Type

public PreProcessorDirectiveType Type { get; set; }

Property Value

PreProcessorDirectiveType

Methods

AcceptVisitor(IAstVisitor)

public override void AcceptVisitor(IAstVisitor visitor)

Parameters

visitor IAstVisitor

AcceptVisitor<T>(IAstVisitor<T>)

public override T AcceptVisitor<T>(IAstVisitor<T> visitor)

Parameters

visitor IAstVisitor<T>

Returns

T

Type Parameters

T

AcceptVisitor<T, S>(IAstVisitor<T, S>, T)

public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)

Parameters

visitor IAstVisitor<T, S>
data T

Returns

S

Type Parameters

T
S

DoMatch(AstNode, Match)

protected override bool DoMatch(AstNode other, Match match)

Parameters

other AstNode
match Match

Returns

bool