90 references to NotNullIfNotNullAttributeDefinition
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (90)
Semantics\LambdaTests.cs (3)
4206
new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition,
NotNullIfNotNullAttributeDefinition
, MemberNotNullAttributeDefinition, MemberNotNullWhenAttributeDefinition },
4639
var comp = CreateCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
, NotNullAttributeDefinition });
4976
new[] { source, AllowNullAttributeDefinition, MaybeNullWhenAttributeDefinition,
NotNullIfNotNullAttributeDefinition
},
Semantics\LocalFunctionTests.cs (1)
6094
var comp = CreateCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, source }, parseOptions: TestOptions.Regular9);
Semantics\NullableReferenceTypesTests.cs (83)
32020
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, lib_cs });
32024
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
});
32069
var comp = CreateCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
},
32110
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
32155
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
32220
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
32259
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
32324
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
32373
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
32424
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
32498
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
32558
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
32615
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
32672
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
32717
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
32742
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
33141
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, lib_cs });
33145
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
});
33176
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, lib_cs });
33180
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
});
33211
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, lib_cs });
33215
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
});
33248
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, lib_cs });
33252
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
});
33290
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, lib_cs });
33294
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
});
33317
var comp2 = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
33345
var comp2 = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
33372
var comp2 = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
33420
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, lib_cs });
33424
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
});
33455
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, lib_cs });
33459
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
});
33494
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, lib_cs });
33498
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
});
33512
var comp = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, source });
33549
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, lib_cs });
33553
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
});
33589
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, MaybeNullWhenAttributeDefinition, lib_cs });
33593
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
, MaybeNullWhenAttributeDefinition });
33636
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, lib_cs });
33640
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
});
33683
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, lib_cs });
33687
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
});
33761
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, lib_cs });
33765
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
});
33811
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, lib_cs });
33815
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
});
33923
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, lib_cs });
33927
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
});
33998
var lib = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, MaybeNullAttributeDefinition, lib_cs });
34002
var comp2 = CreateNullableCompilation(new[] { source, lib_cs,
NotNullIfNotNullAttributeDefinition
, MaybeNullAttributeDefinition });
34026
var comp = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, source });
34049
var comp = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, source });
34075
var comp = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, source });
34101
var comp = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, source });
34130
var comp = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, source });
34157
var comp = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, source });
34188
var comp = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, source });
34225
var comp = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, source });
34261
var comp = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, source });
34298
var comp1 = CreateNullableCompilation(new[] { source1, source2,
NotNullIfNotNullAttributeDefinition
});
34309
var reference = CreateNullableCompilation(new[] { source1,
NotNullIfNotNullAttributeDefinition
}).EmitToImageReference();
34341
var comp = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, source });
34374
var comp = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, source });
34402
var comp = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, source });
34430
var comp = CreateNullableCompilation(new[] {
NotNullIfNotNullAttributeDefinition
, source });
34623
var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition, NotNullAttributeDefinition,
NotNullIfNotNullAttributeDefinition
, source });
35733
var comp = CreateCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
54001
CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
}).VerifyDiagnostics(
57994
var comp = CreateCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
}, options: WithNullableEnable(TestOptions.ReleaseExe));
70395
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
70483
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
70548
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
70605
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
70656
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
70708
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
, AllowNullAttributeDefinition, DisallowNullAttributeDefinition });
70755
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
, AllowNullAttributeDefinition, DisallowNullAttributeDefinition });
70808
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
78689
var comp = CreateNullableCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
});
144471
var comp = CreateCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
}, options: WithNullableEnable());
144702
var comp = CreateCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
}, options: WithNullableEnable());
144814
var comp = CreateCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
}, options: WithNullableEnable());
Semantics\UninitializedNonNullableFieldTests.cs (3)
2398
var comp = CreateCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
}, options: WithNullableEnable());
2424
var comp = CreateCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
}, options: WithNullableEnable());
2438
var comp = CreateCompilation(new[] { source,
NotNullIfNotNullAttributeDefinition
}, options: WithNullableEnable());