mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Implement array value
Adds ArrayValue docs, and tests for diagnostics.
This commit is contained in:
parent
f1cf70b6eb
commit
14be727777
12 changed files with 115 additions and 4 deletions
|
@ -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 + "[]"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue