Support C class names that ignore GIR

By writing `.MyAppComponent` instead of `MyApp.Component`, the compiler
will ignore GIR validation for that class and assume it's
application-defined.
This commit is contained in:
James Westman 2021-10-26 22:47:54 -05:00
parent 8ef65196f3
commit b387d4114f
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
3 changed files with 20 additions and 16 deletions

View file

@ -53,6 +53,11 @@ def parse(tokens) -> ast.UI:
Op("."),
UseIdent("class_name"),
),
Sequence(
Op("."),
UseIdent("class_name"),
UseLiteral("ignore_gir", True),
),
UseIdent("class_name"),
)