MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxAccessNodeCodeDelete

Function fxAccessNodeCodeDelete

xs/sources/xsCode.c:2074–2087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2072}
2073
2074void fxAccessNodeCodeDelete(void* it, void* param)
2075{
2076 txAccessNode* self = it;
2077 txCoder* coder = param;
2078 txDeclareNode* declaration = self->declaration;
2079 if (self->flags & mxStrictFlag)
2080 fxReportParserError(coder->parser, self->line, "delete identifier (strict code)");
2081 if (!declaration) {
2082 fxAccessNodeCodeReference(it, param, 0);
2083 fxCoderAddSymbol(param, 0, XS_CODE_DELETE_PROPERTY, self->symbol);
2084 }
2085 else
2086 fxCoderAddByte(param, 1, XS_CODE_FALSE);
2087}
2088
2089void fxAccessNodeCodeReference(void* it, void* param, txFlag flag)
2090{

Callers

nothing calls this directly

Calls 4

fxReportParserErrorFunction · 0.85
fxCoderAddSymbolFunction · 0.85
fxCoderAddByteFunction · 0.85

Tested by

no test coverage detected