|
|
@ -15,7 +15,6 @@ class TypeAlias(Type): |
|
|
|
self.name = name |
|
|
|
self.name = name |
|
|
|
self.underlying_type = underlying_type |
|
|
|
self.underlying_type = underlying_type |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@property |
|
|
|
@property |
|
|
|
def storage_size(self) -> Tuple[int, bool]: |
|
|
|
def storage_size(self) -> Tuple[int, bool]: |
|
|
|
return self.underlying_type.storage_size |
|
|
|
return self.underlying_type.storage_size |
|
|
@ -27,6 +26,7 @@ class TypeAlias(Type): |
|
|
|
def is_dynamic(self) -> bool: |
|
|
|
def is_dynamic(self) -> bool: |
|
|
|
return self.underlying_type.is_dynamic |
|
|
|
return self.underlying_type.is_dynamic |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TypeAliasTopLevel(TypeAlias, TopLevel): |
|
|
|
class TypeAliasTopLevel(TypeAlias, TopLevel): |
|
|
|
def __init__(self, underlying_type: Type, name: str, scope: "FileScope"): |
|
|
|
def __init__(self, underlying_type: Type, name: str, scope: "FileScope"): |
|
|
|
super().__init__(underlying_type, name) |
|
|
|
super().__init__(underlying_type, name) |
|
|
|