Table of Contents

Struct AssociatedTypeModel

Namespace
PolyType.Roslyn
Assembly
PolyType.Roslyn.dll

Represents a type associated with some type shape.

public record struct AssociatedTypeModel : IEquatable<AssociatedTypeModel>
Implements
Inherited Members

Constructors

AssociatedTypeModel(INamedTypeSymbol, IAssemblySymbol, Location?, TypeShapeRequirements)

Represents a type associated with some type shape.

public AssociatedTypeModel(INamedTypeSymbol AssociatedType, IAssemblySymbol AssociatingAssembly, Location? Location, TypeShapeRequirements Requirements)

Parameters

AssociatedType INamedTypeSymbol

The symbol for the related type.

AssociatingAssembly IAssemblySymbol

The assembly that declared the association.

Location Location

The location where the association is declared.

Requirements TypeShapeRequirements

The associated type's requirements.

Properties

AssociatedType

The symbol for the related type.

public INamedTypeSymbol AssociatedType { readonly get; set; }

Property Value

INamedTypeSymbol

AssociatingAssembly

The assembly that declared the association.

public IAssemblySymbol AssociatingAssembly { readonly get; set; }

Property Value

IAssemblySymbol

Location

The location where the association is declared.

public Location? Location { readonly get; set; }

Property Value

Location

Requirements

The associated type's requirements.

public TypeShapeRequirements Requirements { readonly get; set; }

Property Value

TypeShapeRequirements