Class Statement
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax
- Assembly
- ICSharpCode.Decompiler.dll
Base class for statements.
public abstract class Statement : AstNode, IAnnotatable, IFreezable, INode, ICloneable
- Inheritance
-
Statement
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
This class is useful even though it doesn't provide any additional functionality: It can be used to communicate more information in APIs, e.g. "this subnode will always be a statement"
Constructors
Statement()
protected Statement()
Fields
Null
public static readonly Statement Null
Field Value
Properties
NodeType
public override NodeType NodeType { get; }
Property Value
Methods
Clone()
public Statement Clone()
Returns
ReplaceWith(Func<Statement, Statement>)
public Statement ReplaceWith(Func<Statement, Statement> replaceFunction)
Parameters
Returns
Operators
implicit operator Statement(Pattern)
public static implicit operator Statement(Pattern pattern)
Parameters
pattern
Pattern