31 references to MappedTypeKind
Aspire.Hosting.Azure.Provisioning.Generators (31)
AspireProvisioningProxyGenerator.cs (31)
880if (mappedType is { Kind: MappedTypeKind.BicepValue, LiteralTypeName: not null })
897if (mappedType.Kind == MappedTypeKind.BicepValue)
911if (canWrite && mappedType.Kind == MappedTypeKind.BicepValue)
1211mappedType.Kind is MappedTypeKind.Proxy or MappedTypeKind.Collection or MappedTypeKind.ProvisionableResource;
1831parameter.Type.Kind is MappedTypeKind.Proxy or MappedTypeKind.ProvisionableResource or MappedTypeKind.Collection)
1858mappedType.Kind is MappedTypeKind.BicepValue or MappedTypeKind.Collection)
1978return parameter.Type.Kind is MappedTypeKind.Proxy or MappedTypeKind.ProvisionableResource &&
2299if (mappedType is { Kind: MappedTypeKind.BicepValue, LiteralTypeName: not null })
2423mappedType = new MappedType("void", MappedTypeKind.Direct);
2442MappedTypeKind.BicepValue,
2450mappedType = new MappedType(type.ToDisplayString(s_typeDisplayFormat), MappedTypeKind.Direct);
2467MappedTypeKind.Proxy,
2476mappedType = new MappedType(collectionProxyName + (isNullable ? "?" : string.Empty), MappedTypeKind.Collection, isNullable: isNullable);
2485MappedTypeKind.ProvisionableResource,
2707case MappedTypeKind.Direct:
2710case MappedTypeKind.BicepValue:
2713case MappedTypeKind.Proxy:
2714case MappedTypeKind.Collection:
2715case MappedTypeKind.ProvisionableResource:
2736if (mappedType.Kind is MappedTypeKind.Proxy or MappedTypeKind.Collection or MappedTypeKind.ProvisionableResource)
2740else if (mappedType.Kind == MappedTypeKind.BicepValue)
2896MappedTypeKind kind,
2912public MappedTypeKind Kind { get; }