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
|
@ -82,10 +82,11 @@ class Signal(AstNode):
|
|||
@validate("handler")
|
||||
def old_extern(self):
|
||||
if not self.tokens["extern"]:
|
||||
raise UpgradeWarning(
|
||||
"Use the '$' extern syntax introduced in blueprint 0.8.0",
|
||||
actions=[CodeAction("Use '$' syntax", "$" + self.tokens["handler"])],
|
||||
)
|
||||
if self.handler is not None:
|
||||
raise UpgradeWarning(
|
||||
"Use the '$' extern syntax introduced in blueprint 0.8.0",
|
||||
actions=[CodeAction("Use '$' syntax", "$" + self.handler)],
|
||||
)
|
||||
|
||||
@validate("name")
|
||||
def signal_exists(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue