153 references to AllowNullAttributeDefinition
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (26)
FieldKeywordTests.cs (24)
6149var comp = CreateCompilation([source, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 6178var comp = CreateCompilation([source, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 6207var comp = CreateCompilation([source, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 6240var comp = CreateCompilation([source, AllowNullAttributeDefinition]); 6273var comp = CreateCompilation([source, AllowNullAttributeDefinition]); 6302var comp = CreateCompilation([source, AllowNullAttributeDefinition]); 6334var comp = CreateCompilation([source, AllowNullAttributeDefinition]); 6362var comp = CreateCompilation([source, AllowNullAttributeDefinition]); 6395var comp = CreateCompilation([source, AllowNullAttributeDefinition]); 6426var comp = CreateCompilation([source, AllowNullAttributeDefinition]); 6458var comp = CreateCompilation([source, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 6490var comp = CreateCompilation([source, AllowNullAttributeDefinition]); 6519var comp = CreateCompilation([source, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 6808var comp = CreateCompilation([source, AllowNullAttributeDefinition]); 6827var comp = CreateCompilation([source, AllowNullAttributeDefinition]); 6857var comp = CreateCompilation([source, AllowNullAttributeDefinition]); 6888var comp = CreateCompilation([source, AllowNullAttributeDefinition]); 6990var comp = CreateCompilation([source, RequiredMemberAttribute, CompilerFeatureRequiredAttribute, SetsRequiredMembersAttribute, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 7020var comp = CreateCompilation([source, RequiredMemberAttribute, CompilerFeatureRequiredAttribute, SetsRequiredMembersAttribute, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 7052var comp = CreateCompilation([source, RequiredMemberAttribute, CompilerFeatureRequiredAttribute, SetsRequiredMembersAttribute, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 7196var comp = CreateCompilation([source, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 7269var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 7327var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 7395var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition });
Semantics\RecordTests.cs (2)
9205var comp = CreateCompilation(new[] { src, AllowNullAttributeDefinition }); 9236var comp = CreateCompilation(new[] { src, AllowNullAttributeDefinition });
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (112)
Semantics\LambdaTests.cs (5)
4486var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 4533var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 4686var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 4725var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4976new[] { source, AllowNullAttributeDefinition, MaybeNullWhenAttributeDefinition, NotNullIfNotNullAttributeDefinition },
Semantics\LocalFunctionTests.cs (1)
6193var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, parseOptions: TestOptions.Regular9);
Semantics\NullableReferenceTypesTests.cs (102)
29843", AllowNullAttributeDefinition }); 29872", AllowNullAttributeDefinition, NotNullAttributeDefinition }); 33026var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition }); 34477var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition, source }); 34623var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition, NotNullAttributeDefinition, NotNullIfNotNullAttributeDefinition, source }); 39585new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39656new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39714new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39780var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 39858new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39896new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39942new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39994new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 40069var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 40116var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 40187var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 40221var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 40256var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 40291var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 40305var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source0 }, options: WithNullableEnable()); 40356var lib = CreateNullableCompilation(new[] { lib_cs, AllowNullAttributeDefinition }); 40423var comp2 = CreateNullableCompilation(new[] { source, lib_cs, AllowNullAttributeDefinition }); 40476var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 40497var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 40511var lib = CreateNullableCompilation(new[] { lib_cs, AllowNullAttributeDefinition }); 40552var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition }); 40579var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition }); 40676var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition }); 40702var lib = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, lib_cs }); 40775var comp2 = CreateNullableCompilation(new[] { source, lib_cs, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 40811var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 40854var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition }); 40897var lib = CreateNullableCompilation(new[] { lib_cs, AllowNullAttributeDefinition }); 40951var comp2 = CreateNullableCompilation(new[] { source, lib_cs, AllowNullAttributeDefinition }); 41012var comp = CreateNullableCompilation(new[] { lib_cs, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 41072var lib = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, lib_cs }); 41086var comp2 = CreateNullableCompilation(new[] { source, lib_cs, AllowNullAttributeDefinition }); 41105var lib = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, lib_cs }); 41126var comp2 = CreateNullableCompilation(new[] { source, lib_cs, AllowNullAttributeDefinition }); 41159var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition }); 41213var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 41256var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }); 41301var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, source }); 41329var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 41725var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 41773var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition }); 41824var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, NotNullAttributeDefinition }); 42405var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42448var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42511var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 42902var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 43634var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 44076var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 44445var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 44875var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }, 44879var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 44916var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition, lib_cs }); 44942var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 44983var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 48593var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, source }); 48843var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 70119var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, NotNullAttributeDefinition }); 70708var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 70755var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 72213", AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 75287var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 75318var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 82017var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }, options: WithNullableEnable()); 82109var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable()); 82294CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }, options: WithNullableEnable()).VerifyDiagnostics( 91938var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92442var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, AllowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 147539var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 148121var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148184comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 148440var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148455comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 148508var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 148645var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 148694var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 148726var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 149126var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 149158var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 149182var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 149212var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 149248var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 149305var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 149542var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }); 149612var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 149652var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, NotNullAttributeDefinition }); 149717var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149765var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149802var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149847var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 152674var comp = CreateCompilation(new[] { sourceA, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 152991comp = CreateCompilation(new[] { sourceB1, AllowNullAttributeDefinition }, references: new[] { refA }); 153052comp = CreateCompilation(new[] { sourceB3, AllowNullAttributeDefinition }, references: new[] { refA }); 153113comp = CreateCompilation(new[] { sourceB5, AllowNullAttributeDefinition }, references: new[] { refA }); 153162comp = CreateCompilation(new[] { sourceB6, AllowNullAttributeDefinition }, references: new[] { refA }); 153216var comp = CreateCompilation(new[] { sourceA, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 153489comp = CreateCompilation(new[] { sourceB2, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }, references: new[] { refA }); 158977var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition });
Semantics\UninitializedNonNullableFieldTests.cs (4)
571var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable()); 590var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable()); 610var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable()); 633var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition }, options: WithNullableEnable());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (15)
Symbols\ExtendedPartialMethodsTests.cs (11)
512var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 538var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 564var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 586var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 608var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 629var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 839var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 867var comp = CreateCompilation(new[] { text1, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1644var comp = CreateCompilation(new[] { text, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1678var comp = CreateCompilation(new[] { text, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods); 1714var comp = CreateCompilation(new[] { text, AllowNullAttributeDefinition }, parseOptions: TestOptions.RegularWithExtendedPartialMethods);
Symbols\RequiredMembersTests.cs (4)
6153var comp = CreateCompilationWithRequiredMembers([code, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 6232var comp = CreateCompilationWithRequiredMembers([code, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 6274var comp = CreateCompilationWithRequiredMembers([code, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 6509var comp = CreateCompilationWithRequiredMembers([code, AllowNullAttributeDefinition]);