Subtype Declarations

VHDL has subtypes to constrain types.

Class Hierarchy

Inheritance diagram of pyVHDLModel.Type.Subtype

Todo

Write documentation.

Condensed definition of class Subtype:

@export
class Subtype(BaseType):

  def __init__(
    self,
    identifier: str,
    symbol: Symbol,
    documentation: Nullable[str] = None,
    parent: Nullable[ModelEntity] = None,
  ) -> None:
    ...

  @readonly
  def Type(self) -> Symbol:
    ...

  @readonly
  def BaseType(self) -> BaseType:
    ...

  @readonly
  def Range(self) -> Range:
    ...

  @readonly
  def ResolutionFunction(self) -> Function:
    ...

  def IterateTypeMarks(
    self,
    region: DeclarativeRegionMixin,
  ) -> Generator[tuple[DeclarativeRegionMixin, ModelEntity, SubtypeSymbol], None, None]:
    ...

  def ResolveReferences(self, designUnit: DesignUnit, region: DeclarativeRegionMixin) -> None:
    ...

  def ResetReferences(self, designUnit: DesignUnit, region: DeclarativeRegionMixin) -> None:
    ...

  def Visit(self, visitor: Visitor) -> None:
    ...

  def __str__(self) -> str:
    ...