(node *ast.Node)
| 823 | } |
| 824 | |
| 825 | func (b *Binder) bindNamespaceExportDeclaration(node *ast.Node) { |
| 826 | if node.Modifiers() != nil { |
| 827 | b.errorOnNode(node, diagnostics.Modifiers_cannot_appear_here) |
| 828 | } |
| 829 | switch { |
| 830 | case !ast.IsSourceFile(node.Parent): |
| 831 | b.errorOnNode(node, diagnostics.Global_module_exports_may_only_appear_at_top_level) |
| 832 | case !ast.IsExternalModule(node.Parent.AsSourceFile()): |
| 833 | b.errorOnNode(node, diagnostics.Global_module_exports_may_only_appear_in_module_files) |
| 834 | case !node.Parent.AsSourceFile().IsDeclarationFile: |
| 835 | b.errorOnNode(node, diagnostics.Global_module_exports_may_only_appear_in_declaration_files) |
| 836 | default: |
| 837 | b.declareSymbol(ast.GetSymbolTable(&b.file.GlobalExports), b.file.Symbol, node, ast.SymbolFlagsAlias, ast.SymbolFlagsAliasExcludes) |
| 838 | } |
| 839 | } |
| 840 | |
| 841 | func (b *Binder) bindImportClause(node *ast.Node) { |
| 842 | if node.AsImportClause().Name() != nil { |
no test coverage detected