| 112 | } |
| 113 | |
| 114 | void fxHoisterAddExportLink(txHoister* self, txSpecifierNode* specifier) |
| 115 | { |
| 116 | txExportLink* link = self->firstExportLink; |
| 117 | txSymbol* symbol = specifier->asSymbol ? specifier->asSymbol : specifier->symbol; |
| 118 | if (symbol) { |
| 119 | while (link) { |
| 120 | if (link->symbol == symbol) { |
| 121 | fxReportParserError(self->parser, specifier->line, "duplicate export %s", symbol->string); |
| 122 | return; |
| 123 | } |
| 124 | link = link->next; |
| 125 | } |
| 126 | link = fxNewParserChunk(self->parser, sizeof(txExportLink)); |
| 127 | link->next = self->firstExportLink; |
| 128 | link->symbol = symbol; |
| 129 | self->firstExportLink = link; |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | void fxBinderPopVariables(txBinder* self, txInteger count) |
| 134 | { |
no test coverage detected