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