| 2827 | } |
| 2828 | |
| 2829 | void fxDeclareNodeCode(void* it, void* param) |
| 2830 | { |
| 2831 | txDeclareNode* self = it; |
| 2832 | txCoder* coder = param; |
| 2833 | if (self->description->token == XS_TOKEN_CONST) |
| 2834 | fxReportParserError(coder->parser, self->line, "invalid const"); |
| 2835 | else if (self->description->token == XS_TOKEN_LET) { |
| 2836 | fxNodeDispatchCodeReference(self, param, 0); |
| 2837 | fxCoderAddByte(coder, 1, XS_CODE_UNDEFINED); |
| 2838 | fxNodeDispatchCodeAssign(self, param, 0); |
| 2839 | fxCoderAddByte(coder, -1, XS_CODE_POP); |
| 2840 | } |
| 2841 | else if (self->description->token == XS_TOKEN_USING) |
| 2842 | fxReportParserError(coder->parser, self->line, "invalid using"); |
| 2843 | } |
| 2844 | |
| 2845 | void fxDeclareNodeCodeAssign(void* it, void* param, txFlag flag) |
| 2846 | { |
nothing calls this directly
no test coverage detected