98 references to NotNullWhenAttributeDefinition
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (98)
Semantics\LambdaTests.cs (2)
4582
var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition,
NotNullWhenAttributeDefinition
, MaybeNullAttributeDefinition });
5016
var comp = CreateCompilation(new[] { source,
NotNullWhenAttributeDefinition
}, parseOptions: TestOptions.RegularPreview);
Semantics\NullableReferenceTypesTests.cs (96)
20542
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
20586
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
20624
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
20756
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
23033
", MemberNotNullAttributeDefinition,
NotNullWhenAttributeDefinition
}, parseOptions: TestOptions.Regular9);
28874
CreateCompilation(new[] { source,
NotNullWhenAttributeDefinition
}).VerifyDiagnostics(
29097
",
NotNullWhenAttributeDefinition
});
29127
",
NotNullWhenAttributeDefinition
});
29171
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
});
29188
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
});
29208
var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition,
NotNullWhenAttributeDefinition
});
29235
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
});
29273
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
});
29304
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
});
29370
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
});
29400
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
});
29423
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
});
29442
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
});
29624
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
31215
",
NotNullWhenAttributeDefinition
});
31262
",
NotNullWhenAttributeDefinition
});
31323
",
NotNullWhenAttributeDefinition
});
31447
", MaybeNullWhenAttributeDefinition,
NotNullWhenAttributeDefinition
});
31473
", MaybeNullWhenAttributeDefinition,
NotNullWhenAttributeDefinition
});
31504
", MaybeNullWhenAttributeDefinition,
NotNullWhenAttributeDefinition
});
31535
", MaybeNullWhenAttributeDefinition,
NotNullWhenAttributeDefinition
});
31562
",
NotNullWhenAttributeDefinition
});
31674
var comp = CreateNullableCompilation(new[] {
NotNullWhenAttributeDefinition
, source });
31749
",
NotNullWhenAttributeDefinition
});
31781
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
31810
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
31837
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
31869
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
31907
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
31939
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
31957
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
31984
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
33957
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
36861
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
36894
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
36923
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
36946
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
37828
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
37849
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
37881
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
37920
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
37956
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
37985
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
38014
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
38144
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
38168
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
38193
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
38227
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
38303
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
38336
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
38370
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
38488
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
38520
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
38604
",
NotNullWhenAttributeDefinition
, NotNullAttributeDefinition }, options: WithNullableEnable());
38633
",
NotNullWhenAttributeDefinition
, NotNullAttributeDefinition }, options: WithNullableEnable());
39057
",
NotNullWhenAttributeDefinition
});
39411
",
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
42084
var comp = CreateNullableCompilation(new[] {
NotNullWhenAttributeDefinition
, source });
42122
", MaybeNullWhenAttributeDefinition,
NotNullWhenAttributeDefinition
});
42478
var comp = CreateNullableCompilation(new[] {
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition, source });
42575
var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition,
NotNullWhenAttributeDefinition
, source.Replace("TYPE", type) });
42661
var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition,
NotNullWhenAttributeDefinition
, source.Replace("CONSTRAINT", constraint) });
42840
var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, NotNullAttributeDefinition,
NotNullWhenAttributeDefinition
, source.Replace("TYPE", type) });
42873
var comp = CreateNullableCompilation(new[] {
NotNullWhenAttributeDefinition
, source });
43264
var comp = CreateNullableCompilation(new[] {
NotNullWhenAttributeDefinition
, source });
43290
var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition,
NotNullWhenAttributeDefinition
, source });
43316
var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition,
NotNullWhenAttributeDefinition
, source });
45702
var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition,
NotNullWhenAttributeDefinition
, source });
45762
var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition,
NotNullWhenAttributeDefinition
, source });
45787
var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition,
NotNullWhenAttributeDefinition
, source });
50248
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
50327
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
50406
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
50470
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
50542
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
50638
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
52360
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
52447
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
52542
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
52656
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
52924
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
52972
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
53033
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
53092
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
53133
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
53185
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
, MaybeNullWhenAttributeDefinition });
53250
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
});
53282
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
});
75348
var comp = CreateCompilation(new[] { source,
NotNullWhenAttributeDefinition
});
130987
var comp = CreateCompilation(new[] { source,
NotNullWhenAttributeDefinition
}, options: WithNullableEnable());
131026
var comp = CreateNullableCompilation(new[] { source,
NotNullWhenAttributeDefinition
});