 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func Parse(filePath string) (*language.FileInfo, error)
- type AliasedName
- type AllImport
- type DeclarationExport
- type DefaultExport
- type DynamicImport
- type ExportDeconstruction
- type File
- type ImportDeconstruction
- type Imported
- type ListExport
- type ProxyExport
- type Require
- type SelectionImport
- type Statement
- type StaticImport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 File struct {
	Statements []*Statement `(@@ | ANY | ALL | Punct | Ident | String | BacktickString)*`
}
    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.