17 overrides of HasCollectionBuilderAttribute
Microsoft.CodeAnalysis.CSharp (16)
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
305
internal sealed override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
345
internal sealed override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Symbols\ErrorTypeSymbol.cs (1)
582
internal sealed override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
2914
internal sealed override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Symbols\NativeIntegerTypeSymbol.cs (1)
291
internal sealed override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
457
internal sealed override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Symbols\Source\ImplicitNamedTypeSymbol.cs (1)
191
internal sealed override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1380
internal sealed override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Symbols\SubstitutedNamedTypeSymbol.cs (1)
446
internal sealed override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
255
internal override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
979
internal override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Symbols\Synthesized\SynthesizedContainer.cs (1)
224
internal sealed override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
221
internal sealed override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
167
internal sealed override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
172
internal override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
176
internal override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\MockNamedTypeSymbol.cs (1)
362
internal sealed override bool
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName)
12 references to HasCollectionBuilderAttribute
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Conversions.cs (1)
1428
bool result = namedType.
HasCollectionBuilderAttribute
(out TypeSymbol? builderType, out string? methodName);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1674
else if ((destination as NamedTypeSymbol)?.
HasCollectionBuilderAttribute
(out _, out _) == true)
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
459
bool result = _underlyingType.
HasCollectionBuilderAttribute
(out builderType, out methodName);
Symbols\SubstitutedNamedTypeSymbol.cs (1)
448
return _underlyingType.
HasCollectionBuilderAttribute
(out builderType, out methodName);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Semantics\CollectionExpressionTests.cs (8)
19017
Assert.True(collectionType.
HasCollectionBuilderAttribute
(out builderType, out methodName));
21121
Assert.True(collectionType.
HasCollectionBuilderAttribute
(out builderType, out methodName));
21127
Assert.True(originalType.
HasCollectionBuilderAttribute
(out builderType, out methodName));
21181
Assert.True(collectionType.
HasCollectionBuilderAttribute
(out builderType, out methodName));
21187
Assert.True(originalType.
HasCollectionBuilderAttribute
(out builderType, out methodName));
21238
Assert.False(collectionType.
HasCollectionBuilderAttribute
(out _, out _));
21242
Assert.False(originalType.
HasCollectionBuilderAttribute
(out _, out _));
21291
Assert.True(collectionType.
HasCollectionBuilderAttribute
(out builderType, out methodName));