Table of Contents

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 UnaryOperatorType
expression Expression

Fields

AddressOfRole

public static readonly TokenRole AddressOfRole

Field Value

TokenRole

AwaitRole

public static readonly TokenRole AwaitRole

Field Value

TokenRole

BitNotRole

public static readonly TokenRole BitNotRole

Field Value

TokenRole

DecrementRole

public static readonly TokenRole DecrementRole

Field Value

TokenRole

DereferenceRole

public static readonly TokenRole DereferenceRole

Field Value

TokenRole

IncrementRole

public static readonly TokenRole IncrementRole

Field Value

TokenRole

IndexFromEndRole

public static readonly TokenRole IndexFromEndRole

Field Value

TokenRole

MinusRole

public static readonly TokenRole MinusRole

Field Value

TokenRole

NotRole

public static readonly TokenRole NotRole

Field Value

TokenRole

NullConditionalRole

public static readonly TokenRole NullConditionalRole

Field Value

TokenRole

PatternNotRole

public static readonly TokenRole PatternNotRole

Field Value

TokenRole

PlusRole

public static readonly TokenRole PlusRole

Field Value

TokenRole

SuppressNullableWarningRole

public static readonly TokenRole SuppressNullableWarningRole

Field Value

TokenRole

Properties

Expression

public Expression Expression { get; set; }

Property Value

Expression

Operator

public UnaryOperatorType Operator { get; set; }

Property Value

UnaryOperatorType

OperatorToken

public CSharpTokenNode OperatorToken { get; }

Property Value

CSharpTokenNode

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

other AstNode
match Match

Returns

bool

GetLinqNodeType(UnaryOperatorType, bool)

public static ExpressionType GetLinqNodeType(UnaryOperatorType op, bool checkForOverflow)

Parameters

op UnaryOperatorType
checkForOverflow bool

Returns

ExpressionType

GetOperatorRole(UnaryOperatorType)

public static TokenRole GetOperatorRole(UnaryOperatorType op)

Parameters

op UnaryOperatorType

Returns

TokenRole