MCPcopy Create free account
hub / github.com/openai/plugins / leave

Function leave

plugins/shopify/skills/shopify-partner/scripts/validate.mjs:3866–3881  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

3864 }
3865 },
3866 leave(...args) {
3867 const node = args[0];
3868 for (let i = 0; i < visitors.length; i++) {
3869 if (skipping[i] === null) {
3870 var _leaveList$i;
3871 const result = (_leaveList$i = leaveList[i]) === null || _leaveList$i === void 0 ? void 0 : _leaveList$i.apply(visitors[i], args);
3872 if (result === BREAK) {
3873 skipping[i] = BREAK;
3874 } else if (result !== void 0 && result !== false) {
3875 return result;
3876 }
3877 } else if (skipping[i] === node) {
3878 skipping[i] = null;
3879 }
3880 }
3881 }
3882 };
3883 mergedVisitor[kind] = mergedEnterLeave;
3884 }

Callers

nothing calls this directly

Calls 13

mapMethod · 0.80
hasMultilineItemsFunction · 0.70
wrapFunction · 0.70
joinFunction · 0.70
indentFunction · 0.70
allowedVariableUsageFunction · 0.70
leaveMethod · 0.45
reportErrorMethod · 0.45
getFieldDefMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected