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
PreProcessorDirectiveTypestartLocation
TextLocationendLocation
TextLocation
PreProcessorDirective(PreProcessorDirectiveType, string)
public PreProcessorDirective(PreProcessorDirectiveType type, string argument = null)
Parameters
type
PreProcessorDirectiveTypeargument
string
Properties
Argument
public string Argument { get; set; }
Property Value
EndLocation
public override TextLocation EndLocation { get; }
Property Value
NodeType
public override NodeType NodeType { get; }
Property Value
StartLocation
public override TextLocation StartLocation { get; }
Property Value
Take
For an '#if' directive, specifies whether the condition evaluated to true.
public bool Take { get; set; }
Property Value
Type
public PreProcessorDirectiveType Type { get; set; }
Property Value
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)