Class OperatorDeclaration
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax
- Assembly
- ICSharpCode.Decompiler.dll
public class OperatorDeclaration : EntityDeclaration, IAnnotatable, IFreezable, INode, ICloneable
- Inheritance
-
OperatorDeclaration
- Implements
- Inherited Members
- Extension Methods
Constructors
OperatorDeclaration()
public OperatorDeclaration()
Fields
AdditionRole
public static readonly TokenRole AdditionRole
Field Value
BitwiseAndRole
public static readonly TokenRole BitwiseAndRole
Field Value
BitwiseOrRole
public static readonly TokenRole BitwiseOrRole
Field Value
CheckedKeywordRole
public static readonly TokenRole CheckedKeywordRole
Field Value
DecrementRole
public static readonly TokenRole DecrementRole
Field Value
DivisionRole
public static readonly TokenRole DivisionRole
Field Value
EqualityRole
public static readonly TokenRole EqualityRole
Field Value
ExclusiveOrRole
public static readonly TokenRole ExclusiveOrRole
Field Value
ExplicitRole
public static readonly TokenRole ExplicitRole
Field Value
FalseRole
public static readonly TokenRole FalseRole
Field Value
GreaterThanOrEqualRole
public static readonly TokenRole GreaterThanOrEqualRole
Field Value
GreaterThanRole
public static readonly TokenRole GreaterThanRole
Field Value
ImplicitRole
public static readonly TokenRole ImplicitRole
Field Value
IncrementRole
public static readonly TokenRole IncrementRole
Field Value
InequalityRole
public static readonly TokenRole InequalityRole
Field Value
LeftShiftRole
public static readonly TokenRole LeftShiftRole
Field Value
LessThanOrEqualRole
public static readonly TokenRole LessThanOrEqualRole
Field Value
LessThanRole
public static readonly TokenRole LessThanRole
Field Value
LogicalNotRole
public static readonly TokenRole LogicalNotRole
Field Value
ModulusRole
public static readonly TokenRole ModulusRole
Field Value
MultiplyRole
public static readonly TokenRole MultiplyRole
Field Value
OnesComplementRole
public static readonly TokenRole OnesComplementRole
Field Value
OperatorKeywordRole
public static readonly TokenRole OperatorKeywordRole
Field Value
RightShiftRole
public static readonly TokenRole RightShiftRole
Field Value
SubtractionRole
public static readonly TokenRole SubtractionRole
Field Value
TrueRole
public static readonly TokenRole TrueRole
Field Value
UnsignedRightShiftRole
public static readonly TokenRole UnsignedRightShiftRole
Field Value
Properties
Body
public BlockStatement Body { get; set; }
Property Value
LParToken
public CSharpTokenNode LParToken { get; }
Property Value
Name
public override string Name { get; set; }
Property Value
OperatorToken
public CSharpTokenNode OperatorToken { get; }
Property Value
OperatorType
public OperatorType OperatorType { get; set; }
Property Value
OperatorTypeToken
public CSharpTokenNode OperatorTypeToken { get; }
Property Value
Parameters
public AstNodeCollection<ParameterDeclaration> Parameters { get; }
Property Value
PrivateImplementationType
Gets/Sets the type reference of the interface that is explicitly implemented. Null node if this member is not an explicit interface implementation.
public AstType PrivateImplementationType { get; set; }
Property Value
RParToken
public CSharpTokenNode RParToken { get; }
Property Value
SymbolKind
public override SymbolKind SymbolKind { 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
GetName(OperatorType?)
Gets the method name for the operator type. ("op_Addition", "op_Implicit", etc.)
public static string GetName(OperatorType? type)
Parameters
type
OperatorType?
Returns
GetOperatorType(string)
Gets the operator type from the method name, or null, if the method does not represent one of the known operator types.
public static OperatorType? GetOperatorType(string methodName)
Parameters
methodName
string
Returns
GetRole(OperatorType)
public static TokenRole GetRole(OperatorType type)
Parameters
type
OperatorType
Returns
GetToken(OperatorType)
Gets the token for the operator type ("+", "implicit", etc.). Does not include the "checked" modifier.
public static string GetToken(OperatorType type)
Parameters
type
OperatorType
Returns
IsChecked(OperatorType)
Gets whether the operator type is a C# 11 "operator checked".
public static bool IsChecked(OperatorType type)
Parameters
type
OperatorType