(node *ast.Node)
| 845 | } |
| 846 | |
| 847 | func (b *Binder) bindExportDeclaration(node *ast.Node) { |
| 848 | decl := node.AsExportDeclaration() |
| 849 | if b.container.Symbol() == nil { |
| 850 | // Export * in some sort of block construct |
| 851 | b.bindAnonymousDeclaration(node, ast.SymbolFlagsExportStar, b.getDeclarationName(node)) |
| 852 | } else if decl.ExportClause == nil { |
| 853 | // All export * declarations are collected in an __export symbol |
| 854 | b.declareSymbol(ast.GetExports(b.container.Symbol()), b.container.Symbol(), node, ast.SymbolFlagsExportStar, ast.SymbolFlagsNone) |
| 855 | } else if ast.IsNamespaceExport(decl.ExportClause) { |
| 856 | b.declareSymbol(ast.GetExports(b.container.Symbol()), b.container.Symbol(), decl.ExportClause, ast.SymbolFlagsAlias, ast.SymbolFlagsAliasExcludes) |
| 857 | } |
| 858 | } |
| 859 | |
| 860 | func (b *Binder) bindExportAssignment(node *ast.Node) { |
| 861 | container := b.container |
no test coverage detected