153 references to AllowNullAttributeDefinition
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (26)
FieldKeywordTests.cs (24)
6149
var comp = CreateCompilation([source, MaybeNullAttributeDefinition,
AllowNullAttributeDefinition
]);
6178
var comp = CreateCompilation([source, MaybeNullAttributeDefinition,
AllowNullAttributeDefinition
]);
6207
var comp = CreateCompilation([source, MaybeNullAttributeDefinition,
AllowNullAttributeDefinition
]);
6240
var comp = CreateCompilation([source,
AllowNullAttributeDefinition
]);
6273
var comp = CreateCompilation([source,
AllowNullAttributeDefinition
]);
6302
var comp = CreateCompilation([source,
AllowNullAttributeDefinition
]);
6334
var comp = CreateCompilation([source,
AllowNullAttributeDefinition
]);
6362
var comp = CreateCompilation([source,
AllowNullAttributeDefinition
]);
6395
var comp = CreateCompilation([source,
AllowNullAttributeDefinition
]);
6426
var comp = CreateCompilation([source,
AllowNullAttributeDefinition
]);
6458
var comp = CreateCompilation([source, MaybeNullAttributeDefinition,
AllowNullAttributeDefinition
]);
6490
var comp = CreateCompilation([source,
AllowNullAttributeDefinition
]);
6519
var comp = CreateCompilation([source, MaybeNullAttributeDefinition,
AllowNullAttributeDefinition
]);
6808
var comp = CreateCompilation([source,
AllowNullAttributeDefinition
]);
6827
var comp = CreateCompilation([source,
AllowNullAttributeDefinition
]);
6857
var comp = CreateCompilation([source,
AllowNullAttributeDefinition
]);
6888
var comp = CreateCompilation([source,
AllowNullAttributeDefinition
]);
6990
var comp = CreateCompilation([source, RequiredMemberAttribute, CompilerFeatureRequiredAttribute, SetsRequiredMembersAttribute, MaybeNullAttributeDefinition,
AllowNullAttributeDefinition
]);
7020
var comp = CreateCompilation([source, RequiredMemberAttribute, CompilerFeatureRequiredAttribute, SetsRequiredMembersAttribute, MaybeNullAttributeDefinition,
AllowNullAttributeDefinition
]);
7052
var comp = CreateCompilation([source, RequiredMemberAttribute, CompilerFeatureRequiredAttribute, SetsRequiredMembersAttribute, MaybeNullAttributeDefinition,
AllowNullAttributeDefinition
]);
7196
var comp = CreateCompilation([source, MaybeNullAttributeDefinition,
AllowNullAttributeDefinition
]);
7269
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
, NotNullAttributeDefinition, MaybeNullAttributeDefinition });
7327
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
});
7395
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
, MaybeNullAttributeDefinition });
Semantics\RecordTests.cs (2)
9205
var comp = CreateCompilation(new[] { src,
AllowNullAttributeDefinition
});
9236
var comp = CreateCompilation(new[] { src,
AllowNullAttributeDefinition
});
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (112)
Semantics\LambdaTests.cs (5)
4486
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
, DisallowNullAttributeDefinition });
4533
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
, DisallowNullAttributeDefinition });
4686
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
, DisallowNullAttributeDefinition });
4725
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
, DisallowNullAttributeDefinition }, parseOptions: TestOptions.RegularPreview);
4976
new[] { source,
AllowNullAttributeDefinition
, MaybeNullWhenAttributeDefinition, NotNullIfNotNullAttributeDefinition },
Semantics\LocalFunctionTests.cs (1)
6193
var comp = CreateCompilation(new[] {
AllowNullAttributeDefinition
, source }, parseOptions: TestOptions.Regular9);
Semantics\NullableReferenceTypesTests.cs (102)
29843
",
AllowNullAttributeDefinition
});
29872
",
AllowNullAttributeDefinition
, NotNullAttributeDefinition });
33026
var comp = CreateNullableCompilation(new[] { source,
AllowNullAttributeDefinition
});
34477
var comp = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, DisallowNullAttributeDefinition, source });
34623
var comp = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, DisallowNullAttributeDefinition, NotNullAttributeDefinition, NotNullIfNotNullAttributeDefinition, source });
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 },
40069
var comp = CreateCompilation(new[] {
AllowNullAttributeDefinition
, source }, options: WithNullableEnable());
40116
var comp = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, MaybeNullAttributeDefinition, source });
40187
var comp = CreateCompilation(new[] {
AllowNullAttributeDefinition
, source }, options: WithNullableEnable());
40221
var comp = CreateCompilation(new[] {
AllowNullAttributeDefinition
, source }, options: WithNullableEnable());
40256
var comp = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, source });
40291
var comp = CreateCompilation(new[] {
AllowNullAttributeDefinition
, source }, options: WithNullableEnable());
40305
var comp = CreateCompilation(new[] {
AllowNullAttributeDefinition
, source0 }, options: WithNullableEnable());
40356
var lib = CreateNullableCompilation(new[] { lib_cs,
AllowNullAttributeDefinition
});
40423
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
AllowNullAttributeDefinition
});
40476
var comp = CreateNullableCompilation(new[] { source,
AllowNullAttributeDefinition
, NotNullAttributeDefinition, MaybeNullAttributeDefinition });
40497
var comp = CreateNullableCompilation(new[] { source,
AllowNullAttributeDefinition
, NotNullAttributeDefinition, MaybeNullAttributeDefinition });
40511
var lib = CreateNullableCompilation(new[] { lib_cs,
AllowNullAttributeDefinition
});
40552
var comp = CreateNullableCompilation(new[] { source,
AllowNullAttributeDefinition
});
40579
var comp = CreateNullableCompilation(new[] { source,
AllowNullAttributeDefinition
});
40676
var comp = CreateNullableCompilation(new[] { source,
AllowNullAttributeDefinition
});
40702
var lib = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, lib_cs });
40775
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
AllowNullAttributeDefinition
, MaybeNullAttributeDefinition });
40811
var comp = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, source });
40854
var comp = CreateNullableCompilation(new[] { source,
AllowNullAttributeDefinition
});
40897
var lib = CreateNullableCompilation(new[] { lib_cs,
AllowNullAttributeDefinition
});
40951
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
AllowNullAttributeDefinition
});
41012
var comp = CreateNullableCompilation(new[] { lib_cs,
AllowNullAttributeDefinition
, DisallowNullAttributeDefinition });
41072
var lib = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, lib_cs });
41086
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
AllowNullAttributeDefinition
});
41105
var lib = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, lib_cs });
41126
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
AllowNullAttributeDefinition
});
41159
var comp = CreateNullableCompilation(new[] { source,
AllowNullAttributeDefinition
});
41213
var comp = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, source });
41256
var comp = CreateCompilation(new[] {
AllowNullAttributeDefinition
, source });
41301
var comp = CreateCompilation(new[] {
AllowNullAttributeDefinition
, source });
41329
var comp = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, source });
41725
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
, DisallowNullAttributeDefinition });
41773
var comp = CreateNullableCompilation(new[] { source,
AllowNullAttributeDefinition
});
41824
var comp = CreateNullableCompilation(new[] { source,
AllowNullAttributeDefinition
, NotNullAttributeDefinition });
42405
var comp = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) });
42448
var comp = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) });
42511
var comp = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, MaybeNullWhenAttributeDefinition, source });
42902
var comp = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source });
43634
var comp = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, source });
44076
var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition,
AllowNullAttributeDefinition
, source }, options: WithNullableEnable());
44445
var comp = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, 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 });
44983
var comp = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, source });
48593
var comp = CreateNullableCompilation(new[] {
AllowNullAttributeDefinition
, source });
48843
var comp = CreateCompilation(new[] {
AllowNullAttributeDefinition
, DisallowNullAttributeDefinition, source }, options: WithNullableEnable());
70119
var comp = CreateNullableCompilation(new[] { source,
AllowNullAttributeDefinition
, NotNullAttributeDefinition });
70708
var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition,
AllowNullAttributeDefinition
, DisallowNullAttributeDefinition });
70755
var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition,
AllowNullAttributeDefinition
, DisallowNullAttributeDefinition });
72213
",
AllowNullAttributeDefinition
, DisallowNullAttributeDefinition });
75287
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
});
75318
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
});
82017
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
, DisallowNullAttributeDefinition }, options: WithNullableEnable());
82109
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
}, options: WithNullableEnable());
82294
CreateCompilation(new[] { source,
AllowNullAttributeDefinition
, DisallowNullAttributeDefinition }, options: WithNullableEnable()).VerifyDiagnostics(
91938
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92442
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable,
AllowNullAttributeDefinition
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
147539
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
});
148121
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
}, parseOptions: TestOptions.Regular8);
148184
comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
});
148440
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8);
148455
comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
, MaybeNullAttributeDefinition });
148508
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
});
148645
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
});
148694
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
});
148726
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
, MaybeNullAttributeDefinition });
149126
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
, MaybeNullAttributeDefinition });
149158
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
, MaybeNullAttributeDefinition });
149182
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
});
149212
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
});
149248
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
});
149305
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
});
149542
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
});
149612
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
, MaybeNullAttributeDefinition });
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 });
152674
var comp = CreateCompilation(new[] { sourceA,
AllowNullAttributeDefinition
, MaybeNullAttributeDefinition });
152991
comp = CreateCompilation(new[] { sourceB1,
AllowNullAttributeDefinition
}, references: new[] { refA });
153052
comp = CreateCompilation(new[] { sourceB3,
AllowNullAttributeDefinition
}, references: new[] { refA });
153113
comp = CreateCompilation(new[] { sourceB5,
AllowNullAttributeDefinition
}, references: new[] { refA });
153162
comp = CreateCompilation(new[] { sourceB6,
AllowNullAttributeDefinition
}, references: new[] { refA });
153216
var comp = CreateCompilation(new[] { sourceA,
AllowNullAttributeDefinition
, MaybeNullAttributeDefinition });
153489
comp = CreateCompilation(new[] { sourceB2,
AllowNullAttributeDefinition
, MaybeNullAttributeDefinition }, references: new[] { refA });
158977
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
});
Semantics\UninitializedNonNullableFieldTests.cs (4)
571
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
}, options: WithNullableEnable());
590
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
}, options: WithNullableEnable());
610
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
}, options: WithNullableEnable());
633
var comp = CreateCompilation(new[] { source,
AllowNullAttributeDefinition
}, options: WithNullableEnable());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (15)
Symbols\ExtendedPartialMethodsTests.cs (11)
512
var comp = CreateCompilation(new[] { text1,
AllowNullAttributeDefinition
}, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
538
var comp = CreateCompilation(new[] { text1,
AllowNullAttributeDefinition
}, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
564
var comp = CreateCompilation(new[] { text1,
AllowNullAttributeDefinition
}, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
586
var comp = CreateCompilation(new[] { text1,
AllowNullAttributeDefinition
}, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
608
var comp = CreateCompilation(new[] { text1,
AllowNullAttributeDefinition
}, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
629
var comp = CreateCompilation(new[] { text1,
AllowNullAttributeDefinition
}, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
839
var comp = CreateCompilation(new[] { text1,
AllowNullAttributeDefinition
}, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
867
var comp = CreateCompilation(new[] { text1,
AllowNullAttributeDefinition
}, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
1644
var comp = CreateCompilation(new[] { text,
AllowNullAttributeDefinition
}, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
1678
var comp = CreateCompilation(new[] { text,
AllowNullAttributeDefinition
}, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
1714
var comp = CreateCompilation(new[] { text,
AllowNullAttributeDefinition
}, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
Symbols\RequiredMembersTests.cs (4)
6153
var comp = CreateCompilationWithRequiredMembers([code, MaybeNullAttributeDefinition,
AllowNullAttributeDefinition
]);
6232
var comp = CreateCompilationWithRequiredMembers([code, MaybeNullAttributeDefinition,
AllowNullAttributeDefinition
]);
6274
var comp = CreateCompilationWithRequiredMembers([code, MaybeNullAttributeDefinition,
AllowNullAttributeDefinition
]);
6509
var comp = CreateCompilationWithRequiredMembers([code,
AllowNullAttributeDefinition
]);