OperationKind Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
All of the kinds of operations, including statements and expressions.
public enum class OperationKind
public enum OperationKind
type OperationKind =
Public Enum OperationKind
- Inheritance
-
OperationKind
Fields
Name | Value | Description |
---|---|---|
None | 0 | Indicates an IOperation for a construct that is not implemented yet. |
Invalid | 1 | Indicates an IInvalidOperation. |
Block | 2 | Indicates an IBlockOperation. |
VariableDeclarationGroup | 3 | Indicates an IVariableDeclarationGroupOperation. |
Switch | 4 | Indicates an ISwitchOperation. |
Loop | 5 | Indicates an ILoopOperation. This is further differentiated by LoopKind. |
Labeled | 6 | Indicates an ILabeledOperation. |
Branch | 7 | Indicates an IBranchOperation. |
Empty | 8 | Indicates an IEmptyOperation. |
Return | 9 | Indicates an IReturnOperation. |
YieldBreak | 10 | Indicates an IReturnOperation. This has yield break semantics. |
Lock | 11 | Indicates an ILockOperation. |
Try | 12 | Indicates an ITryOperation. |
Using | 13 | Indicates an IUsingOperation. |
YieldReturn | 14 | Indicates an IReturnOperation. This has yield return semantics. |
ExpressionStatement | 15 | Indicates an IExpressionStatementOperation. |
LocalFunction | 16 | Indicates an ILocalFunctionOperation. |
Stop | 17 | Indicates an IStopOperation. |
End | 18 | Indicates an IEndOperation. |
RaiseEvent | 19 | Indicates an IRaiseEventOperation. |
Literal | 20 | Indicates an ILiteralOperation. |
Conversion | 21 | Indicates an IConversionOperation. |
Invocation | 22 | Indicates an IInvocationOperation. |
ArrayElementReference | 23 | Indicates an IArrayElementReferenceOperation. |
LocalReference | 24 | Indicates an ILocalReferenceOperation. |
ParameterReference | 25 | Indicates an IParameterReferenceOperation. |
FieldReference | 26 | Indicates an IFieldReferenceOperation. |
MethodReference | 27 | Indicates an IMethodReferenceOperation. |
PropertyReference | 28 | Indicates an IPropertyReferenceOperation. |
EventReference | 30 | Indicates an IEventReferenceOperation. |
Unary | 31 | Indicates an IUnaryOperation. |
UnaryOperator | 31 | Indicates an IUnaryOperation. Use Unary instead. |
Binary | 32 | Indicates an IBinaryOperation. |
BinaryOperator | 32 | Indicates an IBinaryOperation. Use Binary instead. |
Conditional | 33 | Indicates an IConditionalOperation. |
Coalesce | 34 | Indicates an ICoalesceOperation. |
AnonymousFunction | 35 | Indicates an IAnonymousFunctionOperation. |
ObjectCreation | 36 | Indicates an IObjectCreationOperation. |
TypeParameterObjectCreation | 37 | Indicates an ITypeParameterObjectCreationOperation. |
ArrayCreation | 38 | Indicates an IArrayCreationOperation. |
InstanceReference | 39 | Indicates an IInstanceReferenceOperation. |
IsType | 40 | Indicates an IIsTypeOperation. |
Await | 41 | Indicates an IAwaitOperation. |
SimpleAssignment | 42 | Indicates an ISimpleAssignmentOperation. |
CompoundAssignment | 43 | Indicates an ICompoundAssignmentOperation. |
Parenthesized | 44 | Indicates an IParenthesizedOperation. |
EventAssignment | 45 | Indicates an IEventAssignmentOperation. |
ConditionalAccess | 46 | Indicates an IConditionalAccessOperation. |
ConditionalAccessInstance | 47 | Indicates an IConditionalAccessInstanceOperation. |
InterpolatedString | 48 | Indicates an IInterpolatedStringOperation. |
AnonymousObjectCreation | 49 | Indicates an IAnonymousObjectCreationOperation. |
ObjectOrCollectionInitializer | 50 | Indicates an IObjectOrCollectionInitializerOperation. |
MemberInitializer | 51 | Indicates an IMemberInitializerOperation. |
CollectionElementInitializer | 52 | Indicates an ICollectionElementInitializerOperation. |
NameOf | 53 | Indicates an INameOfOperation. |
Tuple | 54 | Indicates an ITupleOperation. |
DynamicObjectCreation | 55 | Indicates an IDynamicObjectCreationOperation. |
DynamicMemberReference | 56 | Indicates an IDynamicMemberReferenceOperation. |
DynamicInvocation | 57 | Indicates an IDynamicInvocationOperation. |
DynamicIndexerAccess | 58 | Indicates an IDynamicIndexerAccessOperation. |
TranslatedQuery | 59 | Indicates an ITranslatedQueryOperation. |
DelegateCreation | 60 | Indicates an IDelegateCreationOperation. |
DefaultValue | 61 | Indicates an IDefaultValueOperation. |
TypeOf | 62 | Indicates an ITypeOfOperation. |
SizeOf | 63 | Indicates an ISizeOfOperation. |
AddressOf | 64 | Indicates an IAddressOfOperation. |
IsPattern | 65 | Indicates an IIsPatternOperation. |
Increment | 66 | Indicates an IIncrementOrDecrementOperation. This is used as an increment operator |
Throw | 67 | Indicates an IThrowOperation. |
Decrement | 68 | Indicates an IIncrementOrDecrementOperation. This is used as a decrement operator |
DeconstructionAssignment | 69 | Indicates an IDeconstructionAssignmentOperation. |
DeclarationExpression | 70 | Indicates an IDeclarationExpressionOperation. |
OmittedArgument | 71 | Indicates an IOmittedArgumentOperation. |
FieldInitializer | 72 | Indicates an IFieldInitializerOperation. |
VariableInitializer | 73 | Indicates an IVariableInitializerOperation. |
PropertyInitializer | 74 | Indicates an IPropertyInitializerOperation. |
ParameterInitializer | 75 | Indicates an IParameterInitializerOperation. |
ArrayInitializer | 76 | Indicates an IArrayInitializerOperation. |
VariableDeclarator | 77 | Indicates an IVariableDeclaratorOperation. |
VariableDeclaration | 78 | Indicates an IVariableDeclarationOperation. |
Argument | 79 | Indicates an IArgumentOperation. |
CatchClause | 80 | Indicates an ICatchClauseOperation. |
SwitchCase | 81 | Indicates an ISwitchCaseOperation. |
CaseClause | 82 | Indicates an ICaseClauseOperation. This is further differentiated by CaseKind. |
InterpolatedStringText | 83 | Indicates an IInterpolatedStringTextOperation. |
Interpolation | 84 | Indicates an IInterpolationOperation. |
ConstantPattern | 85 | Indicates an IConstantPatternOperation. |
DeclarationPattern | 86 | Indicates an IDeclarationPatternOperation. |
TupleBinary | 87 | Indicates an ITupleBinaryOperation. |
TupleBinaryOperator | 87 | Indicates an ITupleBinaryOperation. Use TupleBinary instead. |
MethodBody | 88 | Indicates an IMethodBodyOperation. |
MethodBodyOperation | 88 | Indicates an IMethodBodyOperation. Use MethodBody instead. |
ConstructorBody | 89 | Indicates an IConstructorBodyOperation. |
ConstructorBodyOperation | 89 | Indicates an IConstructorBodyOperation. Use ConstructorBody instead. |
Discard | 90 | Indicates an IDiscardOperation. |
FlowCapture | 91 | Indicates an IFlowCaptureOperation. |
FlowCaptureReference | 92 | Indicates an IFlowCaptureReferenceOperation. |
IsNull | 93 | Indicates an IIsNullOperation. |
CaughtException | 94 | Indicates an ICaughtExceptionOperation. |
StaticLocalInitializationSemaphore | 95 | Indicates an IStaticLocalInitializationSemaphoreOperation. |
FlowAnonymousFunction | 96 | Indicates an IFlowAnonymousFunctionOperation. |
CoalesceAssignment | 97 | Indicates an ICoalesceAssignmentOperation. |
Range | 99 | Indicates an IRangeOperation. |
ReDim | 101 | Indicates an IReDimOperation. |
ReDimClause | 102 | Indicates an IReDimClauseOperation. |
RecursivePattern | 103 | Indicates an IRecursivePatternOperation. |
DiscardPattern | 104 | Indicates an IDiscardPatternOperation. |
SwitchExpression | 105 | Indicates an ISwitchExpressionOperation. |
SwitchExpressionArm | 106 | Indicates an ISwitchExpressionArmOperation. |
PropertySubpattern | 107 | Indicates an IPropertySubpatternOperation. |
UsingDeclaration | 108 | Indicates an IUsingDeclarationOperation. |
NegatedPattern | 109 | Indicates an INegatedPatternOperation. |
BinaryPattern | 110 | Indicates an IBinaryPatternOperation. |
TypePattern | 111 | Indicates an ITypePatternOperation. |
RelationalPattern | 112 | Indicates an IRelationalPatternOperation. |
With | 113 | Indicates an IWithOperation. |
InterpolatedStringHandlerCreation | 114 | Indicates an IInterpolatedStringHandlerCreationOperation. |
InterpolatedStringAddition | 115 | Indicates an IInterpolatedStringAdditionOperation. |
InterpolatedStringAppendLiteral | 116 | Indicates an IInterpolatedStringAppendOperation. This append is of a literal component |
InterpolatedStringAppendFormatted | 117 | Indicates an IInterpolatedStringAppendOperation. This append is of an interpolation component |
InterpolatedStringAppendInvalid | 118 | Indicates an IInterpolatedStringAppendOperation. This append is invalid |
InterpolatedStringHandlerArgumentPlaceholder | 119 | Indicates an IInterpolatedStringHandlerArgumentPlaceholderOperation. |
FunctionPointerInvocation | 120 | Indicates an IFunctionPointerInvocationOperation. |
ListPattern | 121 | Indicates an IListPatternOperation. |
SlicePattern | 122 | Indicates an ISlicePatternOperation. |
ImplicitIndexerReference | 123 | Indicates an IImplicitIndexerReferenceOperation. |
Utf8String | 124 | Indicates an IUtf8StringOperation. |
Attribute | 125 | Indicates an IAttributeOperation. |
InlineArrayAccess | 126 | Indicates an IInlineArrayAccessOperation. |
CollectionExpression | 127 | Indicates an ICollectionExpressionOperation. |
Spread | 128 | Indicates an ISpreadOperation. |
Applies to
.NET