1 implementation of Operation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
4872public IOperation Operation { get; }
31 references to Operation
ILLink.RoslynAnalyzer (1)
DataFlow\LocalDataFlowVisitor.cs (1)
548 Visit (operation.Operation, state);
Microsoft.AspNetCore.App.Analyzers (2)
Authorization\AddAuthorizationBuilderAnalyzer.cs (1)
145if (operation is IExpressionStatementOperation { Operation: { } expressionStatementOperation })
RouteHandlers\DetectMisplacedLambdaAttribute.cs (1)
88if (expression.Operation is IInvocationOperation invocationExpression)
Microsoft.CodeAnalysis (5)
Generated\Operations.Generated.cs (1)
531/// Represents an operation that drops the resulting value and the type of the underlying wrapped <see cref="Operation" />.
Operations\ControlFlowGraphBuilder.cs (4)
3558IOperation? underlying = Visit(operation.Operation); 3562Debug.Assert(operation.Operation.Kind == OperationKind.ConditionalAccess || operation.Operation.Kind == OperationKind.CoalesceAssignment); 3565else if (operation.Operation.Kind == OperationKind.Throw)
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
200expressionStatement.Operation is not ISimpleAssignmentOperation simpleAssignment ||
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
170var value = expressionStatement.Operation;
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (1)
156exprStatement.Operation is ISimpleAssignmentOperation assignmentOp &&
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
184assignmentExpression = expressionStatement.Operation as IAssignmentOperation;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
421firstOp = expressionStatement.Operation;
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
123Operation: IDeconstructionAssignmentOperation 172expressionStatement.Operation is IAssignmentOperation assignment)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
151if (blockOperation is IBlockOperation { Operations: [IThrowOperation or IExpressionStatementOperation { Operation: IThrowOperation }] })
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
437Operation: ISimpleAssignmentOperation
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
151if (blockOperation is IBlockOperation { Operations: [IThrowOperation or IExpressionStatementOperation { Operation: IThrowOperation }] })
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
437Operation: ISimpleAssignmentOperation
Microsoft.CodeAnalysis.Features (4)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
200expressionStatement.Operation is not ISimpleAssignmentOperation simpleAssignment ||
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
170var value = expressionStatement.Operation;
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (1)
156exprStatement.Operation is ISimpleAssignmentOperation assignmentOp &&
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
184assignmentExpression = expressionStatement.Operation as IAssignmentOperation;
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\OperationTreeVerifier.cs (1)
795Visit(operation.Operation, "Expression");
Compilation\TestOperationVisitor.cs (1)
508Assert.Same(operation.Operation, operation.ChildOperations.Single());
Diagnostics\OperationTestAnalyzer.cs (3)
170if (setup.Kind == OperationKind.ExpressionStatement && ((IExpressionStatementOperation)setup).Operation.Kind == OperationKind.SimpleAssignment) 172ISimpleAssignmentOperation setupAssignment = (ISimpleAssignmentOperation)((IExpressionStatementOperation)setup).Operation; 187IOperation advanceExpression = ((IExpressionStatementOperation)advance).Operation;
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
421firstOp = expressionStatement.Operation;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (2)
123Operation: IDeconstructionAssignmentOperation 172expressionStatement.Operation is IAssignmentOperation assignment)