Add warning for sync-create

This commit is contained in:
James Westman 2022-01-28 10:34:31 -06:00
parent 32d4769f65
commit 9873a2072b
8 changed files with 62 additions and 19 deletions

View file

@ -34,10 +34,10 @@ class Property(AstNode):
".",
UseIdent("bind_property").expected("a property name to bind from"),
ZeroOrMore(AnyOf(
"sync-create",
["no-sync-create", UseLiteral("no_sync_create", True)],
["inverted", UseLiteral("inverted", True)],
["bidirectional", UseLiteral("bidirectional", True)],
Match("sync-create").warn("sync-create is deprecated in favor of no-sync-create"),
)),
),
Statement(