5 implementations of ConstructedFrom
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
84INamedTypeSymbol INamedTypeSymbol.ConstructedFrom => this.ConstructedFrom;
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\NamedTypeSymbol.cs (1)
123INamedTypeSymbol INamedTypeSymbol.ConstructedFrom
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
74public INamedTypeSymbol ConstructedFrom => _symbol.ConstructedFrom;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamedTypeSymbol.vb (1)
1321Private ReadOnly Property INamedTypeSymbol_ConstructedFrom As INamedTypeSymbol Implements INamedTypeSymbol.ConstructedFrom
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
84INamedTypeSymbol INamedTypeSymbol.ConstructedFrom => this.ConstructedFrom;
65 references to ConstructedFrom
Microsoft.AspNetCore.App.Analyzers (6)
RouteHandlers\DisallowNonParsableComplexTypesOnParameters.cs (1)
131if (parameterTypeSymbol!.ConstructedFrom.SpecialType == SpecialType.System_Nullable_T)
src\Shared\RoslynUtils\ParsabilityHelper.cs (4)
119i => SymbolEqualityComparer.Default.Equals(i.ConstructedFrom, iParsableTypeSymbol) 128i => SymbolEqualityComparer.Default.Equals(i.ConstructedFrom, iBindableFromHttpContextTypeSymbol) 141SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, wellKnownTypes.Get(WellKnownType.System_Threading_Tasks_ValueTask_T)) && 158return SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, wellKnownTypes.Get(WellKnownType.System_Threading_Tasks_ValueTask_T)) &&
src\Shared\RoslynUtils\SymbolExtensions.cs (1)
34if (unwrapNullable && unwrappedTypeSymbol?.ConstructedFrom.SpecialType == SpecialType.System_Nullable_T)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (5)
src\Shared\RoslynUtils\ParsabilityHelper.cs (4)
119i => SymbolEqualityComparer.Default.Equals(i.ConstructedFrom, iParsableTypeSymbol) 128i => SymbolEqualityComparer.Default.Equals(i.ConstructedFrom, iBindableFromHttpContextTypeSymbol) 141SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, wellKnownTypes.Get(WellKnownType.System_Threading_Tasks_ValueTask_T)) && 158return SymbolEqualityComparer.Default.Equals(returnType.ConstructedFrom, wellKnownTypes.Get(WellKnownType.System_Threading_Tasks_ValueTask_T)) &&
src\Shared\RoslynUtils\SymbolExtensions.cs (1)
34if (unwrapNullable && unwrappedTypeSymbol?.ConstructedFrom.SpecialType == SpecialType.System_Nullable_T)
Microsoft.CodeAnalysis.CodeStyle (7)
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
154if (type is not INamedTypeSymbol namedType || namedType.ConstructedFrom.SpecialType != SpecialType.System_Nullable_T)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.AnonymousTypeRemover.cs (1)
50return symbol.ConstructedFrom.Construct([.. arguments]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
48return symbol.ConstructedFrom.Construct([.. arguments]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (1)
52return symbol.ConstructedFrom.Construct([.. arguments]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
35var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29if (!symbol.Equals(symbol.ConstructedFrom) && !symbol.IsUnboundGenericType)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
190=> symbol.Equals(symbol.ConstructedFrom);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (1)
202typeToGenerateIn = typeToGenerateIn.ConstructUnboundGenericType().ConstructedFrom;
Microsoft.CodeAnalysis.CSharp.Features (2)
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
66if (namedType.ConstructedFrom.SpecialType == SpecialType.System_Nullable_T &&
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (1)
202typeToGenerateIn = typeToGenerateIn.ConstructUnboundGenericType().ConstructedFrom;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NativeIntegerTests.cs (1)
240Assert.Same(type, type.ConstructedFrom);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\GetSemanticInfoTests.cs (1)
5425type = type.BaseType.ConstructedFrom;
Compilation\SemanticModelGetSemanticInfoTests.cs (3)
9271var constructedFrom = type.ConstructedFrom; 9272Assert.Equal(constructedFrom, constructedFrom.ConstructedFrom); 9289Assert.False(a.ConstructedFrom.IsUnboundGenericType);
Symbols\Source\TypeMapTests.cs (1)
70Assert.Equal(at, at.ConstructedFrom);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
849return ((INamedTypeSymbol)symbol).ConstructedFrom;
Microsoft.CodeAnalysis.Features (4)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
74public INamedTypeSymbol ConstructedFrom => _symbol.ConstructedFrom;
RQName\RQNodeBuilder.cs (2)
70if (type != type.ConstructedFrom || type.SpecialType == SpecialType.System_Void) 306var definingType = namedTypeSymbol.ConstructedFrom ?? namedTypeSymbol;
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
154if (type is not INamedTypeSymbol namedType || namedType.ConstructedFrom.SpecialType != SpecialType.System_Nullable_T)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamedTypeSymbol.vb (1)
1321Private ReadOnly Property INamedTypeSymbol_ConstructedFrom As INamedTypeSymbol Implements INamedTypeSymbol.ConstructedFrom
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateConversionService.vb (1)
147typeToGenerateIn = typeToGenerateIn.ConstructUnboundGenericType.ConstructedFrom
Microsoft.CodeAnalysis.VisualBasic.Features (1)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateConversionService.vb (1)
147typeToGenerateIn = typeToGenerateIn.ConstructUnboundGenericType.ConstructedFrom
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\NativeIntegerTests.vb (1)
54Assert.Same(type, type.ConstructedFrom)
Microsoft.CodeAnalysis.Workspaces (9)
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (3)
82return nt.ConstructedFrom.Equals(referencedSymbol) 127&& Equals(possibleConstructor.ContainingType.ConstructedFrom, namedType.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.AnonymousTypeRemover.cs (1)
50return symbol.ConstructedFrom.Construct([.. arguments]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
48return symbol.ConstructedFrom.Construct([.. arguments]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (1)
52return symbol.ConstructedFrom.Construct([.. arguments]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
35var isConstructed = !symbol.Equals(symbol.ConstructedFrom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
29if (!symbol.Equals(symbol.ConstructedFrom) && !symbol.IsUnboundGenericType)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
190=> symbol.Equals(symbol.ConstructedFrom);
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSManagedTypeInfo.cs (1)
102case INamedTypeSymbol { ConstructedFrom.SpecialType: SpecialType.System_Nullable_T } nullable:
Microsoft.Interop.SourceGeneration (12)
CustomMarshallingInfoHelper.cs (1)
54entryPointType = entryPointType.ConstructedFrom.Construct(
MarshallerShape.cs (9)
228if (!SymbolEqualityComparer.Default.Equals(spanOfT, namedType.ConstructedFrom) || namedType.TypeArguments.Length != 1) 348&& SymbolEqualityComparer.Default.Equals(readOnlySpanOfT, returnType.ConstructedFrom)); 358&& SymbolEqualityComparer.Default.Equals(spanOfT, returnType.ConstructedFrom)); 388&& SymbolEqualityComparer.Default.Equals(spanOfT, returnType.ConstructedFrom)); 398&& SymbolEqualityComparer.Default.Equals(readOnlySpanOfT, returnType.ConstructedFrom)); 691&& SymbolEqualityComparer.Default.Equals(readOnlySpanOfT, returnType.ConstructedFrom)); 700&& SymbolEqualityComparer.Default.Equals(spanOfT, returnType.ConstructedFrom)); 710&& SymbolEqualityComparer.Default.Equals(spanOfT, returnType.ConstructedFrom)); 720&& SymbolEqualityComparer.Default.Equals(readOnlySpanOfT, returnType.ConstructedFrom));
TypeSymbolExtensions.cs (2)
210(INamedTypeSymbol namedType, INamedTypeSymbol namedOther) => SymbolEqualityComparer.Default.Equals(namedType.ConstructedFrom, namedOther.ConstructedFrom),
Microsoft.VisualStudio.LanguageServices (2)
Progression\GraphNodeIdCreation.cs (2)
156if (namedType.ContainingType == null && Equals(namedType.ConstructedFrom, namedType) && namedType.Arity == 0) 187var hasGenericArguments = (!Equals(namedType.ConstructedFrom, namedType) || isInGenericArguments) && namedType.TypeArguments != null && namedType.TypeArguments.Any();
System.Text.Json.SourceGeneration (5)
Helpers\KnownTypeSymbols.cs (2)
267if (type is not INamedTypeSymbol { IsGenericType: true, ConstructedFrom: INamedTypeSymbol genericTypeDef }) 320if (type is not INamedTypeSymbol { IsGenericType: true, ConstructedFrom: INamedTypeSymbol genericTypeDef })
Helpers\RoslynExtensions.cs (3)
96type = namedType.ConstructedFrom.Construct(erasedTypeArgs); 183return candidate.IsGenericType && SymbolEqualityComparer.Default.Equals(candidate.ConstructedFrom, baseType); 188=> type is INamedTypeSymbol { IsGenericType: true } namedType && SymbolEqualityComparer.Default.Equals(namedType, namedType.ConstructedFrom);