mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add lambda values
This commit is contained in:
parent
30f0deea34
commit
d7155981b1
8 changed files with 119 additions and 4 deletions
|
@ -33,3 +33,24 @@ from ..xml_emitter import XmlEmitter
|
|||
OBJECT_HOOKS = AnyOf()
|
||||
OBJECT_CONTENT_HOOKS = AnyOf()
|
||||
VALUE_HOOKS = AnyOf()
|
||||
|
||||
|
||||
class Scope:
|
||||
def get_variables(self) -> T.Iterator[str]:
|
||||
yield from self.get_objects().keys()
|
||||
|
||||
def get_objects(self) -> T.Dict[str, T.Any]:
|
||||
raise NotImplementedError()
|
||||
|
||||
@property
|
||||
def this_name(self) -> T.Optional[str]:
|
||||
return None
|
||||
|
||||
@property
|
||||
def this_type(self) -> T.Optional[str]:
|
||||
return None
|
||||
|
||||
@property
|
||||
def this_type_glib_name(self) -> T.Optional[str]:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue