Class UsingStatement
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax
- Assembly
- ICSharpCode.Decompiler.dll
[ await ] using (ResourceAcquisition) EmbeddedStatement
public class UsingStatement : Statement, IAnnotatable, IFreezable, INode, ICloneable
- Inheritance
-
UsingStatement
- Implements
- Inherited Members
- Extension Methods
Constructors
UsingStatement()
public UsingStatement()
Fields
AwaitRole
public static readonly TokenRole AwaitRole
Field Value
ResourceAcquisitionRole
public static readonly Role<AstNode> ResourceAcquisitionRole
Field Value
UsingKeywordRole
public static readonly TokenRole UsingKeywordRole
Field Value
Properties
AwaitToken
public CSharpTokenNode AwaitToken { get; }
Property Value
EmbeddedStatement
public Statement EmbeddedStatement { get; set; }
Property Value
IsAsync
public bool IsAsync { get; set; }
Property Value
IsEnhanced
public bool IsEnhanced { get; set; }
Property Value
LParToken
public CSharpTokenNode LParToken { get; }
Property Value
RParToken
public CSharpTokenNode RParToken { get; }
Property Value
ResourceAcquisition
Either a VariableDeclarationStatement, or an Expression.
public AstNode ResourceAcquisition { get; set; }
Property Value
UsingToken
public CSharpTokenNode UsingToken { get; }
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)