mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
language: Add closure expressions
This commit is contained in:
parent
5cf9b63547
commit
59aa054c4c
10 changed files with 96 additions and 7 deletions
|
@ -189,7 +189,10 @@ class TypeType(BasicType):
|
|||
|
||||
|
||||
_BASIC_TYPES = {
|
||||
"bool": BoolType,
|
||||
"gboolean": BoolType,
|
||||
"string": StringType,
|
||||
"gchararray": StringType,
|
||||
"int": IntType,
|
||||
"gint": IntType,
|
||||
"gint64": IntType,
|
||||
|
@ -730,6 +733,9 @@ class GirContext:
|
|||
return None
|
||||
|
||||
def get_type(self, name: str, ns: str) -> T.Optional[GirNode]:
|
||||
if ns is None and name in _BASIC_TYPES:
|
||||
return _BASIC_TYPES[name]()
|
||||
|
||||
ns = ns or "Gtk"
|
||||
|
||||
if ns not in self.namespaces:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue