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

Method resolveSwitch

tools/nodered2mcu.js:1766–1774  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

1764 }
1765 }
1766 resolveSwitch(type, value) {
1767 if (!type)
1768 return;
1769
1770 if ("prev" === type)
1771 return `previous`;
1772
1773 return this.resolveValue(type, value);
1774 }
1775 splitProp(prop) {
1776 let parts = [], start = 0, depth = 0;
1777 for (let position = 0; position < prop.length; position++) {

Callers 1

prepareNodeMethod · 0.80

Calls 1

resolveValueMethod · 0.80

Tested by

no test coverage detected