Class AsExpression
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax
- Assembly
- ICSharpCode.Decompiler.dll
Expression as TypeReference
public class AsExpression : Expression, IAnnotatable, IFreezable, INode, ICloneable
- Inheritance
-
AsExpression
- Implements
- Inherited Members
- Extension Methods
Constructors
AsExpression()
public AsExpression()
AsExpression(Expression, AstType)
public AsExpression(Expression expression, AstType type)
Parameters
expression
Expressiontype
AstType
Fields
AsKeywordRole
public static readonly TokenRole AsKeywordRole
Field Value
Properties
AsToken
public CSharpTokenNode AsToken { get; }
Property Value
Expression
public Expression Expression { get; set; }
Property Value
Type
public AstType 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)