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

Function fxNodeCodeName

xs/sources/xsCode.c:2021–2043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2019}
2020
2021txFlag fxNodeCodeName(txNode* value)
2022{
2023 txToken token = value->description->token;
2024 if (token == XS_TOKEN_EXPRESSIONS) {
2025 value = ((txExpressionsNode*)value)->items->first;
2026 if (value->next)
2027 return 0;
2028 token = value->description->token;
2029 }
2030 if (token == XS_TOKEN_CLASS) {
2031 txClassNode* node = (txClassNode*)value;
2032 if (node->symbol)
2033 return 0;
2034 }
2035 else if ((token == XS_TOKEN_FUNCTION) || (token == XS_TOKEN_GENERATOR) || (token == XS_TOKEN_HOST)) {
2036 txFunctionNode* node = (txFunctionNode*)value;
2037 if (node->symbol)
2038 return 0;
2039 }
2040 else
2041 return 0;
2042 return 1;
2043}
2044
2045txFlag fxNodeCodeThis(void* it, void* param, txFlag flag)
2046{

Callers 3

fxFieldNodeCodeFunction · 0.85
fxObjectNodeCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected