14 references to WellKnownTypeData
Aspire.Hosting.Analyzers (14)
AppHostAnalyzer.cs (3)
99
var modelNameParameter = wellKnownTypes.Get(
WellKnownTypeData
.WellKnownType.Aspire_Hosting_ApplicationModel_IModelNameParameter);
100
var resourceNameAttribute = wellKnownTypes.Get(
WellKnownTypeData
.WellKnownType.Aspire_Hosting_ApplicationModel_ResourceNameAttribute);
101
var endpointNameAttribute = wellKnownTypes.Get(
WellKnownTypeData
.WellKnownType.Aspire_Hosting_ApplicationModel_EndpointNameAttribute);
Infrastructure\WellKnownTypes.cs (11)
28
for (var i = 0; i <
WellKnownTypeData
.WellKnownTypeNames.Length; i++)
30
var name =
WellKnownTypeData
.WellKnownTypeNames[i];
31
var typeId = (
WellKnownTypeData
.WellKnownType)i;
49
_lazyWellKnownTypes = new INamedTypeSymbol?[
WellKnownTypeData
.WellKnownTypeNames.Length];
58
public INamedTypeSymbol Get(
WellKnownTypeData
.WellKnownType type)
74
var result = GetTypeByMetadataNameInTargetAssembly(
WellKnownTypeData
.WellKnownTypeNames[index])
75
?? throw new InvalidOperationException($"Failed to resolve well-known type '{
WellKnownTypeData
.WellKnownTypeNames[index]}'.");
111
public bool IsType(ITypeSymbol type,
WellKnownTypeData
.WellKnownType[] wellKnownTypes) => IsType(type, wellKnownTypes, out var _);
113
public bool IsType(ITypeSymbol type,
WellKnownTypeData
.WellKnownType[] wellKnownTypes, [NotNullWhen(true)] out
WellKnownTypeData
.WellKnownType? match)
128
public bool Implements(ITypeSymbol type,
WellKnownTypeData
.WellKnownType[] interfaceWellKnownTypes)