396 references to GetOperation
ConfigurationSchemaGenerator (1)
Microsoft.Analyzers.Extra (4)
Microsoft.AspNetCore.Analyzers (1)
Microsoft.AspNetCore.App.Analyzers (1)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (3)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.CodeAnalysis (5)
Microsoft.CodeAnalysis.CodeStyle (10)
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.CodeStyle (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (12)
87var castExpressionOperation = semanticModel.GetOperation(cast.Expression, cancellationToken);
196var originalOperation = originalSemanticModel.GetOperation(castNode, cancellationToken);
255var rewrittenOperation = rewrittenSemanticModel.GetOperation(rewrittenExpression.WalkDownParentheses(), cancellationToken);
756var rewrittenOperation = rewrittenSemanticModel.GetOperation(rewrittenBitwiseNotExpression, cancellationToken);
803if (originalSemanticModel.GetOperation(castExpression, cancellationToken) is not IConversionOperation conversionOperation)
844if (rewrittenSemanticModel.GetOperation(rewrittenConditionalExpression, cancellationToken) is not IConditionalOperation rewrittenConditionalOperation)
875var operation = semanticModel.GetOperation(parentBinary, cancellationToken);
1072var operation = semanticModel.GetOperation(expression.WalkDownParentheses(), cancellationToken);
1113if (originalSemanticModel.GetOperation(currentOld, cancellationToken) is not IInterpolatedStringOperation oldInterpolationOperation)
1116if (rewrittenSemanticModel.GetOperation(currentNew, cancellationToken) is not IInterpolatedStringOperation newInterpolationOperation)
1368var operation = semanticModel.GetOperation(expression, cancellationToken);
1409semanticModel.GetOperation(invocationExpression, cancellationToken) is IInvocationOperation invocationOperation)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (103)
Semantics\PatternMatchingTests5.cs (5)
429VerifyOperationTree(comp, model.GetOperation(isPattern), @"
566VerifyOperationTree(comp, model.GetOperation(isPattern), @"
797VerifyOperationTree(comp, model.GetOperation(isPattern), @"
843VerifyOperationTree(comp, model.GetOperation(isPattern), @"
897VerifyOperationTree(comp, model.GetOperation(isPattern), @"
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (7)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (33)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (143)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
Microsoft.CodeAnalysis.CSharp.Workspaces (13)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (12)
87var castExpressionOperation = semanticModel.GetOperation(cast.Expression, cancellationToken);
196var originalOperation = originalSemanticModel.GetOperation(castNode, cancellationToken);
255var rewrittenOperation = rewrittenSemanticModel.GetOperation(rewrittenExpression.WalkDownParentheses(), cancellationToken);
756var rewrittenOperation = rewrittenSemanticModel.GetOperation(rewrittenBitwiseNotExpression, cancellationToken);
803if (originalSemanticModel.GetOperation(castExpression, cancellationToken) is not IConversionOperation conversionOperation)
844if (rewrittenSemanticModel.GetOperation(rewrittenConditionalExpression, cancellationToken) is not IConditionalOperation rewrittenConditionalOperation)
875var operation = semanticModel.GetOperation(parentBinary, cancellationToken);
1072var operation = semanticModel.GetOperation(expression.WalkDownParentheses(), cancellationToken);
1113if (originalSemanticModel.GetOperation(currentOld, cancellationToken) is not IInterpolatedStringOperation oldInterpolationOperation)
1116if (rewrittenSemanticModel.GetOperation(currentNew, cancellationToken) is not IInterpolatedStringOperation newInterpolationOperation)
1368var operation = semanticModel.GetOperation(expression, cancellationToken);
1409semanticModel.GetOperation(invocationExpression, cancellationToken) is IInvocationOperation invocationOperation)
Microsoft.CodeAnalysis.Features (10)
Microsoft.CodeAnalysis.Test.Utilities (8)
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces (8)
Microsoft.VisualStudio.LanguageServices (1)
Mvc.Api.Analyzers.Test (4)
System.Text.RegularExpressions.Generator (1)