12 references to ReplacedExpression
Microsoft.CodeAnalysis.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (6)
171
SyntaxNode ISpeculationAnalyzer.ReplacedExpression =>
ReplacedExpression
;
500
/// in the original tree and simultaneously walking bottom up from <see cref="
ReplacedExpression
"/> up to <see cref="SemanticRootOfReplacedExpression"/>
508
var newType = (TTypeSyntax)this.
ReplacedExpression
;
514
currentReplacedNode: this.
ReplacedExpression
,
558
/// Checks whether the semantic symbols for the <see cref="OriginalExpression"/> and <see cref="
ReplacedExpression
"/> are non-null and compatible.
568
return SymbolsAreCompatible(this.OriginalExpression, this.
ReplacedExpression
, requireNonNullSymbols: true);
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
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)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1562
var rewrittenExpression = analyzer.
ReplacedExpression
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
140
var speculatedCastExpression = (CastExpressionSyntax)specAnalyzer.
ReplacedExpression
;