6 overrides of IsSpeculativeSemanticModel
Microsoft.CodeAnalysis.CSharp (3)
Compilation\MemberSemanticModel.cs (1)
92public sealed override bool IsSpeculativeSemanticModel
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
119public override bool IsSpeculativeSemanticModel => true;
Compilation\SyntaxTreeSemanticModel.cs (1)
579public override bool IsSpeculativeSemanticModel
Microsoft.CodeAnalysis.VisualBasic (3)
Binding\MemberSemanticModel.vb (1)
56Public NotOverridable Overrides ReadOnly Property IsSpeculativeSemanticModel As Boolean
Compilation\SpeculativeSemanticModelWithMemberModel.vb (1)
95Public Overrides ReadOnly Property IsSpeculativeSemanticModel As Boolean
Compilation\SyntaxTreeSemanticModel.vb (1)
1407Public Overrides ReadOnly Property IsSpeculativeSemanticModel As Boolean
69 references to IsSpeculativeSemanticModel
Microsoft.CodeAnalysis (1)
Operations\OperationExtensions.cs (1)
56if (model.IsSpeculativeSemanticModel)
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (2)
104if (!semanticModel.IsSpeculativeSemanticModel) 110Contract.ThrowIfTrue(semanticModel.ParentModel.IsSpeculativeSemanticModel);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
74Debug.Assert(!semanticModel.IsSpeculativeSemanticModel);
Microsoft.CodeAnalysis.CSharp (13)
Compilation\CSharpSemanticModel.cs (11)
1381if (this.IsSpeculativeSemanticModel) 2507/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true. 2534/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true. 2563/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true. 2589/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true. 2616/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true. 2643/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true. 2673/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true. 2702/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true. 2732/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true. 2758/// <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="SemanticModel.IsSpeculativeSemanticModel"/> is true.
Compilation\MemberSemanticModel.cs (2)
54Debug.Assert(containingPublicSemanticModel.IsSpeculativeSemanticModel == (containingPublicSemanticModel is SpeculativeSemanticModelWithMemberModel)); 96return _containingPublicSemanticModel.IsSpeculativeSemanticModel;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
125if (semanticModel.IsSpeculativeSemanticModel) 129Debug.Assert(!semanticModel.ParentModel.IsSpeculativeSemanticModel);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2012if (semanticModel.IsSpeculativeSemanticModel && position < semanticModel.OriginalPositionForSpeculation)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
117if (semanticModel.IsSpeculativeSemanticModel)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2057currentSemanticModel.IsSpeculativeSemanticModel)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Semantics\OutVarTests.cs (2)
1102if (model.IsSpeculativeSemanticModel) 32789if (model.IsSpeculativeSemanticModel)
Semantics\PatternMatchingTestBase.cs (1)
325if (model.IsSpeculativeSemanticModel)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Compilation\SemanticModelAPITests.cs (8)
1414Assert.False(model.IsSpeculativeSemanticModel); 1428Assert.True(speculativeModel.IsSpeculativeSemanticModel); 1673Assert.False(model.IsSpeculativeSemanticModel); 1687Assert.True(speculativeModel.IsSpeculativeSemanticModel); 2020Assert.False(model.IsSpeculativeSemanticModel); 2038Assert.True(speculativeModel.IsSpeculativeSemanticModel); 2698Assert.False(model.IsSpeculativeSemanticModel); 2708Assert.True(speculativeModel.IsSpeculativeSemanticModel);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Simplification\Reducers\CSharpNullableAnnotationReducer.cs (1)
40if (semanticModel.IsSpeculativeSemanticModel && context.AnnotationsInherited())
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
362if (!semanticModel.IsSpeculativeSemanticModel)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
125if (semanticModel.IsSpeculativeSemanticModel) 129Debug.Assert(!semanticModel.ParentModel.IsSpeculativeSemanticModel);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2012if (semanticModel.IsSpeculativeSemanticModel && position < semanticModel.OriginalPositionForSpeculation)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
117if (semanticModel.IsSpeculativeSemanticModel)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2057currentSemanticModel.IsSpeculativeSemanticModel)
Microsoft.CodeAnalysis.Features (1)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
241if (semanticModel.IsSpeculativeSemanticModel)
Microsoft.CodeAnalysis.VisualBasic (10)
Binding\MemberSemanticModel.vb (1)
58Return _containingPublicSemanticModel.IsSpeculativeSemanticModel
Compilation\SemanticModel.vb (7)
596If Me.IsSpeculativeSemanticModel Then 2152''' <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="IsSpeculativeSemanticModel"/> is True. 2182''' <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="IsSpeculativeSemanticModel"/> is True. 2211''' <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="IsSpeculativeSemanticModel"/> is True. 2241''' <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="IsSpeculativeSemanticModel"/> is True. 2270''' <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="IsSpeculativeSemanticModel"/> is True. 2302''' <exception cref="InvalidOperationException">Throws this exception if this model is a speculative semantic model, i.e. <see cref="IsSpeculativeSemanticModel"/> is True.
SymbolDisplay\SymbolDisplayVisitor_Minimal.vb (2)
180If Not semanticModel.IsSpeculativeSemanticModel Then 185Debug.Assert(Not semanticModel.ParentModel.IsSpeculativeSemanticModel)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (2)
130If model.IsSpeculativeSemanticModel Then 135Contract.ThrowIfTrue(model.IsSpeculativeSemanticModel)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (2)
118If semanticModel.IsSpeculativeSemanticModel Then 121Debug.Assert(Not semanticModel.ParentModel.IsSpeculativeSemanticModel)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
786If currentSemanticModel.IsSpeculativeSemanticModel Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Compilation\SemanticModelAPITests.vb (3)
610Assert.True(speculativeModel.IsSpeculativeSemanticModel) 1715Assert.False(model.IsSpeculativeSemanticModel) 1725Assert.True(speculativeModel.IsSpeculativeSemanticModel)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (7)
Simplification\VisualBasicSimplificationService.vb (2)
99If originalSemanticModel.IsSpeculativeSemanticModel Then 102Debug.Assert(Not originalSemanticModel.ParentModel.IsSpeculativeSemanticModel)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (2)
130If model.IsSpeculativeSemanticModel Then 135Contract.ThrowIfTrue(model.IsSpeculativeSemanticModel)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (2)
118If semanticModel.IsSpeculativeSemanticModel Then 121Debug.Assert(Not semanticModel.ParentModel.IsSpeculativeSemanticModel)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
786If currentSemanticModel.IsSpeculativeSemanticModel Then
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (2)
104if (!semanticModel.IsSpeculativeSemanticModel) 110Contract.ThrowIfTrue(semanticModel.ParentModel.IsSpeculativeSemanticModel);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
74Debug.Assert(!semanticModel.IsSpeculativeSemanticModel);