166 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
});
25563
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());
29043
",
NotNullAttributeDefinition
});
29089
",
NotNullAttributeDefinition
});
29477
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
29507
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
29536
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
29878
", AllowNullAttributeDefinition,
NotNullAttributeDefinition
});
30272
var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition,
NotNullAttributeDefinition
, source });
32767
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
32799
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
, MemberNotNullAttributeDefinition, DisallowNullAttributeDefinition });
32840
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
, MemberNotNullAttributeDefinition, DisallowNullAttributeDefinition });
32912
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
, DisallowNullAttributeDefinition });
32983
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
, DisallowNullAttributeDefinition });
33075
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
33117
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition });
34629
var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition,
NotNullAttributeDefinition
, NotNullIfNotNullAttributeDefinition, source });
34709
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition, source });
34744
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
34781
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
36341
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
36362
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
36624
" +
NotNullAttributeDefinition
);
38610
", NotNullWhenAttributeDefinition,
NotNullAttributeDefinition
}, options: WithNullableEnable());
38639
", NotNullWhenAttributeDefinition,
NotNullAttributeDefinition
}, options: WithNullableEnable());
38660
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38681
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38702
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38774
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38798
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38821
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38844
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38863
" +
NotNullAttributeDefinition
);
38882
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38904
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38935
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38970
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
38996
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39022
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39200
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39219
" +
NotNullAttributeDefinition
);
39242
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39269
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39292
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39317
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39344
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39367
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39386
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39448
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39474
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39493
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39518
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39537
",
NotNullAttributeDefinition
}, options: WithNullableEnable());
39591
new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition },
39662
new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition },
39720
new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition },
39786
var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition });
39864
new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition },
39902
new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition },
39948
new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition },
40000
new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition },
40482
var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition });
40503
var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition,
NotNullAttributeDefinition
, MaybeNullAttributeDefinition });
41830
var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition,
NotNullAttributeDefinition
});
42015
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
42175
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source });
42227
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source });
42581
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, NotNullWhenAttributeDefinition, source.Replace("TYPE", type) });
42667
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, NotNullWhenAttributeDefinition, source.Replace("CONSTRAINT", constraint) });
42726
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
42755
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
42796
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
, DoesNotReturnIfAttributeDefinition });
42846
var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition,
NotNullAttributeDefinition
, NotNullWhenAttributeDefinition, source.Replace("TYPE", type) });
43244
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
43348
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullWhenAttributeDefinition, source });
44881
var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
},
44885
var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
44922
var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
, lib_cs });
44948
var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
45740
var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition,
NotNullAttributeDefinition
, source });
46099
var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition,
NotNullAttributeDefinition
, source }, options: WithNullableEnable());
47304
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source }, options: WithNullableEnable());
47380
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source }, options: WithNullableEnable());
47426
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source }, options: WithNullableEnable());
47445
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source }, options: WithNullableEnable());
47459
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source0 }, options: WithNullableEnable());
47503
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source0 });
47544
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullAttributeDefinition, source0 });
47596
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullAttributeDefinition, source });
47639
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source }, options: WithNullableEnable());
47663
var lib = CreateNullableCompilation(new[] { lib_cs,
NotNullAttributeDefinition
});
47692
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullAttributeDefinition
});
47729
var comp = CreateNullableCompilation(new[] { lib_cs,
NotNullAttributeDefinition
});
47779
var comp = CreateNullableCompilation(new[] { lib_cs,
NotNullAttributeDefinition
});
47802
var comp = CreateNullableCompilation(new[] { lib_cs,
NotNullAttributeDefinition
});
47822
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
47850
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
47888
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
47918
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
47948
var lib = CreateNullableCompilation(new[] { lib_cs,
NotNullAttributeDefinition
});
47975
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullAttributeDefinition
});
48029
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
48059
var lib = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, lib_cs });
48085
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullAttributeDefinition
});
48124
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
48150
var comp = CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
});
48238
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
48288
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
48333
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
48373
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullAttributeDefinition, source });
48410
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullAttributeDefinition, source });
48475
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullAttributeDefinition, source });
48632
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
48670
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
48708
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, source });
48733
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullWhenAttributeDefinition, source });
48758
var comp = CreateNullableCompilation(new[] {
NotNullAttributeDefinition
, MaybeNullWhenAttributeDefinition, source });
48806
var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition,
NotNullAttributeDefinition
, source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8);
54038
CreateNullableCompilation(new[] { source,
NotNullAttributeDefinition
}).VerifyDiagnostics(
68659
var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute,
NotNullAttributeDefinition
});
68861
var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute,
NotNullAttributeDefinition
});
68895
var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute,
NotNullAttributeDefinition
});
68926
var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute,
NotNullAttributeDefinition
});
68954
var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute,
NotNullAttributeDefinition
});
70125
var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition,
NotNullAttributeDefinition
});
72272
", MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
91678
var comp = CreateCompilation(new[] { source,
NotNullAttributeDefinition
}, options: WithNullableEnable());
91887
var comp = CreateCompilation(new[] { source,
NotNullAttributeDefinition
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92124
var comp = CreateCompilation(new[] { source,
NotNullAttributeDefinition
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92391
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable,
NotNullAttributeDefinition
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92631
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable,
NotNullAttributeDefinition
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
136963
var comp = CreateCompilation(new[] { source,
NotNullAttributeDefinition
}, options: WithNullableEnable());
140501
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source }, options: WithNullableEnable());
149658
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition,
NotNullAttributeDefinition
});
149723
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
149771
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
149808
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
149853
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
});
154968
var comp = CreateCompilation(new[] { sourceA, DisallowNullAttributeDefinition,
NotNullAttributeDefinition
});
155093
comp = CreateCompilation(new[] { sourceB, DisallowNullAttributeDefinition,
NotNullAttributeDefinition
}, references: new[] { refA });
155154
comp = CreateCompilation(new[] { sourceB, DisallowNullAttributeDefinition,
NotNullAttributeDefinition
}, references: new[] { refA });
158938
var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition,
NotNullAttributeDefinition
, DoesNotReturnAttributeDefinition, DoesNotReturnIfAttributeDefinition });
Semantics\OverloadResolutionPerfTests.cs (1)
287
var comp = CreateCompilation(new[] {
NotNullAttributeDefinition
, source });