Add export { ... } from "....slint"; syntax. (#5533)

This commit is contained in:
Olivier Goffart 2024-07-03 12:50:40 +02:00 committed by GitHub
parent 033e4de9b9
commit 66370b6bda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 324 additions and 434 deletions

View file

@ -411,13 +411,13 @@ declare_syntax! {
/// There is an identifier "in" or "out", the DeclaredIdentifier is the state name
Transition -> [?DeclaredIdentifier, *PropertyAnimation],
/// Export a set of declared components by name
ExportsList -> [ *ExportSpecifier, ?Component, *StructDeclaration, *ExportModule, *EnumDeclaration ],
ExportsList -> [ *ExportSpecifier, ?Component, *StructDeclaration, ?ExportModule, *EnumDeclaration ],
/// Declare the first identifier to be exported, either under its name or instead
/// under the name of the second identifier.
ExportSpecifier -> [ ExportIdentifier, ?ExportName ],
ExportIdentifier -> [],
ExportName -> [],
/// `export * from "foo"`. The import uri is stored as string literal.
/// `export ... from "foo"`. The import uri is stored as string literal.
ExportModule -> [],
/// import { foo, bar, baz } from "blah"; The import uri is stored as string literal.
ImportSpecifier -> [ ?ImportIdentifierList ],