Implement array value

Adds ArrayValue docs, and tests for diagnostics.
This commit is contained in:
Diego Augusto S. C 2023-11-03 19:10:12 -03:00 committed by Sonny Piers
parent f1cf70b6eb
commit 14be727777
12 changed files with 115 additions and 4 deletions

View file

@ -200,6 +200,10 @@ class ArrayType(GirType):
def assignable_to(self, other: GirType) -> bool:
return isinstance(other, ArrayType) and self._inner.assignable_to(other._inner)
@property
def inner(self) -> GirType:
return self._inner
@property
def name(self) -> str:
return self._inner.name + "[]"