Implemented interface member:
property
SpeculativeSemanticModel
Microsoft.CodeAnalysis.Shared.Utilities.ISpeculationAnalyzer.SpeculativeSemanticModel
61 references to SpeculativeSemanticModel
Microsoft.CodeAnalysis.CodeStyle (26)
AbstractSpeculationAnalyzer.cs (26)
222
var newTypeInfo = this.
SpeculativeSemanticModel
.GetTypeInfo(newExpression);
240
var newTypeInfo = this.
SpeculativeSemanticModel
.GetTypeInfo(newExpression);
252
var newTypeInfo = this.
SpeculativeSemanticModel
.GetTypeInfo(newExpression);
263
return ConversionsAreCompatible(this.OriginalSemanticModel, originalExpression, this.
SpeculativeSemanticModel
, newExpression);
289
var newSymbolInfo = this.
SpeculativeSemanticModel
.GetSymbolInfo(newNode);
478
if (this.
SpeculativeSemanticModel
== null)
520
if (this.
SpeculativeSemanticModel
== null)
627
var replacedIsStaticAccess = IsStaticAccess(this.
SpeculativeSemanticModel
.GetSymbolInfo(newExpression, CancellationToken).Symbol);
684
var replacedExpressionSymbol = this.
SpeculativeSemanticModel
.GetSymbolInfo(currentReplacedNode).Symbol;
689
var previousReplacedType = this.
SpeculativeSemanticModel
.GetTypeInfo(previousReplacedNode).Type;
715
var newAttributeSym = this.
SpeculativeSemanticModel
.GetSymbolInfo(newAttribute).Symbol;
736
var newLocal = (ILocalSymbol)this.
SpeculativeSemanticModel
.GetRequiredDeclaredSymbol(newForEachStatement, _cancellationToken);
744
GetForEachSymbols(this.
SpeculativeSemanticModel
, newForEachStatement, out var newGetEnumerator, out var newElementType);
749
!ForEachConversionsAreCompatible(this.OriginalSemanticModel, forEachStatement, this.
SpeculativeSemanticModel
, newForEachStatement) ||
780
var expressionType = this.
SpeculativeSemanticModel
.GetTypeInfo(newForEachStatementExpression, _cancellationToken).ConvertedType;
807
var newThrowExpressionType = this.
SpeculativeSemanticModel
.GetTypeInfo(newThrowExpression).Type;
811
newThrowExpressionType.IsOrDerivesFromExceptionType(this.
SpeculativeSemanticModel
.Compilation);
823
newSymbol = this.
SpeculativeSemanticModel
.GetSymbolInfo(newType, _cancellationToken).Symbol;
857
var newSymbolInfo = this.
SpeculativeSemanticModel
.GetSymbolInfo(node: newExpression);
869
IsReceiverNonUniquePossibleValueTypeParam(newExpression, this.
SpeculativeSemanticModel
))
894
symbol, newSymbol, expression, newExpression, this.
SpeculativeSemanticModel
))
927
var newTargetType = this.
SpeculativeSemanticModel
.GetTypeInfo(newLeft).Type;
1177
this.
SpeculativeSemanticModel
.GetTypeInfo(newExpression).Type != null)
1180
newConversion = ClassifyConversion(this.
SpeculativeSemanticModel
, newExpression, newTargetType);
1190
var newConvertedTypeSymbol = this.
SpeculativeSemanticModel
.GetTypeInfo(newExpression).ConvertedType;
1193
newConversion = ClassifyConversion(this.
SpeculativeSemanticModel
, newConvertedTypeSymbol, newTargetType);
Microsoft.CodeAnalysis.CSharp.CodeStyle (17)
CastSimplifier.cs (1)
1345
var rewrittenSemanticModel = analyzer.
SpeculativeSemanticModel
;
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
185
var rewrittenSemanticModel = analyzer.
SpeculativeSemanticModel
;
SpeculationAnalyzer.cs (15)
255
var replacedParamType = this.
SpeculativeSemanticModel
.GetDeclaredSymbol(replacedParam).Type;
371
var newExpressionTypeInfo = this.
SpeculativeSemanticModel
.GetTypeInfo(newExpression, this.CancellationToken);
384
this.
SpeculativeSemanticModel
.GetConversion(newExpression, this.CancellationToken).IsConditionalExpression)
397
var newConversion = this.
SpeculativeSemanticModel
.ClassifyConversion(newOtherPartOfConditional, newExpressionType);
423
var newCaseType = this.
SpeculativeSemanticModel
.GetTypeInfo(previousReplacedNode, this.CancellationToken).Type;
432
var newConversion = this.
SpeculativeSemanticModel
.ClassifyConversion(newSwitchStatement.Expression, newCaseType);
479
var replacedExprType = this.
SpeculativeSemanticModel
.GetTypeInfo(replacedSwitchExpression.GoverningExpression, CancellationToken);
535
var newExpressionConvertedTypeConversion = this.
SpeculativeSemanticModel
.ClassifyConversion(previousReplacedNode, newExpressionTypeInfo.ConvertedType);
549
var newExpressionType = this.
SpeculativeSemanticModel
.GetTypeInfo(replacedAnonymousObjectMemberDeclarator.Expression, this.CancellationToken).Type;
556
var newSymbol = this.
SpeculativeSemanticModel
.GetSymbolInfo(newCtorInitializer, CancellationToken).Symbol;
563
var newSymbol = this.
SpeculativeSemanticModel
.GetCollectionInitializerSymbolInfo(newInitializer, CancellationToken).Symbol;
686
var newConvertedType = this.
SpeculativeSemanticModel
.GetTypeInfo(newIsOrAsExpression.Right).Type;
694
var newConversion = this.
SpeculativeSemanticModel
.ClassifyConversion(newIsOrAsExpression.Left, newConvertedType, isExplicitInSource: true);
719
var newClauseInfo = this.
SpeculativeSemanticModel
.GetQueryClauseInfo(newClause, this.CancellationToken);
732
this.
SpeculativeSemanticModel
.GetConversion(newExpression).IsConditionalExpression)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
ExpressionSyntaxExtensions.cs (1)
132
var speculativeSemanticModel = specAnalyzer.
SpeculativeSemanticModel
;
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (15)
CastAnalyzer.vb (5)
127
Dim typeInfo = speculationAnalyzer.
SpeculativeSemanticModel
.GetTypeInfo(innerSpeculatedExpression, cancellationToken)
128
Dim conv = speculationAnalyzer.
SpeculativeSemanticModel
.GetConversion(innerSpeculatedExpression, cancellationToken)
136
typeInfo = speculationAnalyzer.
SpeculativeSemanticModel
.GetTypeInfo(speculatedExpression, cancellationToken)
137
speculatedExpressionOuterType = GetOuterCastType(speculatedExpression, typeInfo, speculationAnalyzer.
SpeculativeSemanticModel
, cancellationToken)
142
Return speculationAnalyzer.
SpeculativeSemanticModel
.ClassifyConversion(speculatedExpression, speculatedExpressionOuterType)
SpeculationAnalyzer.vb (10)
180
Dim newSymbolInfo = Me.
SpeculativeSemanticModel
.GetCollectionRangeVariableSymbolInfo(newNode)
191
Dim newSymbolInfo = Me.
SpeculativeSemanticModel
.GetAggregateClauseSymbolInfo(newNode)
202
Dim newSymbolInfo = Me.
SpeculativeSemanticModel
.GetSymbolInfo(newNode)
213
Dim newSymbolInfo = Me.
SpeculativeSemanticModel
.GetSymbolInfo(newNode)
224
Dim newSymbolInfo = Me.
SpeculativeSemanticModel
.GetSymbolInfo(newNode)
313
Dim replacedParamType = Me.
SpeculativeSemanticModel
.GetDeclaredSymbol(replacedParam).Type
434
Dim replacedTypeInfo = Me.
SpeculativeSemanticModel
.GetTypeInfo(replacedWithStatement.Expression)
440
Dim newSymbol = Me.
SpeculativeSemanticModel
.GetCollectionInitializerSymbolInfo(newInitializer, CancellationToken).Symbol
562
Me.
SpeculativeSemanticModel
.GetConstantValue(newExpression).HasValue Then
563
Dim newExpressionType = Me.
SpeculativeSemanticModel
.GetTypeInfo(newExpression).ConvertedType
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
ExpressionSyntaxExtensions.vb (1)
155
Dim speculativeSemanticModel = specAnalyzer.
SpeculativeSemanticModel
ParameterSyntaxExtensions.vb (1)
26
Dim newSymbol = speculationAnalyzer.
SpeculativeSemanticModel
.GetDeclaredSymbol(newParameterSyntax, cancellationToken)