194 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 (2)
94
bool foundInfo = _updatedNullabilities.TryGetValue(currentBinary, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType);
216
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
Compilation\CSharpSemanticModel.cs (4)
965
var
nullabilityInfo = annotation.ToNullabilityInfo(declarationTypeSymbol);
2047
NullabilityInfo
nullability = boundExpr.TopLevelNullability;
2087
NullabilityInfo
convertedNullability;
2265
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)
216
private readonly ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)>.Builder? _analyzedNullabilityMapOpt;
460
ImmutableDictionary<BoundExpression, (
NullabilityInfo
, TypeSymbol?)>.Builder? analyzedNullabilityMapOpt,
1497
ImmutableDictionary<BoundExpression, (
NullabilityInfo
, TypeSymbol?)> analyzedNullabilitiesMap;
1502
private static (SnapshotManager?, ImmutableDictionary<BoundExpression, (
NullabilityInfo
, TypeSymbol?)>) AnalyzeWithSemanticInfo(
1512
var analyzedNullabilities = ImmutableDictionary.CreateBuilder<BoundExpression, (
NullabilityInfo
, TypeSymbol?)>(EqualityComparer<BoundExpression>.Default, NullabilityInfoTypeComparer.Instance);
1569
var analyzedNullabilities = ImmutableDictionary.CreateBuilder<BoundExpression, (
NullabilityInfo
, TypeSymbol?)>(EqualityComparer<BoundExpression>.Default, NullabilityInfoTypeComparer.Instance);
1608
private static BoundNode Rewrite(ImmutableDictionary<BoundExpression, (
NullabilityInfo
, TypeSymbol?)> updatedNullabilities, SnapshotManager? snapshotManager, BoundNode node, ref ImmutableDictionary<Symbol, Symbol>? remappedSymbols)
1730
ImmutableDictionary<BoundExpression, (
NullabilityInfo
, TypeSymbol?)>.Builder? analyzedNullabilityMapOpt,
12651
private sealed class NullabilityInfoTypeComparer : IEqualityComparer<(
NullabilityInfo
info, TypeSymbol? type)>
12655
public bool Equals((
NullabilityInfo
info, TypeSymbol? type) x, (
NullabilityInfo
info, TypeSymbol? type) y)
12661
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)
12217
private readonly ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> _updatedNullabilities;
12221
public NullabilityRewriter(ImmutableDictionary<BoundExpression, (
NullabilityInfo
Info, TypeSymbol? Type)> updatedNullabilities, NullableWalker.SnapshotManager? snapshotManager, ImmutableDictionary<Symbol, Symbol>.Builder remappedSymbols)
12254
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12269
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12286
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12300
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12312
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12324
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12336
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12348
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12360
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12372
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12384
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12396
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12408
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12420
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12435
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))
12485
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12497
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12515
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12539
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12556
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12573
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12591
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12608
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12626
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12644
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12662
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12679
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12696
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12714
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12733
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12751
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12774
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12792
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12810
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12830
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12848
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12867
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12887
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12905
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12922
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
12939
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))
13001
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13019
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13037
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13051
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13063
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13075
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13087
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13099
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13111
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13123
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13135
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13151
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13169
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13183
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13198
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13216
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13236
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13253
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13271
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13289
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13303
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13318
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13339
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13474
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13486
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13498
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13510
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13522
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13534
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13549
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13566
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13584
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13601
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13615
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13641
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13661
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13736
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13755
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13774
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13791
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13810
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13828
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13848
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13862
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13878
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13898
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13916
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13936
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13955
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13974
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
13991
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14011
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14028
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14051
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14065
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))
14117
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14134
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14152
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14171
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14188
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14206
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14225
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14244
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14258
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14275
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14292
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14309
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14327
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))
14381
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14400
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14418
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14435
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14453
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14471
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))
14528
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14547
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14564
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14585
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14602
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14619
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14636
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14650
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14662
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14679
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14698
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14832
if (!_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14847
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14865
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14883
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14900
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14926
if (_updatedNullabilities.TryGetValue(node, out (
NullabilityInfo
Info, TypeSymbol? Type) infoAndType))
14945
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 (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.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)