17 instantiations of NullabilityInfo
Microsoft.CodeAnalysis.CSharp (5)
BoundTree\BoundNode.cs (1)
292
return new
NullabilityInfo
(annotation, flowState);
Compilation\CSharpSemanticModel.cs (2)
2111
convertedNullability = new
NullabilityInfo
(CodeAnalysis.NullableAnnotation.NotAnnotated, CodeAnalysis.NullableFlowState.NotNull);
2262
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),
197 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 (176)
BoundTree\BoundExpression.cs (1)
143
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)
981
var
nullabilityInfo = annotation.ToNullabilityInfo(declarationTypeSymbol);
2058
NullabilityInfo
nullability = boundExpr.TopLevelNullability;
2098
NullabilityInfo
convertedNullability;
2276
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,
13794
private sealed class NullabilityInfoTypeComparer : IEqualityComparer<(
NullabilityInfo
info, TypeSymbol? type)>
13798
public bool Equals((
NullabilityInfo
info, TypeSymbol? type) x, (
NullabilityInfo
info, TypeSymbol? type) y)
13804
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 (145)
12536
private readonly ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> _updatedNullabilities;
12540
public NullabilityRewriter(ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> updatedNullabilities, NullableWalker.SnapshotManager? snapshotManager, ImmutableDictionary<Symbol, Symbol>.Builder remappedSymbols)
12573
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12588
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12605
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12619
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12631
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12643
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12655
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12667
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12679
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12691
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12703
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12715
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12727
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12739
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12751
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12766
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12784
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12802
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12819
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12833
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12851
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12875
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12892
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12909
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12927
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12944
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12962
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12980
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12998
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13015
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13032
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13050
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13069
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13087
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13105
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13123
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13143
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13161
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13180
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13200
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13218
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13235
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13252
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13281
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13299
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13324
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13342
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13360
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13374
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13386
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13398
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13410
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13422
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13434
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13446
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13458
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13474
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13492
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13506
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13521
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13539
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13559
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13576
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13593
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13611
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13625
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13640
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13661
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13795
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13807
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13819
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13831
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13843
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13855
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13870
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13887
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13905
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13922
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13936
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13962
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13982
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14057
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14076
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14095
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14112
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14131
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14149
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14169
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14183
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14199
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14219
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14237
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14257
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14276
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14295
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14312
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14332
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14350
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14372
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14386
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14401
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14419
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14438
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14455
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14473
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14492
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))
14546
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14565
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14579
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14596
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14613
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14630
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14648
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14666
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14683
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14702
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14721
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14739
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14756
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14774
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14792
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14812
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14830
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14849
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14868
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14885
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14906
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14923
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14940
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14957
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14971
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14983
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15000
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15019
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15144
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15159
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15177
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15195
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15212
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15238
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15257
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)