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
|
@ -24,7 +24,7 @@ from .gtkbuilder_template import Template
|
|||
from .common import *
|
||||
|
||||
|
||||
class UI(AstNode):
|
||||
class UI(AstNode, Scope):
|
||||
""" The AST node for the entire file """
|
||||
|
||||
grammar = [
|
||||
|
@ -62,6 +62,8 @@ class UI(AstNode):
|
|||
def objects_by_id(self):
|
||||
return { obj.tokens["id"]: obj for obj in self.iterate_children_recursive() if obj.tokens["id"] is not None }
|
||||
|
||||
def get_objects(self):
|
||||
return self.objects_by_id
|
||||
|
||||
@validate()
|
||||
def gir_errors(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue