168 references to NotNullAttributeDefinition
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (17)
FieldKeywordTests.cs (12)
6541
var comp = CreateCompilation([source,
NotNullAttributeDefinition
]);
6565
var comp = CreateCompilation([source,
NotNullAttributeDefinition
]);
6584
var comp = CreateCompilation([source,
NotNullAttributeDefinition
, DisallowNullAttributeDefinition]);
6606
var comp = CreateCompilation([source,
NotNullAttributeDefinition
]);
6625
var comp = CreateCompilation([source,
NotNullAttributeDefinition
]);
6647
var comp = CreateCompilation([source,
NotNullAttributeDefinition
]);
6670
var comp = CreateCompilation([source,
NotNullAttributeDefinition
]);
6689
var comp = CreateCompilation([source,
NotNullAttributeDefinition
]);
6714
var comp = CreateCompilation([source,
NotNullAttributeDefinition
]);
6739
var comp = CreateCompilation([source,
NotNullAttributeDefinition
]);
7227
var comp = CreateCompilation(new[] { source,
NotNullAttributeDefinition
});
7269
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition });
Semantics\RecordTests.cs (5)
310
var comp = CreateCompilation(new[] { src,
NotNullAttributeDefinition
});
356
var comp = CreateCompilation(new[] { src,
NotNullAttributeDefinition
});
392
var comp = CreateCompilation(new[] { src,
NotNullAttributeDefinition
});
9441
var comp = CreateCompilation(new[] { src,
NotNullAttributeDefinition
});
25608
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition,
NotNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (149)
Semantics\LambdaTests.cs (6)
4206
new[] { source, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
, NotNullIfNotNullAttributeDefinition, MemberNotNullAttributeDefinition, MemberNotNullWhenAttributeDefinition },
4238
var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
}, parseOptions: TestOptions.RegularPreview);
4285
var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
4359
var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
4406
var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
4639
var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition,
NotNullAttributeDefinition
});
Semantics\NullableReferenceTypesTests.cs (142)
20667
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
20713
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
29037
",
NotNullAttributeDefinition
});
29083
",
NotNullAttributeDefinition
});
29471
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
29501
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
29530
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
29872
", AllowNullAttributeDefinition,
NotNullAttributeDefinition
});
30266
var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition,
NotNullAttributeDefinition
, source });
32761
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
32793
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
, MemberNotNullAttributeDefinition, DisallowNullAttributeDefinition });
32834
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
, MemberNotNullAttributeDefinition, DisallowNullAttributeDefinition });
32906
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
, DisallowNullAttributeDefinition });
32977
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
, DisallowNullAttributeDefinition });
33069
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
33111
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition });
34623
var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition,
NotNullAttributeDefinition
, NotNullIfNotNullAttributeDefinition, source });
34703
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition, source });
34738
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
34775
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
36335
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
36356
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
36618
" +
NotNullAttributeDefinition
);
38604
", NotNullWhenAttributeDefinition,
NotNullAttributeDefinition
}, options: WithNullableEnable());
38633
", NotNullWhenAttributeDefinition,
NotNullAttributeDefinition
}, options: WithNullableEnable());
38654
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38675
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38696
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38768
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38792
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38815
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38838
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38857
" +
NotNullAttributeDefinition
);
38876
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38898
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38929
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38964
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38990
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39016
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39194
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39213
" +
NotNullAttributeDefinition
);
39236
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39263
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39286
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39311
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39338
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39361
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39380
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39442
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39468
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39487
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39512
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39531
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39585
new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition },
39656
new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition },
39714
new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition },
39780
var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition });
39858
new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition },
39896
new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition },
39942
new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition },
39994
new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition },
40476
var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition });
40497
var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition });
41824
var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition,
NotNullAttributeDefinition
});
42009
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
42169
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source });
42221
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source });
42575
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, NotNullWhenAttributeDefinition, source.Replace("TYPE", type) });
42661
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, NotNullWhenAttributeDefinition, source.Replace("CONSTRAINT", constraint) });
42720
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
42749
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
42790
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
, DoesNotReturnIfAttributeDefinition });
42840
var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition,
NotNullAttributeDefinition
, NotNullWhenAttributeDefinition, source.Replace("TYPE", type) });
43238
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
43342
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullWhenAttributeDefinition, source });
44875
var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
},
44879
var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
44916
var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
, lib_cs });
44942
var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
45734
var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition,
NotNullAttributeDefinition
, source });
46093
var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition,
NotNullAttributeDefinition
, source }, options: WithNullableEnable());
47298
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source }, options: WithNullableEnable());
47374
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source }, options: WithNullableEnable());
47420
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source }, options: WithNullableEnable());
47439
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source }, options: WithNullableEnable());
47453
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source0 }, options: WithNullableEnable());
47497
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source0 });
47538
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullAttributeDefinition, source0 });
47590
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullAttributeDefinition, source });
47633
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source }, options: WithNullableEnable());
47657
var lib = CreateNullableCompilation(new[] { lib_cs,
NotNullAttributeDefinition
});
47686
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullAttributeDefinition
});
47723
var comp = CreateNullableCompilation(new[] { lib_cs,
NotNullAttributeDefinition
});
47773
var comp = CreateNullableCompilation(new[] { lib_cs,
NotNullAttributeDefinition
});
47796
var comp = CreateNullableCompilation(new[] { lib_cs,
NotNullAttributeDefinition
});
47816
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
47844
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
47882
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
47912
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
47942
var lib = CreateNullableCompilation(new[] { lib_cs,
NotNullAttributeDefinition
});
47969
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullAttributeDefinition
});
48023
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
48053
var lib = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, lib_cs });
48079
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullAttributeDefinition
});
48118
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
48144
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
48232
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
48282
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
48327
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
48367
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullAttributeDefinition, source });
48404
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullAttributeDefinition, source });
48469
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullAttributeDefinition, source });
48626
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
48664
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
48702
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
48727
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullWhenAttributeDefinition, source });
48752
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullWhenAttributeDefinition, source });
48800
var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition,
NotNullAttributeDefinition
, source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8);
54032
CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
}).VerifyDiagnostics(
68653
var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute,
NotNullAttributeDefinition
});
68855
var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute,
NotNullAttributeDefinition
});
68889
var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute,
NotNullAttributeDefinition
});
68920
var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute,
NotNullAttributeDefinition
});
68948
var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute,
NotNullAttributeDefinition
});
70119
var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition,
NotNullAttributeDefinition
});
72266
", MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
91672
var comp = CreateCompilation(new[] { source,
NotNullAttributeDefinition
}, options: WithNullableEnable());
91881
var comp = CreateCompilation(new[] { source,
NotNullAttributeDefinition
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92118
var comp = CreateCompilation(new[] { source,
NotNullAttributeDefinition
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92385
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable,
NotNullAttributeDefinition
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92625
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable,
NotNullAttributeDefinition
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
136957
var comp = CreateCompilation(new[] { source,
NotNullAttributeDefinition
}, options: WithNullableEnable());
140495
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source }, options: WithNullableEnable());
149652
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition,
NotNullAttributeDefinition
});
149717
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
149765
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
149802
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
149847
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
154962
var comp = CreateCompilation(new[] { sourceA, DisallowNullAttributeDefinition,
NotNullAttributeDefinition
});
155087
comp = CreateCompilation(new[] { sourceB, DisallowNullAttributeDefinition,
NotNullAttributeDefinition
}, references: new[] { refA });
155148
comp = CreateCompilation(new[] { sourceB, DisallowNullAttributeDefinition,
NotNullAttributeDefinition
}, references: new[] { refA });
158932
var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
, DoesNotReturnAttributeDefinition, DoesNotReturnIfAttributeDefinition });
Semantics\OverloadResolutionPerfTests.cs (1)
287
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\RequiredMembersTests.cs (2)
6113
var comp = CreateCompilationWithRequiredMembers([code,
NotNullAttributeDefinition
, DisallowNullAttributeDefinition]);
6191
var comp = CreateCompilationWithRequiredMembers([code,
NotNullAttributeDefinition
, DisallowNullAttributeDefinition]);