Class UnaryOperatorExpression
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax
- Assembly
- ICSharpCode.Decompiler.dll
Operator Expression
public class UnaryOperatorExpression : Expression, IAnnotatable, IFreezable, INode, ICloneable
- Inheritance
-
UnaryOperatorExpression
- Implements
- Inherited Members
- Extension Methods
Constructors
UnaryOperatorExpression()
public UnaryOperatorExpression()
UnaryOperatorExpression(UnaryOperatorType, Expression)
public UnaryOperatorExpression(UnaryOperatorType op, Expression expression)
Parameters
op
UnaryOperatorTypeexpression
Expression
Fields
AddressOfRole
public static readonly TokenRole AddressOfRole
Field Value
AwaitRole
public static readonly TokenRole AwaitRole
Field Value
BitNotRole
public static readonly TokenRole BitNotRole
Field Value
DecrementRole
public static readonly TokenRole DecrementRole
Field Value
DereferenceRole
public static readonly TokenRole DereferenceRole
Field Value
IncrementRole
public static readonly TokenRole IncrementRole
Field Value
IndexFromEndRole
public static readonly TokenRole IndexFromEndRole
Field Value
MinusRole
public static readonly TokenRole MinusRole
Field Value
NotRole
public static readonly TokenRole NotRole
Field Value
NullConditionalRole
public static readonly TokenRole NullConditionalRole
Field Value
PatternNotRole
public static readonly TokenRole PatternNotRole
Field Value
PlusRole
public static readonly TokenRole PlusRole
Field Value
SuppressNullableWarningRole
public static readonly TokenRole SuppressNullableWarningRole
Field Value
Properties
Expression
public Expression Expression { get; set; }
Property Value
Operator
public UnaryOperatorType Operator { get; set; }
Property Value
OperatorToken
public CSharpTokenNode OperatorToken { 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)
Parameters
Returns
GetLinqNodeType(UnaryOperatorType, bool)
public static ExpressionType GetLinqNodeType(UnaryOperatorType op, bool checkForOverflow)
Parameters
op
UnaryOperatorTypecheckForOverflow
bool
Returns
GetOperatorRole(UnaryOperatorType)
public static TokenRole GetOperatorRole(UnaryOperatorType op)