Microsoft.CodeAnalysis.Operations Namespace
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.
Classes
OperationExtensions | |
OperationVisitor |
Represents a IOperation visitor that visits only the single IOperation passed into its Visit method. |
OperationVisitor<TArgument,TResult> |
Represents a IOperation visitor that visits only the single IOperation
passed into its Visit method with an additional argument of the type specified by the
|
OperationWalker |
Represents a OperationVisitor that descends an entire IOperation tree visiting each IOperation and its child IOperation nodes in depth-first order. |
OperationWalker<TArgument> |
Represents a OperationVisitor<TArgument,TResult> that descends an entire IOperation tree visiting each IOperation and its child IOperation nodes in depth-first order. Returns null. |
Structs
CommonConversion |
Represents the common, language-agnostic elements of a conversion. |
Interfaces
IAddressOfOperation |
Represents an operation that creates a pointer value by taking the address of a reference. Current usage:
|
IAnonymousFunctionOperation |
Represents an anonymous function operation. Current usage:
|
IAnonymousObjectCreationOperation |
Represents a creation of anonymous object. Current usage:
|
IArgumentOperation |
Represents an argument to a method invocation. Current usage:
|
IArrayCreationOperation |
Represents the creation of an array instance. Current usage:
|
IArrayElementReferenceOperation |
Represents a reference to an array element. Current usage:
|
IArrayInitializerOperation |
Represents the initialization of an array instance. Current usage:
|
IAssignmentOperation |
Represents a base interface for assignments. Current usage:
|
IAttributeOperation |
Represents the application of an attribute. Current usage:
|
IAwaitOperation |
Represents an await operation. Current usage:
|
IBinaryOperation |
Represents an operation with two operands and a binary operator that produces a result with a non-null type. Current usage:
|
IBinaryPatternOperation |
Represents a binary ("and" or "or") pattern. Current usage:
|
IBlockOperation |
Represents a block containing a sequence of operations and local declarations. Current usage:
|
IBranchOperation |
Represents a branch operation. Current usage:
|
ICaseClauseOperation |
Represents a case clause. Current usage:
|
ICatchClauseOperation |
Represents a catch clause. Current usage:
|
ICoalesceAssignmentOperation |
Represents a coalesce assignment operation with a target and a conditionally-evaluated value:
Current usage:
|
ICoalesceOperation |
Represents a coalesce operation with two operands:
Current usage:
|
ICollectionElementInitializerOperation |
Obsolete interface that used to represent a collection element initializer. It has been replaced by IInvocationOperation and IDynamicInvocationOperation, as appropriate. Current usage: None. This API has been obsoleted in favor of IInvocationOperation and IDynamicInvocationOperation. |
ICollectionExpressionOperation |
Represents a collection expression. Current usage:
|
ICompoundAssignmentOperation |
Represents a compound assignment that mutates the target with the result of a binary operation. Current usage:
|
IConditionalAccessInstanceOperation |
Represents the value of a conditionally-accessed operation within WhenNotNull.
For a conditional access operation of the form Current usage:
|
IConditionalAccessOperation |
Represents a conditionally accessed operation. Note that IConditionalAccessInstanceOperation is used to refer to the value of Operation within WhenNotNull. Current usage:
|
IConditionalOperation |
Represents a conditional operation with:
Current usage:
|
IConstantPatternOperation |
Represents a pattern with a constant value. Current usage:
|
IConstructorBodyOperation |
Represents a constructor method body operation. Current usage:
|
IConversionOperation |
Represents a type conversion. Current usage:
|
IDeclarationExpressionOperation |
Represents a declaration expression operation. Unlike a regular variable declaration IVariableDeclaratorOperation and IVariableDeclarationOperation, this operation represents an "expression" declaring a variable. Current usage:
|
IDeclarationPatternOperation |
Represents a pattern that declares a symbol. Current usage:
|
IDeconstructionAssignmentOperation |
Represents a assignment with a deconstruction. Current usage:
|
IDefaultCaseClauseOperation |
Represents a default case clause. Current usage:
|
IDefaultValueOperation |
Represents a default value operation. Current usage:
|
IDelegateCreationOperation |
Represents a delegate creation. This is created whenever a new delegate is created. Current usage:
|
IDiscardOperation |
Represents a discard operation. Current usage:
|
IDiscardPatternOperation |
Represents a discard pattern. Current usage:
|
IDynamicIndexerAccessOperation |
Represents an indexer access that is dynamically bound. Current usage:
|
IDynamicInvocationOperation |
Represents a invocation that is dynamically bound. Current usage:
|
IDynamicMemberReferenceOperation |
Represents a reference to a member of a class, struct, or module that is dynamically bound. Current usage:
|
IDynamicObjectCreationOperation |
Represents an object creation with a dynamically bound constructor. Current usage:
|
IEmptyOperation |
Represents an empty or no-op operation. Current usage:
|
IEndOperation |
Represents an operation that stops the execution of code abruptly. Current usage:
|
IEventAssignmentOperation |
Represents a binding of an event. Current usage:
|
IEventReferenceOperation |
Represents a reference to an event. Current usage:
|
IExpressionStatementOperation |
Represents an operation that drops the resulting value and the type of the underlying wrapped Operation. Current usage:
|
IFieldInitializerOperation |
Represents an initialization of a field. Current usage:
|
IFieldReferenceOperation |
Represents a reference to a field. Current usage:
|
IForEachLoopOperation |
Represents a for each loop. Current usage:
|
IForLoopOperation |
Represents a for loop. Current usage:
|
IForToLoopOperation |
Represents a for to loop with loop control variable and initial, limit and step values for the control variable. Current usage:
|
IFunctionPointerInvocationOperation |
Represents an invocation of a function pointer. |
IImplicitIndexerReferenceOperation |
Represents a reference to an implicit System.Index or System.Range indexer over a non-array type. Current usage:
|
IIncrementOrDecrementOperation |
Represents an Increment or Decrement operation. Note that this operation is different from an IUnaryOperation as it mutates the Target, while unary operator expression does not mutate it's operand. Current usage:
|
IInlineArrayAccessOperation |
Represents an element reference or a slice operation over an inline array type. Current usage:
|
IInstanceReferenceOperation |
Represents an implicit/explicit reference to an instance. Current usage:
|
IInterpolatedStringAdditionOperation |
Represents an addition of multiple interpolated string literals being converted to an interpolated string handler type. |
IInterpolatedStringAppendOperation |
Represents a call to either AppendLiteral or AppendFormatted as part of an interpolated string handler conversion. |
IInterpolatedStringContentOperation |
Represents a constituent part of an interpolated string. Current usage:
|
IInterpolatedStringHandlerArgumentPlaceholderOperation |
Represents an argument from the method call, indexer access, or constructor invocation that is creating the containing IInterpolatedStringHandlerCreationOperation |
IInterpolatedStringHandlerCreationOperation |
Represents an interpolated string converted to a custom interpolated string handler type. |
IInterpolatedStringOperation |
Represents an interpolated string. Current usage: (1) C# interpolated string expression. (2) VB interpolated string expression. |
IInterpolatedStringTextOperation |
Represents a constituent string literal part of an interpolated string operation. Current usage:
|
IInterpolationOperation |
Represents a constituent interpolation part of an interpolated string operation. Current usage:
|
IInvalidOperation |
Represents an invalid operation with one or more child operations. Current usage:
|
IInvocationOperation |
Represents an invocation of a method. Current usage:
|
IIsPatternOperation |
Represents an operation that tests if a value matches a specific pattern. Current usage:
|
IIsTypeOperation |
Represents an operation that tests if a value is of a specific type. Current usage:
|
ILabeledOperation |
Represents an operation with a label. Current usage:
|
IListPatternOperation |
Represents a C# list pattern. |
ILiteralOperation |
Represents a textual literal numeric, string, etc. Current usage:
|
ILocalFunctionOperation |
Represents a local function defined within a method. Current usage:
|
ILocalReferenceOperation |
Represents a reference to a declared local variable. Current usage:
|
ILockOperation |
Represents a Body of operations that are executed while holding a lock onto the LockedValue. Current usage:
|
ILoopOperation |
Represents a loop operation. Current usage:
|
IMemberInitializerOperation |
Represents an initialization of member within an object initializer with a nested object or collection initializer. Current usage:
|
IMemberReferenceOperation |
Represents a reference to a member of a class, struct, or interface. Current usage:
|
IMethodBodyBaseOperation |
Represents a method body operation. Current usage:
|
IMethodBodyOperation |
Represents a method body operation. Current usage:
|
IMethodReferenceOperation |
Represents a reference to a method other than as the target of an invocation. Current usage:
|
INameOfOperation |
Represents an operation that gets a string value for the Argument name. Current usage:
|
INegatedPatternOperation |
Represents a negated pattern. Current usage:
|
IObjectCreationOperation |
Represents creation of an object instance. Current usage:
|
IObjectOrCollectionInitializerOperation |
Represents an initialization for an object or collection creation. Current usage:
|
IOmittedArgumentOperation |
Represents an argument value that has been omitted in an invocation. Current usage:
|
IParameterInitializerOperation |
Represents an initialization of a parameter at the point of declaration. Current usage:
|
IParameterReferenceOperation |
Represents a reference to a parameter. Current usage:
|
IParenthesizedOperation |
Represents a parenthesized operation. Current usage:
|
IPatternCaseClauseOperation |
Represents a case clause with a pattern and an optional guard operation. Current usage: (1) C# pattern case clause. |
IPatternOperation |
Represents a pattern matching operation. Current usage:
|
IPropertyInitializerOperation |
Represents an initialization of a property. Current usage:
|
IPropertyReferenceOperation |
Represents a reference to a property. Current usage:
|
IPropertySubpatternOperation |
Represents an element of a property subpattern, which identifies a member to be matched and the pattern to match it against. |
IRaiseEventOperation |
Represents an operation for raising an event. Current usage:
|
IRangeCaseClauseOperation |
Represents a case clause with range of values for comparison. Current usage:
|
IRangeOperation |
Represents a range operation. Current usage:
|
IRecursivePatternOperation |
Represents a C# recursive pattern. |
IReDimClauseOperation |
Represents an individual clause of an IReDimOperation to re-allocate storage space for a single array variable. Current usage:
|
IReDimOperation |
Represents the ReDim operation to re-allocate storage space for array variables. Current usage:
|
IRelationalCaseClauseOperation |
Represents a case clause with custom relational operator for comparison. Current usage:
|
IRelationalPatternOperation |
Represents a pattern comparing the input with a constant value using a relational operator. Current usage:
|
IReturnOperation |
Represents a return from the method with an optional return value. Current usage:
|
ISimpleAssignmentOperation |
Represents a simple assignment operation. Current usage:
|
ISingleValueCaseClauseOperation |
Represents a case clause with a single value for comparison. Current usage:
|
ISizeOfOperation |
Represents an operation to compute the size of a given type. Current usage:
|
ISlicePatternOperation |
Represents a C# slice pattern. |
ISpreadOperation |
Represents a collection expression spread element. Current usage:
|
IStopOperation |
Represents an operation to stop or suspend execution of code. Current usage:
|
ISwitchCaseOperation |
Represents a switch case section with one or more case clauses to match and one or more operations to execute within the section. Current usage:
|
ISwitchExpressionArmOperation |
Represents one arm of a switch expression. |
ISwitchExpressionOperation |
Represents a switch expression. Current usage:
|
ISwitchOperation |
Represents a switch operation with a value to be switched upon and switch cases. Current usage:
|
ISymbolInitializerOperation |
Represents an initializer for a field, property, parameter or a local variable declaration. Current usage:
|
IThrowOperation |
Represents an operation to throw an exception. Current usage:
|
ITranslatedQueryOperation |
Represents an unrolled/lowered query operation. For example, for a C# query expression "from x in set where x.Name != null select x.Name", the Operation tree has the following shape: ITranslatedQueryExpression IInvocationExpression ('Select' invocation for "select x.Name") IInvocationExpression ('Where' invocation for "where x.Name != null") IInvocationExpression ('From' invocation for "from x in set") Current usage:
|
ITryOperation |
Represents a try operation for exception handling code with a body, catch clauses and a finally handler. Current usage:
|
ITupleBinaryOperation |
Represents a comparison of two operands that returns a bool type. Current usage:
|
ITupleOperation |
Represents a tuple with one or more elements. Current usage:
|
ITypeOfOperation |
Represents an operation that gets Type for the given TypeOperand. Current usage:
|
ITypeParameterObjectCreationOperation |
Represents a creation of a type parameter object, i.e. new T(), where T is a type parameter with new constraint. Current usage:
|
ITypePatternOperation |
Represents a pattern comparing the input with a given type. Current usage:
|
IUnaryOperation |
Represents an operation with one operand and a unary operator. Current usage:
|
IUsingDeclarationOperation |
Represents using variable declaration, with scope spanning across the parent IBlockOperation. Current Usage:
|
IUsingOperation |
Represents a Body of operations that are executed while using disposable Resources. Current usage:
|
IUtf8StringOperation |
Represents a UTF-8 encoded byte representation of a string. Current usage:
|
IVariableDeclarationGroupOperation |
Represents a variable declaration statement. Current Usage:
|
IVariableDeclarationOperation |
Represents a declarator that declares multiple individual variables. Current Usage:
|
IVariableDeclaratorOperation |
Represents a single variable declarator and initializer. Current Usage:
|
IVariableInitializerOperation |
Represents an initialization of a local variable. Current usage:
|
IWhileLoopOperation |
Represents a while or do while loop. Current usage:
|
IWithOperation |
Represents cloning of an object instance. Current usage:
|
Enums
ArgumentKind |
Kinds of arguments. |
BinaryOperatorKind |
Kind of binary operator. |
BranchKind |
Kind of the branch for an IBranchOperation |
CaseKind |
Kinds of cases. |
InstanceReferenceKind |
Kind of reference for an IInstanceReferenceOperation. |
InterpolatedStringArgumentPlaceholderKind |
Kind of placeholder for an IInterpolatedStringHandlerArgumentPlaceholderOperation. |
LoopKind |
Kinds of loop operations. |
UnaryOperatorKind |
Kind of unary operator |
.NET