172 references to MaybeNullAttributeDefinition
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (15)
FieldKeywordTests.cs (14)
6062var comp = CreateCompilation([source, MaybeNullAttributeDefinition]); 6091var comp = CreateCompilation([source, MaybeNullAttributeDefinition]); 6123var comp = CreateCompilation([source, MaybeNullAttributeDefinition]); 6149var comp = CreateCompilation([source, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 6178var comp = CreateCompilation([source, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 6207var comp = CreateCompilation([source, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 6458var comp = CreateCompilation([source, MaybeNullAttributeDefinition, AllowNullAttributeDefinition]); 6519var comp = CreateCompilation([source, MaybeNullAttributeDefinition, 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 }); 7395var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition });
Semantics\RecordTests.cs (1)
9410var comp = CreateCompilation(new[] { src, MaybeNullAttributeDefinition });
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (157)
Semantics\LambdaTests.cs (6)
4206new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition, NotNullIfNotNullAttributeDefinition, MemberNotNullAttributeDefinition, MemberNotNullWhenAttributeDefinition }, 4238var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition }, parseOptions: TestOptions.RegularPreview); 4285var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 4359var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 4406var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 4582var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition, MaybeNullAttributeDefinition });
Semantics\LocalFunctionTests.cs (1)
6222var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, parseOptions: TestOptions.Regular9);
Semantics\NullableReferenceTypesTests.cs (143)
28989", MaybeNullAttributeDefinition }); 29016", MaybeNullAttributeDefinition }); 29064", MaybeNullAttributeDefinition }); 29208var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition }); 29759", MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 29790", MaybeNullAttributeDefinition }); 29811", MaybeNullAttributeDefinition }, options: WithNullableEnable()); 29906", MaybeNullAttributeDefinition }, options: WithNullableEnable()); 30064", MaybeNullAttributeDefinition }, options: WithNullableEnable()); 30100var lib = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, lib_cs }); 30163var comp2 = CreateNullableCompilation(new[] { source, lib_cs, MaybeNullAttributeDefinition }); 30248var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30266var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }); 30342var lib = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, lib_cs }); 30391var comp2 = CreateNullableCompilation(new[] { source, lib_cs, MaybeNullAttributeDefinition }); 30419var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30457var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30492var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30525var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30562var lib = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, lib_cs }); 30610var comp2 = CreateNullableCompilation(new[] { source, lib_cs, MaybeNullAttributeDefinition }); 30638var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30673var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30696var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 30722var lib = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, lib_cs }); 30788var comp2 = CreateNullableCompilation(new[] { source, lib_cs, MaybeNullAttributeDefinition }); 30827var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30851var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30877var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30903var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30925var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 31413", MaybeNullWhenAttributeDefinition, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 33111var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 33998var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, MaybeNullAttributeDefinition, lib_cs }); 34002var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition, MaybeNullAttributeDefinition }); 34703var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition, 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 }, 40116var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 40476var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 40497var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 40772var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }, references: new[] { lib.EmitToImageReference() }); 40775var comp2 = CreateNullableCompilation(new[] { source, lib_cs, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 41535var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 42143", MaybeNullAttributeDefinition }); 42305var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 42405var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42448var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42902var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 43290var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 43316var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 43371var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 43514var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 43667var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, MaybeNullAttributeDefinition, source }); 43714var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, MaybeNullAttributeDefinition, 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 }); 45734var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }); 45762var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 45787var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 45847var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 45967var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46093var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }, options: WithNullableEnable()); 46191var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46217var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46235var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source0 }, options: WithNullableEnable()); 46285var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source0 }, options: WithNullableEnable()); 46345var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46390", MaybeNullAttributeDefinition }, options: WithNullableEnable()); 46493var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 46647var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 46743var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 46773var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 46792var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source0 }); 46848var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source0 }); 46924var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 47056var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }, parseOptions: TestOptions.Regular8); 47175var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 47214var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }); 47243var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 47538var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, source0 }); 47590var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 48367var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 48404var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 48469var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 48800var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 68266", GetInterpolatedStringCustomHandlerType("CustomHandler<T>", "partial struct", useBoolReturns, includeTrailingOutConstructorParameter: validityParameter), InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }, 68626var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 68824var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 68976var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 69004var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 69032var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 70028var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition }); 70075var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition }); 70183var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition }); 70223var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition }); 70254var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 72266", MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 91140var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 91199var comp = CreateCompilationWithTasksExtensions(new[] { source, MaybeNullAttributeDefinition }); 91644var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 91908var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92088var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92412var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92595var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 148013var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148028comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148356var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148368comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148440var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148455comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 148608var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148614comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148726var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 148808var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148912var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148959var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148999var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149043var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149067var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149126var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 149158var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 149336var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149359var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149612var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 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 }); 153216var comp = CreateCompilation(new[] { sourceA, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 153489comp = CreateCompilation(new[] { sourceB2, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }, references: new[] { refA }); 155898var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 158932var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition, DoesNotReturnAttributeDefinition, DoesNotReturnIfAttributeDefinition }); 160606var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition });
Semantics\UninitializedNonNullableFieldTests.cs (7)
666var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 1350var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 2662var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 2677var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 2692var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 2707var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 2722var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable());