Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliasedName ¶
type DeclarationExport ¶
type DeclarationExport struct {
Name string `"export" "async"? ("let"|"const"|"var"|"function"|"class"|"type"|"interface"|"enum") ALL? @Ident`
}
type DefaultExport ¶
type DefaultExport struct {
Default bool `"export" @"default"`
}
type DynamicImport ¶
type DynamicImport struct {
Path string `"import" "(" @String ")"`
}
type ExportDeconstruction ¶
type ExportDeconstruction struct {
Names []AliasedName `"{" @@ ("," @@)* ","? "}"`
}
type File ¶
type ImportDeconstruction ¶
type ImportDeconstruction struct {
Names []string `"{" "type"? @Ident ("as" Ident)? ("," ("type"? @Ident ("as" Ident)?)?)* "}"`
}
type Imported ¶
type Imported struct { Default bool `(@Ident? ","?` SelectionImport *SelectionImport ` @@?)!` }
type ListExport ¶
type ListExport struct {
ExportDeconstruction *ExportDeconstruction `"export" @@`
}
type ProxyExport ¶
type ProxyExport struct { ExportDeconstruction *ExportDeconstruction `"export" (@@` ExportAll bool ` | (@ALL` ExportAllAlias string ` ("as" @Ident)?)) ` From string `"from" @String` }
type SelectionImport ¶
type SelectionImport struct { AllImport *AllImport `(@@?` Deconstruction *ImportDeconstruction ` @@?)!` }
type Statement ¶
type Statement struct { // imports. DynamicImport *DynamicImport ` @@` StaticImport *StaticImport `| @@` Require *Require `| @@` // exports. DeclarationExport *DeclarationExport `| @@` DefaultExport *DefaultExport `| @@` ProxyExport *ProxyExport `| @@` ListExport *ListExport `| @@` }
type StaticImport ¶
Click to show internal directories.
Click to hide internal directories.