14 references to ReplacementChangesSemantics
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Semantics\SpeculationAnalyzerTests.cs (1)
525
=> new SpeculationAnalyzer((ExpressionSyntax)initialNode, (ExpressionSyntax)replacementNode, initialModel, CancellationToken.None).
ReplacementChangesSemantics
();
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
85
if (!speculationAnalyzer.
ReplacementChangesSemantics
())
DefaultExpressionSyntaxExtensions.cs (1)
91
return !speculationAnalyzer.
ReplacementChangesSemantics
();
Simplification\Reducers\CSharpEscapingReducer.cs (1)
117
if (speculationAnalyzer.
ReplacementChangesSemantics
())
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
61
return !speculationAnalyzer.
ReplacementChangesSemantics
();
Simplification\Simplifiers\ExpressionSimplifier.cs (2)
326
speculationAnalyzer.
ReplacementChangesSemantics
())
476
return speculationAnalyzer.
ReplacementChangesSemantics
();
Simplification\Simplifiers\NameSimplifier.cs (1)
598
if (speculationAnalyzer.
ReplacementChangesSemantics
())
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
Semantics\SpeculationAnalyzerTests.vb (1)
147
Return New SpeculationAnalyzer(DirectCast(initialNode, ExpressionSyntax), DirectCast(replacementNode, ExpressionSyntax), initialModel, CancellationToken.None).
ReplacementChangesSemantics
()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
CastAnalyzer.vb (1)
235
If speculationAnalyzer.
ReplacementChangesSemantics
() Then
ParameterSyntaxExtensions.vb (1)
31
Return Not speculationAnalyzer.
ReplacementChangesSemantics
()
Simplification\Simplifiers\ExpressionSimplifier.vb (2)
221
Return speculationAnalyzer.
ReplacementChangesSemantics
()
308
speculationAnalyzer.
ReplacementChangesSemantics
() Then
Simplification\Simplifiers\NameSimplifier.vb (1)
293
If speculationAnalyzer.
ReplacementChangesSemantics
() Then