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