17 instantiations of NullabilityInfo
Microsoft.CodeAnalysis.CSharp (5)
BoundTree\BoundNode.cs (1)
279
return new
NullabilityInfo
(annotation, flowState);
Compilation\CSharpSemanticModel.cs (2)
2121
convertedNullability = new
NullabilityInfo
(CodeAnalysis.NullableAnnotation.NotAnnotated, CodeAnalysis.NullableFlowState.NotNull);
2249
nullability = new
NullabilityInfo
(CodeAnalysis.NullableAnnotation.NotAnnotated, CodeAnalysis.NullableFlowState.NotNull);
FlowAnalysis\NullableWalker.cs (1)
369
_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)
1214
var nullable = new
NullabilityInfo
(PublicNullableAnnotation.Annotated, PublicNullableFlowState.MaybeNull);
1215
var notNullable = new
NullabilityInfo
(PublicNullableAnnotation.NotAnnotated, PublicNullableFlowState.NotNull);
1263
var notNull = new
NullabilityInfo
(PublicNullableAnnotation.NotAnnotated, PublicNullableFlowState.NotNull);
1264
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),
188 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 (168)
BoundTree\BoundExpression.cs (1)
118
public new
NullabilityInfo
TopLevelNullability
BoundTree\BoundNode.cs (2)
211
protected
NullabilityInfo
TopLevelNullability
260
private
NullabilityInfo
TopLevelNullabilityCore
BoundTree\NullabilityRewriter.cs (2)
51
bool foundInfo = _updatedNullabilities.TryGetValue(currentBinary, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType);
173
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
Compilation\CSharpSemanticModel.cs (4)
965
var
nullabilityInfo = annotation.ToNullabilityInfo(declarationTypeSymbol);
2068
NullabilityInfo
nullability = boundExpr.TopLevelNullability;
2108
NullabilityInfo
convertedNullability;
2263
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)
193
private readonly ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)>.Builder? _analyzedNullabilityMapOpt;
427
ImmutableDictionary<BoundExpression, (
NullabilityInfo
, TypeSymbol?)>.Builder? analyzedNullabilityMapOpt,
1449
ImmutableDictionary<BoundExpression, (
NullabilityInfo
, TypeSymbol?)> analyzedNullabilitiesMap;
1454
private static (SnapshotManager?, ImmutableDictionary<BoundExpression, (
NullabilityInfo
, TypeSymbol?)>) AnalyzeWithSemanticInfo(
1464
var analyzedNullabilities = ImmutableDictionary.CreateBuilder<BoundExpression, (
NullabilityInfo
, TypeSymbol?)>(EqualityComparer<BoundExpression>.Default, NullabilityInfoTypeComparer.Instance);
1521
var analyzedNullabilities = ImmutableDictionary.CreateBuilder<BoundExpression, (
NullabilityInfo
, TypeSymbol?)>(EqualityComparer<BoundExpression>.Default, NullabilityInfoTypeComparer.Instance);
1560
private static BoundNode Rewrite(ImmutableDictionary<BoundExpression, (
NullabilityInfo
, TypeSymbol?)> updatedNullabilities, SnapshotManager? snapshotManager, BoundNode node, ref ImmutableDictionary<Symbol, Symbol>? remappedSymbols)
1682
ImmutableDictionary<BoundExpression, (
NullabilityInfo
, TypeSymbol?)>.Builder? analyzedNullabilityMapOpt,
11726
private sealed class NullabilityInfoTypeComparer : IEqualityComparer<(
NullabilityInfo
info, TypeSymbol? type)>
11730
public bool Equals((
NullabilityInfo
info, TypeSymbol? type) x, (
NullabilityInfo
info, TypeSymbol? type) y)
11736
public int GetHashCode((
NullabilityInfo
info, TypeSymbol? type) obj)
FlowAnalysis\NullableWalker.DebugVerifier.cs (3)
20
private readonly ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> _analyzedNullabilityMap;
25
private DebugVerifier(ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> analyzedNullabilityMap, SnapshotManager? snapshotManager)
36
public static void Verify(ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> analyzedNullabilityMap, SnapshotManager? snapshotManagerOpt, BoundNode node)
Generated\BoundNodes.xml.Generated.cs (138)
11783
private readonly ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> _updatedNullabilities;
11787
public NullabilityRewriter(ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> updatedNullabilities, NullableWalker.SnapshotManager? snapshotManager, ImmutableDictionary<Symbol, Symbol>.Builder remappedSymbols)
11820
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
11835
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
11852
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
11866
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
11878
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
11890
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
11902
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
11914
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
11926
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
11938
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
11950
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
11962
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
11974
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
11986
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12001
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12019
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12037
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12051
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12063
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12081
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12105
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12122
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12139
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12157
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12174
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12192
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12210
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12228
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12245
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12262
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12280
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12299
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12317
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12340
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12358
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12376
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12396
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12414
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12433
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12453
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12471
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12488
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12515
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12533
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12558
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12576
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12594
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12608
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12620
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12632
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12644
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12656
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12668
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12684
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12702
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12716
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12731
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12749
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12769
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12786
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12804
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12822
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12836
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12851
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12872
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13007
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13019
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13031
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13043
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13055
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13067
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13082
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13099
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13117
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13134
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13148
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13174
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13194
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13269
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13288
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13307
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13324
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13343
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13361
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13381
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13395
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13411
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13431
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13449
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13469
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13488
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13507
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13524
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13544
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13561
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13579
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13598
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13615
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13633
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13652
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13669
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13687
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13706
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13725
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13739
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13756
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13773
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13790
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13808
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13826
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13843
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13862
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13881
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13899
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13916
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13934
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13952
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13972
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13991
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14010
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14027
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14048
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14065
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14082
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14099
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14113
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14125
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14142
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14161
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14295
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14310
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14328
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14346
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14363
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14389
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14408
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.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)
1214
var
nullable = new NullabilityInfo(PublicNullableAnnotation.Annotated, PublicNullableFlowState.MaybeNull);
1215
var
notNullable = new NullabilityInfo(PublicNullableAnnotation.NotAnnotated, PublicNullableFlowState.NotNull);
1263
var
notNull = new NullabilityInfo(PublicNullableAnnotation.NotAnnotated, PublicNullableFlowState.NotNull);
1264
var
@null = new NullabilityInfo(PublicNullableAnnotation.Annotated, PublicNullableFlowState.MaybeNull);
4342
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)