Class AnonymousMethodExpression
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax
- Assembly
- ICSharpCode.Decompiler.dll
[async] delegate(Parameters) {Body}
public class AnonymousMethodExpression : Expression, IAnnotatable, IFreezable, INode, ICloneable
- Inheritance
-
AnonymousMethodExpression
- Implements
- Inherited Members
- Extension Methods
Constructors
AnonymousMethodExpression()
public AnonymousMethodExpression()
AnonymousMethodExpression(BlockStatement, params ParameterDeclaration[])
public AnonymousMethodExpression(BlockStatement body, params ParameterDeclaration[] parameters)
Parameters
body
BlockStatementparameters
ParameterDeclaration[]
AnonymousMethodExpression(BlockStatement, IEnumerable<ParameterDeclaration>)
public AnonymousMethodExpression(BlockStatement body, IEnumerable<ParameterDeclaration> parameters = null)
Parameters
body
BlockStatementparameters
IEnumerable<ParameterDeclaration>
Fields
AsyncModifierRole
public static readonly TokenRole AsyncModifierRole
Field Value
DelegateKeywordRole
public static readonly TokenRole DelegateKeywordRole
Field Value
Properties
Body
public BlockStatement Body { get; set; }
Property Value
DelegateToken
public CSharpTokenNode DelegateToken { get; }
Property Value
HasParameterList
public bool HasParameterList { get; set; }
Property Value
IsAsync
public bool IsAsync { get; set; }
Property Value
LParToken
public CSharpTokenNode LParToken { get; }
Property Value
Parameters
public AstNodeCollection<ParameterDeclaration> Parameters { get; }
Property Value
RParToken
public CSharpTokenNode RParToken { 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)