Implemented interface member:
property
SpeculativeSemanticModel
Microsoft.CodeAnalysis.Shared.Utilities.ISpeculationAnalyzer.SpeculativeSemanticModel
49 references to SpeculativeSemanticModel
Microsoft.CodeAnalysis.CodeStyle (25)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (25)
267
var newTypeInfo = this.
SpeculativeSemanticModel
.GetTypeInfo(newExpression);
291
var newTypeInfo = this.
SpeculativeSemanticModel
.GetTypeInfo(newExpression);
302
return ConversionsAreCompatible(this.OriginalSemanticModel, originalExpression, this.
SpeculativeSemanticModel
, newExpression);
325
var newSymbolInfo = this.
SpeculativeSemanticModel
.GetSymbolInfo(newNode);
521
if (this.
SpeculativeSemanticModel
== null)
562
if (this.
SpeculativeSemanticModel
== null)
633
var newTypeInfo = this.
SpeculativeSemanticModel
.GetTypeInfo(newExpression);
679
var replacedIsStaticAccess = IsStaticAccess(this.
SpeculativeSemanticModel
.GetSymbolInfo(newExpression, CancellationToken).Symbol);
736
var replacedExpressionSymbol = this.
SpeculativeSemanticModel
.GetSymbolInfo(currentReplacedNode).Symbol;
741
var previousReplacedType = this.
SpeculativeSemanticModel
.GetTypeInfo(previousReplacedNode).Type;
767
var newAttributeSym = this.
SpeculativeSemanticModel
.GetSymbolInfo(newAttribute).Symbol;
781
GetForEachSymbols(this.
SpeculativeSemanticModel
, newForEachStatement, out var newGetEnumerator, out var newElementType, out var newLocalVariables);
799
!ForEachConversionsAreCompatible(this.OriginalSemanticModel, forEachStatement, this.
SpeculativeSemanticModel
, newForEachStatement) ||
826
var expressionType = this.
SpeculativeSemanticModel
.GetTypeInfo(newForEachStatementExpression, CancellationToken).ConvertedType;
851
var newThrowExpressionType = this.
SpeculativeSemanticModel
.GetTypeInfo(newThrowExpression).Type;
855
newThrowExpressionType.IsOrDerivesFromExceptionType(this.
SpeculativeSemanticModel
.Compilation);
865
newSymbol = this.
SpeculativeSemanticModel
.GetSymbolInfo(newType, CancellationToken).Symbol;
894
var newSymbolInfo = this.
SpeculativeSemanticModel
.GetSymbolInfo(node: newExpression);
906
IsReceiverNonUniquePossibleValueTypeParam(newExpression, this.
SpeculativeSemanticModel
))
931
symbol, newSymbol, expression, newExpression, this.
SpeculativeSemanticModel
))
964
var newTargetType = this.
SpeculativeSemanticModel
.GetTypeInfo(newLeft).Type;
1206
this.
SpeculativeSemanticModel
.GetTypeInfo(newExpression).Type != null)
1209
newConversion = ClassifyConversion(this.
SpeculativeSemanticModel
, newExpression, newTargetType);
1219
var newConvertedTypeSymbol = this.
SpeculativeSemanticModel
.GetTypeInfo(newExpression).ConvertedType;
1222
newConversion = ClassifyConversion(this.
SpeculativeSemanticModel
, newConvertedTypeSymbol, newTargetType);
Microsoft.CodeAnalysis.CSharp.CodeStyle (23)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
210
var rewrittenSemanticModel = analyzer.
SpeculativeSemanticModel
;
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)
1563
var rewrittenSemanticModel = analyzer.
SpeculativeSemanticModel
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (18)
268
var replacedParamType = this.
SpeculativeSemanticModel
.GetDeclaredSymbol(replacedParam).Type;
384
var newExpressionTypeInfo = this.
SpeculativeSemanticModel
.GetTypeInfo(newExpression, this.CancellationToken);
397
this.
SpeculativeSemanticModel
.GetConversion(newExpression, this.CancellationToken).IsConditionalExpression)
410
var newConversion = this.
SpeculativeSemanticModel
.ClassifyConversion(newOtherPartOfConditional, newExpressionType);
436
var newCaseType = this.
SpeculativeSemanticModel
.GetTypeInfo(previousReplacedNode, this.CancellationToken).Type;
445
var newConversion = this.
SpeculativeSemanticModel
.ClassifyConversion(newSwitchStatement.Expression, newCaseType);
492
var replacedExprType = this.
SpeculativeSemanticModel
.GetTypeInfo(replacedSwitchExpression.GoverningExpression, CancellationToken);
548
var newExpressionConvertedTypeConversion = this.
SpeculativeSemanticModel
.ClassifyConversion(previousReplacedNode, newExpressionTypeInfo.ConvertedType);
562
var newExpressionType = this.
SpeculativeSemanticModel
.GetTypeInfo(replacedAnonymousObjectMemberDeclarator.Expression, this.CancellationToken).Type;
569
var newSymbol = this.
SpeculativeSemanticModel
.GetSymbolInfo(newCtorInitializer, CancellationToken).Symbol;
576
var newSymbol = this.
SpeculativeSemanticModel
.GetCollectionInitializerSymbolInfo(newInitializer, CancellationToken).Symbol;
703
var newConvertedType = this.
SpeculativeSemanticModel
.GetTypeInfo(newIsOrAsExpression.Right).Type;
711
var newConversion = this.
SpeculativeSemanticModel
.ClassifyConversion(newIsOrAsExpression.Left, newConvertedType, isExplicitInSource: true);
736
var newClauseInfo = this.
SpeculativeSemanticModel
.GetQueryClauseInfo(newClause, this.CancellationToken);
775
this.
SpeculativeSemanticModel
.GetConversion(newExpression).IsConditionalExpression)
784
this.
SpeculativeSemanticModel
.GetConversion(newExpression).IsSwitchExpression &&
794
this.
SpeculativeSemanticModel
.GetConversion(newExpression).IsCollectionExpression)
803
this.
SpeculativeSemanticModel
.GetConversion(newExpression).IsTupleLiteralConversion &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
134
var speculativeSemanticModel = specAnalyzer.
SpeculativeSemanticModel
;