17 instantiations of NullabilityInfo
Microsoft.CodeAnalysis.CSharp (5)
BoundTree\BoundNode.cs (1)
292
return new
NullabilityInfo
(annotation, flowState);
Compilation\CSharpSemanticModel.cs (2)
2101
convertedNullability = new
NullabilityInfo
(CodeAnalysis.NullableAnnotation.NotAnnotated, CodeAnalysis.NullableFlowState.NotNull);
2252
nullability = new
NullabilityInfo
(CodeAnalysis.NullableAnnotation.NotAnnotated, CodeAnalysis.NullableFlowState.NotNull);
FlowAnalysis\NullableWalker.cs (1)
433
_analyzedNullabilityMapOpt[expr] = (new
NullabilityInfo
(result.LValueType.ToPublicAnnotation(), result.RValueType.State.ToPublicFlowState()),
Symbols\NullableAnnotationExtensions.cs (1)
105
return new
NullabilityInfo
(ToPublicAnnotation(type, annotation), flowState.ToPublicFlowState());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Compilation\TypeInfoTests.cs (2)
22
var notNullable = new
NullabilityInfo
(CodeAnalysis.NullableAnnotation.NotAnnotated, CodeAnalysis.NullableFlowState.NotNull);
23
var nullable = new
NullabilityInfo
(CodeAnalysis.NullableAnnotation.Annotated, CodeAnalysis.NullableFlowState.MaybeNull);
Symbols\Source\NullablePublicAPITests.cs (4)
1216
var nullable = new
NullabilityInfo
(PublicNullableAnnotation.Annotated, PublicNullableFlowState.MaybeNull);
1217
var notNullable = new
NullabilityInfo
(PublicNullableAnnotation.NotAnnotated, PublicNullableFlowState.NotNull);
1265
var notNull = new
NullabilityInfo
(PublicNullableAnnotation.NotAnnotated, PublicNullableFlowState.NotNull);
1266
var @null = new
NullabilityInfo
(PublicNullableAnnotation.Annotated, PublicNullableFlowState.MaybeNull);
Microsoft.CodeAnalysis.UnitTests (6)
Symbols\NullabilityInfoTests.cs (6)
19
assertEqualsAndHashCode(new
NullabilityInfo
(NullableAnnotation.Annotated, NullableFlowState.NotNull),
20
new
NullabilityInfo
(NullableAnnotation.Annotated, NullableFlowState.NotNull),
23
assertEqualsAndHashCode(new
NullabilityInfo
(NullableAnnotation.Annotated, NullableFlowState.NotNull),
24
new
NullabilityInfo
(NullableAnnotation.NotAnnotated, NullableFlowState.NotNull),
27
assertEqualsAndHashCode(new
NullabilityInfo
(NullableAnnotation.Annotated, NullableFlowState.MaybeNull),
28
new
NullabilityInfo
(NullableAnnotation.Annotated, NullableFlowState.NotNull),
196 references to NullabilityInfo
Microsoft.CodeAnalysis (7)
Compilation\TypeInfo.cs (4)
25
public
NullabilityInfo
Nullability { get; }
38
public
NullabilityInfo
ConvertedNullability { get; }
40
internal TypeInfo(ITypeSymbol? type, ITypeSymbol? convertedType,
NullabilityInfo
nullability,
NullabilityInfo
convertedNullability)
Symbols\NullabilityInfo.cs (3)
12
public readonly struct NullabilityInfo : IEquatable<
NullabilityInfo
>
37
other is
NullabilityInfo
info && Equals(info);
42
public bool Equals(
NullabilityInfo
other) =>
Microsoft.CodeAnalysis.CSharp (175)
BoundTree\BoundExpression.cs (1)
138
public new
NullabilityInfo
TopLevelNullability
BoundTree\BoundNode.cs (2)
224
protected
NullabilityInfo
TopLevelNullability
273
private
NullabilityInfo
TopLevelNullabilityCore
BoundTree\NullabilityRewriter.cs (3)
94
bool foundInfo = _updatedNullabilities.TryGetValue(currentBinary, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType);
190
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
293
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
Compilation\CSharpSemanticModel.cs (4)
968
var
nullabilityInfo = annotation.ToNullabilityInfo(declarationTypeSymbol);
2048
NullabilityInfo
nullability = boundExpr.TopLevelNullability;
2088
NullabilityInfo
convertedNullability;
2266
static (TypeSymbol,
NullabilityInfo
) getTypeAndNullability(BoundExpression expr) => (expr.Type, expr.TopLevelNullability);
Compilation\TypeInfo.cs (4)
25
public readonly
NullabilityInfo
Nullability;
33
public readonly
NullabilityInfo
ConvertedNullability;
41
internal CSharpTypeInfo(TypeSymbol type, TypeSymbol convertedType,
NullabilityInfo
nullability,
NullabilityInfo
convertedNullability, Conversion implicitConversion)
FlowAnalysis\NullableWalker.cs (12)
241
private readonly ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)>.Builder? _analyzedNullabilityMapOpt;
492
ImmutableDictionary<BoundExpression, (
NullabilityInfo
, TypeSymbol?)>.Builder? analyzedNullabilityMapOpt,
1608
ImmutableDictionary<BoundExpression, (
NullabilityInfo
, TypeSymbol?)> analyzedNullabilitiesMap;
1613
private static (SnapshotManager?, ImmutableDictionary<BoundExpression, (
NullabilityInfo
, TypeSymbol?)>) AnalyzeWithSemanticInfo(
1623
var analyzedNullabilities = ImmutableDictionary.CreateBuilder<BoundExpression, (
NullabilityInfo
, TypeSymbol?)>(EqualityComparer<BoundExpression>.Default, NullabilityInfoTypeComparer.Instance);
1681
var analyzedNullabilities = ImmutableDictionary.CreateBuilder<BoundExpression, (
NullabilityInfo
, TypeSymbol?)>(EqualityComparer<BoundExpression>.Default, NullabilityInfoTypeComparer.Instance);
1721
private static BoundNode Rewrite(ImmutableDictionary<BoundExpression, (
NullabilityInfo
, TypeSymbol?)> updatedNullabilities, SnapshotManager? snapshotManager, BoundNode node, ref ImmutableDictionary<Symbol, Symbol>? remappedSymbols)
1848
ImmutableDictionary<BoundExpression, (
NullabilityInfo
, TypeSymbol?)>.Builder? analyzedNullabilityMapOpt,
13611
private sealed class NullabilityInfoTypeComparer : IEqualityComparer<(
NullabilityInfo
info, TypeSymbol? type)>
13615
public bool Equals((
NullabilityInfo
info, TypeSymbol? type) x, (
NullabilityInfo
info, TypeSymbol? type) y)
13621
public int GetHashCode((
NullabilityInfo
info, TypeSymbol? type) obj)
FlowAnalysis\NullableWalker.DebugVerifier.cs (3)
21
private readonly ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> _analyzedNullabilityMap;
26
private DebugVerifier(ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> analyzedNullabilityMap, SnapshotManager? snapshotManager)
37
public static void Verify(ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> analyzedNullabilityMap, SnapshotManager? snapshotManagerOpt, BoundNode node)
Generated\BoundNodes.xml.Generated.cs (144)
12414
private readonly ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> _updatedNullabilities;
12418
public NullabilityRewriter(ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> updatedNullabilities, NullableWalker.SnapshotManager? snapshotManager, ImmutableDictionary<Symbol, Symbol>.Builder remappedSymbols)
12451
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12466
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12483
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12497
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12509
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12521
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12533
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12545
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12557
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12569
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12581
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12593
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12605
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12617
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12632
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12650
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12668
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12682
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12694
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12712
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12736
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12753
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12770
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12788
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12805
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12823
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12841
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12859
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12876
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12893
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12911
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12930
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12948
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12966
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12984
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13004
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13022
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13041
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13061
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13079
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13096
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13113
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13142
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13160
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13185
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13203
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13221
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13235
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13247
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13259
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13271
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13283
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13295
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13307
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13319
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13335
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13353
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13367
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13382
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13400
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13420
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13437
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13454
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13472
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13486
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13501
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13522
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13656
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13668
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13680
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13692
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13704
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13716
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13731
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13748
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13766
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13783
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13797
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13823
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13843
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13918
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13937
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13956
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13973
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13992
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14010
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14030
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14044
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14060
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14080
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14098
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14118
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14137
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14156
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14173
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14193
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14210
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14233
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14247
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14262
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14280
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14299
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14316
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14334
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14353
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14370
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14388
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14407
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14426
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14440
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14457
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14474
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14491
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14509
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14527
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14544
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14563
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14582
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14600
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14617
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14635
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14653
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14673
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14691
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14710
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14729
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14746
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14767
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14784
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14801
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14818
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14832
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14844
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14861
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14880
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15005
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15020
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15038
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15056
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15073
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15099
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15118
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
Symbols\NullableAnnotationExtensions.cs (2)
91
internal static
NullabilityInfo
ToNullabilityInfo(this CodeAnalysis.NullableAnnotation annotation, TypeSymbol type)
102
internal static
NullabilityInfo
ToNullabilityInfo(this NullableAnnotation annotation, TypeSymbol type)
Microsoft.CodeAnalysis.CSharp.Features (1)
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
171
var
nullability = typeInfo.Nullability;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Compilation\TypeInfoTests.cs (2)
22
var
notNullable = new NullabilityInfo(CodeAnalysis.NullableAnnotation.NotAnnotated, CodeAnalysis.NullableFlowState.NotNull);
23
var
nullable = new NullabilityInfo(CodeAnalysis.NullableAnnotation.Annotated, CodeAnalysis.NullableFlowState.MaybeNull);
Symbols\Source\NullablePublicAPITests.cs (5)
1216
var
nullable = new NullabilityInfo(PublicNullableAnnotation.Annotated, PublicNullableFlowState.MaybeNull);
1217
var
notNullable = new NullabilityInfo(PublicNullableAnnotation.NotAnnotated, PublicNullableFlowState.NotNull);
1265
var
notNull = new NullabilityInfo(PublicNullableAnnotation.NotAnnotated, PublicNullableFlowState.NotNull);
1266
var
@null = new NullabilityInfo(PublicNullableAnnotation.Annotated, PublicNullableFlowState.MaybeNull);
4338
var
info = model.GetTypeInfoAndVerifyIOperation(expr).Nullability;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CompilationTestUtils.cs (2)
211
public
NullabilityInfo
Nullability;
213
public
NullabilityInfo
ConvertedNullability;
Microsoft.CodeAnalysis.UnitTests (4)
Symbols\NullabilityInfoTests.cs (4)
18
assertEqualsAndHashCode(default(
NullabilityInfo
), default(
NullabilityInfo
), equal: true);
31
void assertEqualsAndHashCode(
NullabilityInfo
n1,
NullabilityInfo
n2, bool equal)