10 instantiations of SpeculationAnalyzer
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Simplification\CSharpSimplificationService.Expander.cs (1)
93=> new(expression, newExpression, _semanticModel, _cancellationToken);
Simplification\Reducers\CSharpEscapingReducer.cs (1)
115var speculationAnalyzer = new SpeculationAnalyzer(expression, newExpression, semanticModel, cancellationToken);
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
50var speculationAnalyzer = new SpeculationAnalyzer(oldLambda, newLambda, semanticModel, cancellationToken);
Simplification\Simplifiers\ExpressionSimplifier.cs (2)
268var speculationAnalyzer = new SpeculationAnalyzer(expression, replacementNode, semanticModel, cancellationToken); 323var speculationAnalyzer = new SpeculationAnalyzer(memberAccess, memberAccess.Name, semanticModel, cancellationToken);
Simplification\Simplifiers\MemberAccessExpressionSimplifier.cs (1)
33return new SpeculationAnalyzer(memberAccessExpression, memberAccessExpression.Name, semanticModel, cancellationToken);
Simplification\Simplifiers\NameSimplifier.cs (1)
617var speculationAnalyzer = new SpeculationAnalyzer(name, reducedName, semanticModel, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DefaultExpressionSyntaxExtensions.cs (1)
85var speculationAnalyzer = new SpeculationAnalyzer(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1498var analyzer = new SpeculationAnalyzer(castNode, castedExpressionNode, originalSemanticModel, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
133var specAnalyzer = new SpeculationAnalyzer(expression, castExpression, semanticModel, cancellationToken);
16 references to SpeculationAnalyzer
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
Rename\CSharpRenameRewriterLanguageService.cs (2)
1254var nodeToSpeculate = node.GetAncestorsOrThis(n => SpeculationAnalyzer.CanSpeculateOnNode(n)).LastOrDefault(); 1281return SpeculationAnalyzer.CreateSpeculativeSemanticModelForNode(nodeToSpeculate, originalSemanticModel, position, isInNamespaceOrTypeContext);
Simplification\CSharpSimplificationService.cs (2)
174Contract.ThrowIfFalse(SpeculationAnalyzer.CanSpeculateOnNode(nodeToSpeculate)); 175return SpeculationAnalyzer.CreateSpeculativeSemanticModelForNode(originalNode, syntaxNodeToSpeculate, originalSemanticModel);
Simplification\CSharpSimplificationService.Expander.cs (2)
92private SpeculationAnalyzer GetSpeculationAnalyzer(ExpressionSyntax expression, ExpressionSyntax newExpression) 97var speculativeAnalyzer = GetSpeculationAnalyzer(expression, newExpression);
Simplification\CSharpSimplificationService.NodesAndTokensToReduceComputer.cs (1)
68if (!_insideSpeculatedNode && SpeculationAnalyzer.CanSpeculateOnNode(node))
Simplification\Reducers\CSharpEscapingReducer.cs (1)
115var speculationAnalyzer = new SpeculationAnalyzer(expression, newExpression, semanticModel, cancellationToken);
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
50var speculationAnalyzer = new SpeculationAnalyzer(oldLambda, newLambda, semanticModel, cancellationToken);
Simplification\Simplifiers\ExpressionSimplifier.cs (2)
268var speculationAnalyzer = new SpeculationAnalyzer(expression, replacementNode, semanticModel, cancellationToken); 323var speculationAnalyzer = new SpeculationAnalyzer(memberAccess, memberAccess.Name, semanticModel, cancellationToken);
Simplification\Simplifiers\NameSimplifier.cs (1)
617var speculationAnalyzer = new SpeculationAnalyzer(name, reducedName, semanticModel, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DefaultExpressionSyntaxExtensions.cs (1)
85var speculationAnalyzer = new SpeculationAnalyzer(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1498var analyzer = new SpeculationAnalyzer(castNode, castedExpressionNode, originalSemanticModel, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
133var specAnalyzer = new SpeculationAnalyzer(expression, castExpression, semanticModel, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
90var speculationAnalyzer = new SpeculationAnalyzer(declarationExpression,