82 references to MaybeNullWhenAttributeDefinition
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (82)
Semantics\LambdaTests.cs (2)
4582
var comp = CreateCompilation(new[] { source,
MaybeNullWhenAttributeDefinition
, NotNullWhenAttributeDefinition, MaybeNullAttributeDefinition });
4976
new[] { source, AllowNullAttributeDefinition,
MaybeNullWhenAttributeDefinition
, NotNullIfNotNullAttributeDefinition },
Semantics\LocalFunctionTests.cs (3)
6125
var comp = CreateCompilation(new[] {
MaybeNullWhenAttributeDefinition
, source }, parseOptions: TestOptions.Regular9);
6163
var comp = CreateCompilation(new[] {
MaybeNullWhenAttributeDefinition
, source }, parseOptions: TestOptions.Regular9);
6263
var comp = CreateCompilation(new[] {
MaybeNullWhenAttributeDefinition
, source }, parseOptions: TestOptions.Regular9);
Semantics\NullableReferenceTypesTests.cs (77)
26420
", MemberNotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
26463
", MemberNotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
26514
", MemberNotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
28611
",
MaybeNullWhenAttributeDefinition
}, options: WithNullableEnable());
28635
",
MaybeNullWhenAttributeDefinition
}, options: WithNullableEnable());
28747
var comp = CreateNullableCompilation(new[] {
MaybeNullWhenAttributeDefinition
, source });
28901
",
MaybeNullWhenAttributeDefinition
});
28933
",
MaybeNullWhenAttributeDefinition
});
28970
",
MaybeNullWhenAttributeDefinition
});
29342
var comp = CreateNullableCompilation(new[] { source,
MaybeNullWhenAttributeDefinition
});
29588
var comp = CreateNullableCompilation(new[] { source,
MaybeNullWhenAttributeDefinition
});
29630
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
29654
",
MaybeNullWhenAttributeDefinition
}, options: WithNullableEnable());
29689
",
MaybeNullWhenAttributeDefinition
});
29727
",
MaybeNullWhenAttributeDefinition
});
29943
",
MaybeNullWhenAttributeDefinition
}, options: WithNullableEnable());
29975
",
MaybeNullWhenAttributeDefinition
}, options: WithNullableEnable());
30005
",
MaybeNullWhenAttributeDefinition
}, options: WithNullableEnable());
30041
",
MaybeNullWhenAttributeDefinition
}, options: WithNullableEnable());
30961
",
MaybeNullWhenAttributeDefinition
}, options: WithNullableEnable());
30992
",
MaybeNullWhenAttributeDefinition
}, options: WithNullableEnable());
31355
",
MaybeNullWhenAttributeDefinition
});
31387
",
MaybeNullWhenAttributeDefinition
}, options: WithNullableEnable());
31419
",
MaybeNullWhenAttributeDefinition
, MaybeNullAttributeDefinition }, options: WithNullableEnable());
31453
",
MaybeNullWhenAttributeDefinition
, NotNullWhenAttributeDefinition });
31479
",
MaybeNullWhenAttributeDefinition
, NotNullWhenAttributeDefinition });
31510
",
MaybeNullWhenAttributeDefinition
, NotNullWhenAttributeDefinition });
31541
",
MaybeNullWhenAttributeDefinition
, NotNullWhenAttributeDefinition });
33595
var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition,
MaybeNullWhenAttributeDefinition
, lib_cs });
33599
var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
38558
",
MaybeNullWhenAttributeDefinition
}, options: WithNullableEnable());
38583
",
MaybeNullWhenAttributeDefinition
}, options: WithNullableEnable());
41573
var comp = CreateNullableCompilation(new[] { source,
MaybeNullWhenAttributeDefinition
});
42128
",
MaybeNullWhenAttributeDefinition
, NotNullWhenAttributeDefinition });
42311
var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition,
MaybeNullWhenAttributeDefinition
, source });
42354
var comp = CreateNullableCompilation(new[] {
MaybeNullWhenAttributeDefinition
, source.Replace("TYPE", type) });
42411
var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition,
MaybeNullWhenAttributeDefinition
, source.Replace("TYPE", type) });
42454
var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition,
MaybeNullWhenAttributeDefinition
, source.Replace("TYPE", type) });
42484
var comp = CreateNullableCompilation(new[] { NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
, source });
42517
var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition,
MaybeNullWhenAttributeDefinition
, source });
42846
var comp = CreateNullableCompilation(new[] {
MaybeNullWhenAttributeDefinition
, NotNullAttributeDefinition, NotNullWhenAttributeDefinition, source.Replace("TYPE", type) });
42908
var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition,
MaybeNullWhenAttributeDefinition
, source });
43348
var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition,
MaybeNullWhenAttributeDefinition
, source });
43442
var comp = CreateNullableCompilation(new[] {
MaybeNullWhenAttributeDefinition
, source });
43465
var comp = CreateCompilation(new[] {
MaybeNullWhenAttributeDefinition
, source });
43494
var comp = CreateCompilation(new[] {
MaybeNullWhenAttributeDefinition
, source });
43562
var comp = CreateNullableCompilation(new[] {
MaybeNullWhenAttributeDefinition
, source });
43603
var comp = CreateNullableCompilation(new[] {
MaybeNullWhenAttributeDefinition
, source });
43673
var comp = CreateNullableCompilation(new[] {
MaybeNullWhenAttributeDefinition
, MaybeNullAttributeDefinition, source });
43720
var comp = CreateNullableCompilation(new[] {
MaybeNullWhenAttributeDefinition
, MaybeNullAttributeDefinition, source });
45708
var comp = CreateNullableCompilation(new[] {
MaybeNullWhenAttributeDefinition
, NotNullWhenAttributeDefinition, source });
47249
var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition,
MaybeNullWhenAttributeDefinition
, source });
48733
var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition,
MaybeNullWhenAttributeDefinition
, source });
48758
var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition,
MaybeNullWhenAttributeDefinition
, source });
50254
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
50333
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
50412
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
50476
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
50548
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
50644
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
52366
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
52453
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
52548
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
52662
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
52930
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
52978
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
53039
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
53098
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
53139
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
53191
var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
70081
var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition,
MaybeNullWhenAttributeDefinition
});
156859
var comp = CreateCompilation(new[] { source,
MaybeNullWhenAttributeDefinition
});
156886
var comp = CreateCompilation(new[] { source,
MaybeNullWhenAttributeDefinition
});
156928
var comp = CreateCompilation(new[] { source,
MaybeNullWhenAttributeDefinition
});
156964
var comp = CreateCompilation(new[] { source,
MaybeNullWhenAttributeDefinition
});
156998
var comp = CreateCompilation(new[] { source,
MaybeNullWhenAttributeDefinition
});
157174
var comp = CreateCompilation(new[] { source,
MaybeNullWhenAttributeDefinition
});