MCPcopy Create free account
hub / github.com/nodejs/node / getRuleActionExclusion

Function getRuleActionExclusion

test/fixtures/snapshot/typescript.js:146836–146851  ·  view source on GitHub ↗

* For a given rule action, gets a mask of other rule actions that * cannot be applied at the same position.

(ruleAction)

Source from the content-addressed store, hash-verified

146834 * cannot be applied at the same position.
146835 */
146836 function getRuleActionExclusion(ruleAction) {
146837 var mask = 0;
146838 if (ruleAction & 1 /* RuleAction.StopProcessingSpaceActions */) {
146839 mask |= 28 /* RuleAction.ModifySpaceAction */;
146840 }
146841 if (ruleAction & 2 /* RuleAction.StopProcessingTokenActions */) {
146842 mask |= 96 /* RuleAction.ModifyTokenAction */;
146843 }
146844 if (ruleAction & 28 /* RuleAction.ModifySpaceAction */) {
146845 mask |= 28 /* RuleAction.ModifySpaceAction */;
146846 }
146847 if (ruleAction & 96 /* RuleAction.ModifyTokenAction */) {
146848 mask |= 96 /* RuleAction.ModifyTokenAction */;
146849 }
146850 return mask;
146851 }
146852 function createRulesMap(rules) {
146853 var map = buildMap(rules);
146854 return function (context) {

Callers 1

createRulesMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected