13 references to RequiredMemberAttribute
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
FieldKeywordTests.cs (4)
6959
var comp = CreateCompilation([source,
RequiredMemberAttribute
, CompilerFeatureRequiredAttribute, SetsRequiredMembersAttribute]);
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]);
OverloadResolutionPriorityTests.cs (1)
1033
CreateCompilation([source,
RequiredMemberAttribute
, CompilerFeatureRequiredAttribute]).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\UninitializedNonNullableFieldTests.cs (3)
2875
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition,
RequiredMemberAttribute
, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute });
2897
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition,
RequiredMemberAttribute
, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute });
2926
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition,
RequiredMemberAttribute
, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Symbols\PartialPropertiesTests.cs (3)
2321
var verifier = CompileAndVerify([source,
RequiredMemberAttribute
, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute], expectedOutput: "A");
2351
var comp = CreateCompilation([source,
RequiredMemberAttribute
, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute]);
2377
var comp = CreateCompilation([source,
RequiredMemberAttribute
, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute]);
Symbols\RequiredMembersTests.cs (2)
23
=> CreateCompilation(new[] { source,
RequiredMemberAttribute
, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute }, references, options: options, parseOptions: parseOptions, assemblyName: assemblyName, targetFramework: targetFramework);
4125
var comp = CreateCompilation(new[] { code,
RequiredMemberAttribute
, CompilerFeatureRequiredAttribute });