mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
language: Add cast expressions
This commit is contained in:
parent
2033bd9e16
commit
5cf9b63547
15 changed files with 122 additions and 20 deletions
|
@ -54,7 +54,9 @@ class Object(AstNode):
|
|||
return self.children[ObjectContent][0]
|
||||
|
||||
@property
|
||||
def gir_class(self):
|
||||
def gir_class(self) -> GirType:
|
||||
if self.class_name is None:
|
||||
raise CompilerBugError()
|
||||
return self.class_name.gir_type
|
||||
|
||||
@cached_property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue