109 references to DisallowNullAttributeDefinition
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
FieldKeywordTests.cs (5)
6584
var comp = CreateCompilation([source, NotNullAttributeDefinition,
DisallowNullAttributeDefinition
]);
6758
var comp = CreateCompilation([source,
DisallowNullAttributeDefinition
]);
6781
var comp = CreateCompilation([source,
DisallowNullAttributeDefinition
]);
6912
var comp = CreateCompilation([source,
DisallowNullAttributeDefinition
]);
6936
var comp = CreateCompilation([source,
DisallowNullAttributeDefinition
]);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (104)
Semantics\LambdaTests.cs (4)
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);
Semantics\NullableReferenceTypesTests.cs (100)
20795
",
DisallowNullAttributeDefinition
}, options: WithNullableEnable());
20837
",
DisallowNullAttributeDefinition
}, options: WithNullableEnable());
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
});
34483
var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition,
DisallowNullAttributeDefinition
, source });
34629
var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition,
DisallowNullAttributeDefinition
, NotNullAttributeDefinition, NotNullIfNotNullAttributeDefinition, source });
34709
var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition,
DisallowNullAttributeDefinition
, source });
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 },
40612
var comp = CreateNullableCompilation(new[] { source,
DisallowNullAttributeDefinition
});
40645
var comp = CreateNullableCompilation(new[] { source,
DisallowNullAttributeDefinition
});
41018
var comp = CreateNullableCompilation(new[] { lib_cs, AllowNullAttributeDefinition,
DisallowNullAttributeDefinition
});
41601
var comp = CreateNullableCompilation(new[] { source,
DisallowNullAttributeDefinition
});
41626
var comp = CreateNullableCompilation(new[] { source,
DisallowNullAttributeDefinition
}, parseOptions: TestOptions.Regular9);
41731
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition,
DisallowNullAttributeDefinition
});
41861
var comp = CreateNullableCompilation(new[] { source,
DisallowNullAttributeDefinition
});
42267
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
43783
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
43809
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
43893
var comp = CreateCompilation(new[] {
DisallowNullAttributeDefinition
, source }, options: WithNullableEnable());
43949
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
43972
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
43995
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
44023
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
44082
var comp = CreateCompilation(new[] {
DisallowNullAttributeDefinition
, AllowNullAttributeDefinition, source }, options: WithNullableEnable());
44174
var comp = CreateCompilation(new[] {
DisallowNullAttributeDefinition
, source }, options: WithNullableEnable());
44234
var comp = CreateCompilation(new[] {
DisallowNullAttributeDefinition
, source }, options: WithNullableEnable());
44274
var comp = CreateCompilation(new[] {
DisallowNullAttributeDefinition
, source }, options: WithNullableEnable());
44293
var comp = CreateCompilation(new[] {
DisallowNullAttributeDefinition
, source0 }, options: WithNullableEnable());
44336
var lib = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, lib_cs });
44360
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
DisallowNullAttributeDefinition
});
44374
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source0 });
44424
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
44487
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
44529
var lib = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, lib_cs });
44605
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
DisallowNullAttributeDefinition
});
44703
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
44734
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
44782
var lib = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, lib_cs });
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 });
44968
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
45017
var comp = CreateNullableCompilation(new[] { source,
DisallowNullAttributeDefinition
});
45052
var comp = CreateNullableCompilation(new[] { source,
DisallowNullAttributeDefinition
});
45094
var comp = CreateNullableCompilation(new[] { source,
DisallowNullAttributeDefinition
});
45139
var comp = CreateNullableCompilation(new[] { source,
DisallowNullAttributeDefinition
});
45184
var comp = CreateNullableCompilation(new[] { source,
DisallowNullAttributeDefinition
});
45219
var comp = CreateNullableCompilation(new[] { source,
DisallowNullAttributeDefinition
});
45312
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
45357
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
45378
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
45400
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
45432
var lib = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, lib_cs });
45512
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
DisallowNullAttributeDefinition
});
45527
var lib = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, lib_cs });
45548
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
DisallowNullAttributeDefinition
});
45563
var lib = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, lib_cs });
45584
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
DisallowNullAttributeDefinition
});
45603
var lib = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, lib_cs });
45618
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
DisallowNullAttributeDefinition
});
45637
var lib = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, lib_cs });
45653
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
DisallowNullAttributeDefinition
});
45672
var lib = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, lib_cs });
45687
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
DisallowNullAttributeDefinition
});
48525
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
48557
var comp = CreateNullableCompilation(new[] {
DisallowNullAttributeDefinition
, source });
48849
var comp = CreateCompilation(new[] { AllowNullAttributeDefinition,
DisallowNullAttributeDefinition
, source }, options: WithNullableEnable());
51538
CreateNullableCompilation(new[] { source,
DisallowNullAttributeDefinition
}).VerifyDiagnostics(
53916
CreateNullableCompilation(new[] { source,
DisallowNullAttributeDefinition
}).VerifyDiagnostics(
54183
CreateNullableCompilation(new[] { source,
DisallowNullAttributeDefinition
}).VerifyDiagnostics(
70034
var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition,
DisallowNullAttributeDefinition
});
70189
var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition,
DisallowNullAttributeDefinition
});
70229
var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition,
DisallowNullAttributeDefinition
});
70714
var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition, AllowNullAttributeDefinition,
DisallowNullAttributeDefinition
});
70761
var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition, AllowNullAttributeDefinition,
DisallowNullAttributeDefinition
});
72219
", AllowNullAttributeDefinition,
DisallowNullAttributeDefinition
});
72836
var comp = CreateCompilation(new[] { source,
DisallowNullAttributeDefinition
}, options: WithNullableEnable());
82023
var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition,
DisallowNullAttributeDefinition
}, options: WithNullableEnable());
82300
CreateCompilation(new[] { source, AllowNullAttributeDefinition,
DisallowNullAttributeDefinition
}, options: WithNullableEnable()).VerifyDiagnostics(
91974
var comp = CreateCompilation(new[] { source,
DisallowNullAttributeDefinition
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
92478
var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable,
DisallowNullAttributeDefinition
}, options: WithNullableEnable(), parseOptions: TestOptions.Regular9);
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 });
159010
var comp = CreateCompilation(new[] { source,
DisallowNullAttributeDefinition
});
159070
var comp = CreateCompilation(new[] { source,
DisallowNullAttributeDefinition
});