116 references to MemberNotNullAttributeDefinition
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (92)
Semantics\LambdaTests.cs (1)
4206
new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition, NotNullIfNotNullAttributeDefinition,
MemberNotNullAttributeDefinition
, MemberNotNullWhenAttributeDefinition },
Semantics\NullableReferenceTypesTests.cs (89)
20500
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
20862
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
20922
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
20964
""",
MemberNotNullAttributeDefinition
], parseOptions: TestOptions.Regular9);
21001
""",
MemberNotNullAttributeDefinition
]);
21047
""",
MemberNotNullAttributeDefinition
]);
21090
""",
MemberNotNullAttributeDefinition
]);
21136
""",
MemberNotNullAttributeDefinition
]);
21174
""",
MemberNotNullAttributeDefinition
]);
21208
""",
MemberNotNullAttributeDefinition
]);
21255
""",
MemberNotNullAttributeDefinition
]);
21287
""",
MemberNotNullAttributeDefinition
]);
21324
""",
MemberNotNullAttributeDefinition
]);
21361
""",
MemberNotNullAttributeDefinition
]);
21411
""",
MemberNotNullAttributeDefinition
]);
21441
""",
MemberNotNullAttributeDefinition
]);
21469
""",
MemberNotNullAttributeDefinition
]);
21497
""",
MemberNotNullAttributeDefinition
]);
21526
""",
MemberNotNullAttributeDefinition
]);
21554
""",
MemberNotNullAttributeDefinition
]);
21579
""",
MemberNotNullAttributeDefinition
]);
21607
""",
MemberNotNullAttributeDefinition
]);
21666
""",
MemberNotNullAttributeDefinition
]);
21753
""",
MemberNotNullAttributeDefinition
]);
21790
""",
MemberNotNullAttributeDefinition
]);
21823
""",
MemberNotNullAttributeDefinition
]);
21868
""",
MemberNotNullAttributeDefinition
]);
21896
""",
MemberNotNullAttributeDefinition
]);
21921
""",
MemberNotNullAttributeDefinition
]);
21937
""",
MemberNotNullAttributeDefinition
]);
21963
""",
MemberNotNullAttributeDefinition
]);
21994
""",
MemberNotNullAttributeDefinition
]);
22031
""",
MemberNotNullAttributeDefinition
]);
22068
""",
MemberNotNullAttributeDefinition
]);
22104
""",
MemberNotNullAttributeDefinition
]);
22140
""",
MemberNotNullAttributeDefinition
]);
22183
""",
MemberNotNullAttributeDefinition
]);
22216
""",
MemberNotNullAttributeDefinition
]);
22247
""",
MemberNotNullAttributeDefinition
]);
22272
""",
MemberNotNullAttributeDefinition
]);
22780
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
22859
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
22924
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
22980
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
23033
",
MemberNotNullAttributeDefinition
, NotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9);
23064
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
23235
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
23292
}",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
23430
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
23478
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
23503
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
23530
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
23554
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
23659
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
23695
var c = CreateCompilation(new[] { source,
MemberNotNullAttributeDefinition
, MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular8);
23714
var c2 = CreateCompilation(new[] { source,
MemberNotNullAttributeDefinition
, MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9);
23755
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
23806
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
23850
",
MemberNotNullAttributeDefinition
});
23911
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
23979
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24034
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24074
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24121
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24168
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24207
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24249
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24285
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24321
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24364
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24405
",
MemberNotNullAttributeDefinition
});
24434
",
MemberNotNullAttributeDefinition
});
24453
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24482
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24520
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24559
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24589
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24624
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24669
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24719
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24927
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24971
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
24998
""",
MemberNotNullAttributeDefinition
]);
25815
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
26563
",
MemberNotNullAttributeDefinition
, MemberNotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9);
26648
",
MemberNotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
28490
",
MemberNotNullAttributeDefinition
});
32793
var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition,
MemberNotNullAttributeDefinition
, DisallowNullAttributeDefinition });
32834
var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition,
MemberNotNullAttributeDefinition
, DisallowNullAttributeDefinition });
Semantics\UninitializedNonNullableFieldTests.cs (2)
2244
var comp = CreateCompilation(new[] { source,
MemberNotNullAttributeDefinition
}, options: WithNullableEnable(), parseOptions: TestOptions.RegularPreview);
2313
var comp = CreateCompilation(new[] { source,
MemberNotNullAttributeDefinition
}, options: WithNullableEnable(), parseOptions: TestOptions.RegularPreview);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (24)
Symbols\RequiredMembersTests.cs (24)
4256
var comp = CreateCompilationWithRequiredMembers(new[] { code,
MemberNotNullAttributeDefinition
});
4276
var comp = CreateCompilationWithRequiredMembers(new[] { code,
MemberNotNullAttributeDefinition
});
4307
var comp = CreateCompilationWithRequiredMembers(new[] { code,
MemberNotNullAttributeDefinition
});
4327
var comp = CreateCompilationWithRequiredMembers(new[] { code,
MemberNotNullAttributeDefinition
});
4348
var comp = CreateCompilationWithRequiredMembers(new[] { code,
MemberNotNullAttributeDefinition
});
4369
var comp = CreateCompilationWithRequiredMembers(new[] { code,
MemberNotNullAttributeDefinition
});
4397
var comp = CreateCompilationWithRequiredMembers(new[] { code,
MemberNotNullAttributeDefinition
});
4424
var comp = CreateCompilationWithRequiredMembers(new[] { code,
MemberNotNullAttributeDefinition
});
4448
var comp = CreateCompilationWithRequiredMembers(new[] { code,
MemberNotNullAttributeDefinition
});
4477
var comp = CreateCompilationWithRequiredMembers(new[] { code,
MemberNotNullAttributeDefinition
});
4509
var comp = CreateCompilationWithRequiredMembers(new[] { code,
MemberNotNullAttributeDefinition
});
4543
var comp = CreateCompilationWithRequiredMembers(new[] { code,
MemberNotNullAttributeDefinition
});
4578
var comp = CreateCompilationWithRequiredMembers(new[] { code,
MemberNotNullAttributeDefinition
});
4612
var comp = CreateCompilationWithRequiredMembers(new[] { code,
MemberNotNullAttributeDefinition
});
4660
var comp = CreateCompilationWithRequiredMembers(new[] { @base, derived,
MemberNotNullAttributeDefinition
});
4663
var baseComp = CreateCompilationWithRequiredMembers(new[] { @base,
MemberNotNullAttributeDefinition
});
4705
var comp = CreateCompilationWithRequiredMembers(new[] { @base, derived,
MemberNotNullAttributeDefinition
});
4708
var baseComp = CreateCompilationWithRequiredMembers(new[] { @base,
MemberNotNullAttributeDefinition
});
4750
var comp = CreateCompilationWithRequiredMembers(new[] { @base, derived,
MemberNotNullAttributeDefinition
});
4753
var baseComp = CreateCompilationWithRequiredMembers(new[] { @base,
MemberNotNullAttributeDefinition
});
4794
var comp = CreateCompilationWithRequiredMembers(new[] { @base, derived,
MemberNotNullAttributeDefinition
});
4797
var baseComp = CreateCompilationWithRequiredMembers(new[] { @base,
MemberNotNullAttributeDefinition
});
4840
var comp = CreateCompilationWithRequiredMembers(new[] { @base, derived,
MemberNotNullAttributeDefinition
});
4843
var baseComp = CreateCompilationWithRequiredMembers(new[] { @base,
MemberNotNullAttributeDefinition
});