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)
28995", MaybeNullAttributeDefinition }); 29022", MaybeNullAttributeDefinition }); 29070", MaybeNullAttributeDefinition }); 29214var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition }); 29765", MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 29796", MaybeNullAttributeDefinition }); 29817", MaybeNullAttributeDefinition }, options: WithNullableEnable()); 29912", MaybeNullAttributeDefinition }, options: WithNullableEnable()); 30070", MaybeNullAttributeDefinition }, options: WithNullableEnable()); 30106var lib = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, lib_cs }); 30169var comp2 = CreateNullableCompilation(new[] { source, lib_cs, MaybeNullAttributeDefinition }); 30254var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30272var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }); 30348var lib = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, lib_cs }); 30397var comp2 = CreateNullableCompilation(new[] { source, lib_cs, MaybeNullAttributeDefinition }); 30425var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30463var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30498var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30531var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30568var lib = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, lib_cs }); 30616var comp2 = CreateNullableCompilation(new[] { source, lib_cs, MaybeNullAttributeDefinition }); 30644var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30679var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30702var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 30728var lib = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, lib_cs }); 30794var comp2 = CreateNullableCompilation(new[] { source, lib_cs, MaybeNullAttributeDefinition }); 30833var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30857var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30883var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30909var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 30931var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 31419", MaybeNullWhenAttributeDefinition, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 33117var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 34004var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, MaybeNullAttributeDefinition, lib_cs }); 34008var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition, MaybeNullAttributeDefinition }); 34709var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition, source }); 39591new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39662new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39720new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39786var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 39864new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39902new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39948new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 40000new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 40122var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 40482var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 40503var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 40778var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }, references: new[] { lib.EmitToImageReference() }); 40781var comp2 = CreateNullableCompilation(new[] { source, lib_cs, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 41541var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 42149", MaybeNullAttributeDefinition }); 42311var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 42411var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42454var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42908var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 43296var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 43322var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 43377var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 43520var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 43673var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, MaybeNullAttributeDefinition, source }); 43720var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, MaybeNullAttributeDefinition, source }); 44881var comp = CreateNullableCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }, 44885var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 44922var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition, lib_cs }); 44948var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 45740var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }); 45768var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 45793var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 45853var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 45973var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46099var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }, options: WithNullableEnable()); 46197var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46223var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46241var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source0 }, options: WithNullableEnable()); 46291var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source0 }, options: WithNullableEnable()); 46351var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }, options: WithNullableEnable()); 46396", MaybeNullAttributeDefinition }, options: WithNullableEnable()); 46499var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 46653var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 46749var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 46779var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 46798var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source0 }); 46854var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source0 }); 46930var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 47062var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }, parseOptions: TestOptions.Regular8); 47181var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, source }); 47220var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, source }); 47249var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 47544var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, source0 }); 47596var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 48373var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 48410var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 48475var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, source }); 48806var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, NotNullAttributeDefinition, source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular8); 68272", GetInterpolatedStringCustomHandlerType("CustomHandler<T>", "partial struct", useBoolReturns, includeTrailingOutConstructorParameter: validityParameter), InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }, 68632var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 68830var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 68982var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 69010var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 69038var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute, MaybeNullAttributeDefinition }); 70034var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition }); 70081var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition }); 70189var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition }); 70229var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition }); 70260var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 72272", MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 91146var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 91205var comp = CreateCompilationWithTasksExtensions(new[] { source, MaybeNullAttributeDefinition }); 91650var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 91914var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92094var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92418var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92601var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, MaybeNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 148019var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148034comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148362var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148374comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148446var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148461comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 148614var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }, parseOptions: TestOptions.Regular8); 148620comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148732var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 148814var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148918var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 148965var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149005var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149049var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149073var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149132var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 149164var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 149342var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149365var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition }); 149618var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 149723var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149771var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149808var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149853var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 152680var comp = CreateCompilation(new[] { sourceA, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 153222var comp = CreateCompilation(new[] { sourceA, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }); 153495comp = CreateCompilation(new[] { sourceB2, AllowNullAttributeDefinition, MaybeNullAttributeDefinition }, references: new[] { refA }); 155904var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition }); 158938var comp = CreateCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition, DoesNotReturnAttributeDefinition, DoesNotReturnIfAttributeDefinition }); 160612var 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());