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)
158if (speculationAnalyzer.ReplacementChangesSemantics())
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaHelpers.cs (1)
158if (speculationAnalyzer.ReplacementChangesSemantics())
src\Analyzers\CSharp\Analyzers\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitlyTypedLambdaExpressionDiagnosticAnalyzer.cs (1)
86if (analyzer.ReplacementChangesSemantics())
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Simplification\Reducers\CSharpEscapingReducer.cs (1)
97if (speculationAnalyzer.ReplacementChangesSemantics())
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
59return !speculationAnalyzer.ReplacementChangesSemantics();
Simplification\Simplifiers\ExpressionSimplifier.cs (2)
269return !speculationAnalyzer.ReplacementChangesSemantics(); 325speculationAnalyzer.ReplacementChangesSemantics())
Simplification\Simplifiers\NameSimplifier.cs (1)
617if (speculationAnalyzer.ReplacementChangesSemantics())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DefaultExpressionSyntaxExtensions.cs (1)
91return !speculationAnalyzer.ReplacementChangesSemantics();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
90if (!speculationAnalyzer.ReplacementChangesSemantics())