11 references to ReplacementChangesSemantics
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Semantics\SpeculationAnalyzerTests.cs (1)
496
=> new SpeculationAnalyzer((ExpressionSyntax)initialNode, (ExpressionSyntax)replacementNode, initialModel, CancellationToken.None).
ReplacementChangesSemantics
();
Microsoft.CodeAnalysis.CSharp.Features (3)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
158
if (speculationAnalyzer.
ReplacementChangesSemantics
())
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaHelpers.cs (1)
158
if (speculationAnalyzer.
ReplacementChangesSemantics
())
src\Analyzers\CSharp\Analyzers\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitlyTypedLambdaExpressionDiagnosticAnalyzer.cs (1)
86
if (analyzer.
ReplacementChangesSemantics
())
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Simplification\Reducers\CSharpEscapingReducer.cs (1)
97
if (speculationAnalyzer.
ReplacementChangesSemantics
())
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
59
return !speculationAnalyzer.
ReplacementChangesSemantics
();
Simplification\Simplifiers\ExpressionSimplifier.cs (2)
269
return !speculationAnalyzer.
ReplacementChangesSemantics
();
325
speculationAnalyzer.
ReplacementChangesSemantics
())
Simplification\Simplifiers\NameSimplifier.cs (1)
617
if (speculationAnalyzer.
ReplacementChangesSemantics
())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DefaultExpressionSyntaxExtensions.cs (1)
91
return !speculationAnalyzer.
ReplacementChangesSemantics
();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
90
if (!speculationAnalyzer.
ReplacementChangesSemantics
())