17 instantiations of NullabilityInfo
Microsoft.CodeAnalysis.CSharp (5)
BoundTree\BoundNode.cs (1)
292
return new
NullabilityInfo
(annotation, flowState);
Compilation\CSharpSemanticModel.cs (2)
2114
convertedNullability = new
NullabilityInfo
(CodeAnalysis.NullableAnnotation.NotAnnotated, CodeAnalysis.NullableFlowState.NotNull);
2265
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);
155
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
258
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
Compilation\CSharpSemanticModel.cs (4)
968
var
nullabilityInfo = annotation.ToNullabilityInfo(declarationTypeSymbol);
2061
NullabilityInfo
nullability = boundExpr.TopLevelNullability;
2101
NullabilityInfo
convertedNullability;
2279
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,
13610
private sealed class NullabilityInfoTypeComparer : IEqualityComparer<(
NullabilityInfo
info, TypeSymbol? type)>
13614
public bool Equals((
NullabilityInfo
info, TypeSymbol? type) x, (
NullabilityInfo
info, TypeSymbol? type) y)
13620
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)
12406
private readonly ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> _updatedNullabilities;
12410
public NullabilityRewriter(ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> updatedNullabilities, NullableWalker.SnapshotManager? snapshotManager, ImmutableDictionary<Symbol, Symbol>.Builder remappedSymbols)
12443
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12458
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12475
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12489
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12501
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12513
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12525
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12537
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12549
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12561
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12573
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12585
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12597
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12609
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12624
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12642
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12660
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12674
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12686
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12704
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12728
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12745
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12762
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12780
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12797
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12815
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))
12868
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12885
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12903
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12922
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12940
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12958
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12976
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12996
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13014
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13033
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13053
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13071
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13088
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13105
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13134
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13152
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13177
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13195
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13213
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13227
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13239
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13251
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13263
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13275
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13287
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13299
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13311
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13327
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13345
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13359
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13374
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13392
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13412
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13429
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13446
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13464
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13478
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13493
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13514
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13648
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13660
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13672
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13684
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13696
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13708
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13723
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13740
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13758
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13775
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13789
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13815
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13835
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13910
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13929
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13948
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13965
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13984
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14002
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14022
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14036
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14052
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14072
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14090
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14110
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14129
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14148
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14165
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14185
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14202
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14225
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14239
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14254
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14272
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14291
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14308
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14326
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14345
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14362
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14380
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14399
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14418
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14432
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14449
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14466
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14483
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14501
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14519
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14536
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14555
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14574
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14592
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14609
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14627
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14645
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14665
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))
14738
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14759
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14776
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14793
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14810
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14824
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14836
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14853
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14872
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15006
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15021
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15039
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15057
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15074
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15100
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
15119
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)