2 instantiations of TypeRef
ConfigurationSchemaGenerator (2)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
170
return new
TypeRef
(memberTypeSymbol);
RuntimeSource\Configuration.Binder\Specs\Types\TypeSpec.cs (1)
15
TypeRef = new
TypeRef
(type);
25 references to TypeRef
ConfigurationSchemaGenerator (25)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (7)
159
private
TypeRef
EnqueueTransitiveType(TypeParseInfo containingTypeParseInfo, ITypeSymbol memberTypeSymbol, DiagnosticDescriptor diagDescriptor, string? memberName = null)
180
TypeRef
underlyingTypeRef = EnqueueTransitiveType(
351
TypeRef
elementTypeRef = EnqueueTransitiveType(
430
TypeRef
keyTypeRef = EnqueueTransitiveType(typeParseInfo, keyTypeSymbol, DiagnosticDescriptors.DictionaryKeyNotSupported);
431
TypeRef
elementTypeRef = EnqueueTransitiveType(typeParseInfo, elementTypeSymbol, DiagnosticDescriptors.ElementTypeNotSupported);
514
TypeRef
elementTypeRef = EnqueueTransitiveType(typeParseInfo, elementType, DiagnosticDescriptors.ElementTypeNotSupported);
672
TypeRef
propertyTypeRef = EnqueueTransitiveType(typeParseInfo, property.Type, DiagnosticDescriptors.PropertyNotSupported, propertyName);
RuntimeSource\Configuration.Binder\Specs\BindingHelperInfo.cs (2)
27
private readonly Dictionary<
TypeRef
, bool> _seenTransitiveTypes = new();
113
public bool TryRegisterTransitiveTypesForMethodGen(
TypeRef
typeRef)
RuntimeSource\Configuration.Binder\Specs\Members\MemberSpec.cs (2)
12
public MemberSpec(ISymbol member,
TypeRef
typeRef)
23
public
TypeRef
TypeRef { get; }
RuntimeSource\Configuration.Binder\Specs\Members\ParameterSpec.cs (1)
14
public ParameterSpec(IParameterSymbol parameter,
TypeRef
typeRef) : base(parameter, typeRef)
RuntimeSource\Configuration.Binder\Specs\Members\PropertySpec.cs (1)
11
public PropertySpec(IPropertySymbol property,
TypeRef
typeRef) : base(property, typeRef)
RuntimeSource\Configuration.Binder\Specs\TypeIndex.cs (5)
14
private readonly Dictionary<
TypeRef
, TypeSpec> _index = typeSpecs.ToDictionary(spec => spec.TypeRef);
16
public bool CanBindTo(
TypeRef
typeRef) => GetEffectiveTypeSpec(typeRef) switch
56
public TypeSpec GetEffectiveTypeSpec(
TypeRef
typeRef)
64
TypeRef
effectiveRef = typeSpec.EffectiveTypeRef;
69
public TypeSpec GetTypeSpec(
TypeRef
typeRef) => _index[typeRef];
RuntimeSource\Configuration.Binder\Specs\Types\TypeSpec.cs (3)
22
public
TypeRef
TypeRef { get; }
24
public
TypeRef
EffectiveTypeRef { get; protected init; }
48
public NullableSpec(ITypeSymbol type,
TypeRef
underlyingTypeRef) : base(type) =>
RuntimeSource\SourceGenerators\CSharpSyntaxUtilities.cs (1)
18
public static string FormatLiteral(object? value,
TypeRef
type)
RuntimeSource\SourceGenerators\TypeRef.cs (3)
14
public sealed class TypeRef : IEquatable<
TypeRef
>
38
public bool Equals(
TypeRef
? other) => other != null && FullyQualifiedName == other.FullyQualifiedName;
39
public override bool Equals(object? obj) => Equals(obj as
TypeRef
);