mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
language: Support boxed types and GType
- Add support for type checking boxed types - Remove support for converting string and number literals - Add the `typeof()` operator for GType literals
This commit is contained in:
parent
ee2b9b2950
commit
c0c40b1577
12 changed files with 140 additions and 26 deletions
|
@ -18,7 +18,7 @@ from .gtkbuilder_child import Child
|
|||
from .gtkbuilder_template import Template
|
||||
from .imports import GtkDirective, Import
|
||||
from .ui import UI
|
||||
from .values import IdentValue, TranslatedStringValue, FlagsValue, LiteralValue
|
||||
from .values import TypeValue, IdentValue, TranslatedStringValue, FlagsValue, QuotedValue, NumberValue
|
||||
|
||||
from .common import *
|
||||
|
||||
|
@ -43,8 +43,10 @@ OBJECT_CONTENT_HOOKS.children = [
|
|||
]
|
||||
|
||||
VALUE_HOOKS.children = [
|
||||
TypeValue,
|
||||
TranslatedStringValue,
|
||||
FlagsValue,
|
||||
IdentValue,
|
||||
LiteralValue,
|
||||
QuotedValue,
|
||||
NumberValue,
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue