2 overrides of GetNullableContext
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpSemanticModel.cs (1)
5439public sealed override NullableContext GetNullableContext(int position)
Microsoft.CodeAnalysis.VisualBasic (1)
Compilation\SemanticModel.vb (1)
3573Public NotOverridable Overrides Function GetNullableContext(position As Integer) As NullableContext
9 references to GetNullableContext
Microsoft.CodeAnalysis.CSharp.Features (1)
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
98var nullableContext = semanticModel.GetNullableContext(node.SpanStart);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\NullableContextTests.cs (5)
70Assert.Equal(expectedContext, model.GetNullableContext(classDeclPosition)); 74Assert.Equal(restoredContext, model.GetNullableContext(0)); 75Assert.Equal(restoredContext, model.GetNullableContext(methodDeclPosition)); 105Assert.Equal(NullableContext.Enabled, model1.GetNullableContext(classDecl1)); 106Assert.Equal(NullableContext.Enabled | NullableContext.ContextInherited, model2.GetNullableContext(classDecl2));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Simplification\Reducers\CSharpNullableAnnotationReducer.cs (2)
37var context = semanticModel.GetNullableContext(node.Span.End); 43context = semanticModel.ParentModel.GetNullableContext(semanticModel.OriginalPositionForSpeculation);
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingSourceGenerator.cs (1)
130 NullableContext nullableContext = context.SemanticModel.GetNullableContext(context.Node.Span.Start);