14 references to ReplacedExpression
Microsoft.CodeAnalysis.CSharp.Features (4)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
209
var rewrittenExpression = analyzer.
ReplacedExpression
;
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (2)
166
var conversion = speculationAnalyzer.SpeculativeSemanticModel.GetConversion(speculationAnalyzer.
ReplacedExpression
, cancellationToken);
180
var replacedTypeInfo = speculationAnalyzer.SpeculativeSemanticModel.GetTypeInfo(speculationAnalyzer.
ReplacedExpression
, cancellationToken);
src\Analyzers\CSharp\Analyzers\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitlyTypedLambdaExpressionDiagnosticAnalyzer.cs (1)
90
analyzer.SpeculativeSemanticModel.GetSymbolInfo(analyzer.
ReplacedExpression
, cancellationToken).Symbol is not IMethodSymbol implicitLambdaMethod)
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Simplification\CSharpSimplificationService.Expander.cs (1)
99
var speculatedExpression = speculativeAnalyzer.
ReplacedExpression
;
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
51
newParameterSyntax = (ParameterSyntax)speculationAnalyzer.
ReplacedExpression
.GetAnnotatedNodesAndTokens(annotation).First();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1562
var rewrittenExpression = analyzer.
ReplacedExpression
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
140
var speculatedCastExpression = (CastExpressionSyntax)specAnalyzer.
ReplacedExpression
;
Microsoft.CodeAnalysis.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (6)
170
SyntaxNode ISpeculationAnalyzer.ReplacedExpression =>
ReplacedExpression
;
499
/// in the original tree and simultaneously walking bottom up from <see cref="
ReplacedExpression
"/> up to <see cref="SemanticRootOfReplacedExpression"/>
507
var newType = (TTypeSyntax)this.
ReplacedExpression
;
513
currentReplacedNode: this.
ReplacedExpression
,
557
/// Checks whether the semantic symbols for the <see cref="OriginalExpression"/> and <see cref="
ReplacedExpression
"/> are non-null and compatible.
567
return SymbolsAreCompatible(this.OriginalExpression, this.
ReplacedExpression
, requireNonNullSymbols: true);