mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Change the way values work
Change the parsing for values to make them more reusable, in particular for when I implement extensions.
This commit is contained in:
parent
6938267952
commit
1df46b5a06
30 changed files with 707 additions and 291 deletions
|
@ -1,4 +1,6 @@
|
|||
from .attributes import BaseAttribute, BaseTypedAttribute
|
||||
from .binding import Binding
|
||||
from .contexts import ValueTypeCtx
|
||||
from .expression import CastExpr, ClosureExpr, Expr, ExprChain, IdentExpr, LookupOp
|
||||
from .gobject_object import Object, ObjectContent
|
||||
from .gobject_property import Property
|
||||
|
@ -14,16 +16,21 @@ from .gtk_styles import Styles
|
|||
from .gtkbuilder_child import Child
|
||||
from .gtkbuilder_template import Template
|
||||
from .imports import GtkDirective, Import
|
||||
from .property_binding import PropertyBinding
|
||||
from .ui import UI
|
||||
from .types import ClassName
|
||||
from .values import (
|
||||
TypeValue,
|
||||
IdentValue,
|
||||
TranslatedStringValue,
|
||||
FlagsValue,
|
||||
Flag,
|
||||
QuotedValue,
|
||||
NumberValue,
|
||||
Flags,
|
||||
IdentLiteral,
|
||||
Literal,
|
||||
NumberLiteral,
|
||||
ObjectValue,
|
||||
QuotedLiteral,
|
||||
Translated,
|
||||
TranslatedWithContext,
|
||||
TranslatedWithoutContext,
|
||||
TypeLiteral,
|
||||
Value,
|
||||
)
|
||||
|
||||
|
@ -43,12 +50,3 @@ OBJECT_CONTENT_HOOKS.children = [
|
|||
Strings,
|
||||
Child,
|
||||
]
|
||||
|
||||
VALUE_HOOKS.children = [
|
||||
TypeValue,
|
||||
TranslatedStringValue,
|
||||
FlagsValue,
|
||||
IdentValue,
|
||||
QuotedValue,
|
||||
NumberValue,
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue