6 overrides of OriginalPositionForSpeculation
Microsoft.CodeAnalysis.CSharp (3)
Compilation\MemberSemanticModel.cs (1)
117public sealed override int OriginalPositionForSpeculation
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
121public override int OriginalPositionForSpeculation => _position;
Compilation\SyntaxTreeSemanticModel.cs (1)
584public override int OriginalPositionForSpeculation
Microsoft.CodeAnalysis.VisualBasic (3)
Binding\MemberSemanticModel.vb (1)
62Public NotOverridable Overrides ReadOnly Property OriginalPositionForSpeculation As Integer
Compilation\SpeculativeSemanticModelWithMemberModel.vb (1)
101Public Overrides ReadOnly Property OriginalPositionForSpeculation As Integer
Compilation\SyntaxTreeSemanticModel.vb (1)
1413Public Overrides ReadOnly Property OriginalPositionForSpeculation As Integer
30 references to OriginalPositionForSpeculation
Microsoft.CodeAnalysis.CSharp (2)
Compilation\MemberSemanticModel.cs (1)
1977boundRoot = NullableWalker.AnalyzeAndRewriteSpeculation(_containingPublicSemanticModel.OriginalPositionForSpeculation, boundRoot, binder, parentSnapshotManagerOpt, out var newSnapshots, ref remappedSymbols);
Compilation\MemberSemanticModel.SpeculativeMemberSemanticModel.cs (1)
62return ((SyntaxTreeSemanticModel)_containingPublicSemanticModel.ParentModel).IsNullableAnalysisEnabledAtSpeculativePosition(_containingPublicSemanticModel.OriginalPositionForSpeculation, Root);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
130position = semanticModel.OriginalPositionForSpeculation;
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)
119position = semanticModel.OriginalPositionForSpeculation;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2059var tokenInOriginalTree = originalSemanticModel.SyntaxTree.GetRoot(CancellationToken).FindToken(currentSemanticModel.OriginalPositionForSpeculation);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Compilation\SemanticModelAPITests.cs (8)
1416Assert.Equal(0, model.OriginalPositionForSpeculation); 1430Assert.Equal(position, speculativeModel.OriginalPositionForSpeculation); 1675Assert.Equal(0, model.OriginalPositionForSpeculation); 1689Assert.Equal(position, speculativeModel.OriginalPositionForSpeculation); 2022Assert.Equal(0, model.OriginalPositionForSpeculation); 2040Assert.Equal(position, speculativeModel.OriginalPositionForSpeculation); 2700Assert.Equal(0, model.OriginalPositionForSpeculation); 2711Assert.Equal(position, speculativeModel.OriginalPositionForSpeculation);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Simplification\Reducers\CSharpNullableAnnotationReducer.cs (1)
43context = semanticModel.ParentModel.GetNullableContext(semanticModel.OriginalPositionForSpeculation);
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
366token = originalSemanticMode.SyntaxTree.GetRoot(cancellationToken).FindToken(semanticModel.OriginalPositionForSpeculation);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
130position = semanticModel.OriginalPositionForSpeculation;
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)
119position = semanticModel.OriginalPositionForSpeculation;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2059var tokenInOriginalTree = originalSemanticModel.SyntaxTree.GetRoot(CancellationToken).FindToken(currentSemanticModel.OriginalPositionForSpeculation);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (1)
132position = model.OriginalPositionForSpeculation
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (1)
122position = semanticModel.OriginalPositionForSpeculation
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
787Dim tokenInOriginalTree = originalSemanticModel.SyntaxTree.GetRoot(CancellationToken).FindToken(currentSemanticModel.OriginalPositionForSpeculation)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Compilation\SemanticModelAPITests.vb (3)
612Assert.Equal(position, speculativeModel.OriginalPositionForSpeculation) 1717Assert.Equal(0, model.OriginalPositionForSpeculation) 1727Assert.Equal(position, speculativeModel.OriginalPositionForSpeculation)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
Simplification\VisualBasicSimplificationService.vb (1)
103position = originalSemanticModel.OriginalPositionForSpeculation
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (1)
132position = model.OriginalPositionForSpeculation
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (1)
122position = semanticModel.OriginalPositionForSpeculation
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
787Dim tokenInOriginalTree = originalSemanticModel.SyntaxTree.GetRoot(CancellationToken).FindToken(currentSemanticModel.OriginalPositionForSpeculation)