mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
types: Add UncheckedType
This allows us to remember information about an external type, such as its name, while still marking it as unchecked.
This commit is contained in:
parent
f7aa7d0be2
commit
2033bd9e16
7 changed files with 55 additions and 11 deletions
|
@ -71,7 +71,7 @@ class Signal(AstNode):
|
|||
|
||||
@property
|
||||
def gir_signal(self):
|
||||
if self.gir_class is not None:
|
||||
if self.gir_class is not None and not isinstance(self.gir_class, UncheckedType):
|
||||
return self.gir_class.signals.get(self.tokens["name"])
|
||||
|
||||
@property
|
||||
|
@ -80,7 +80,7 @@ class Signal(AstNode):
|
|||
|
||||
@validate("name")
|
||||
def signal_exists(self):
|
||||
if self.gir_class is None:
|
||||
if self.gir_class is None or isinstance(self.gir_class, UncheckedType):
|
||||
# Objects that we have no gir data on should not be validated
|
||||
# This happens for classes defined by the app itself
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue