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

Function _FindRuleTriggerFiles

tools/gyp/pylib/gyp/generator/msvs.py:578–587  ·  view source on GitHub ↗

Find the list of files which a particular rule applies to. Arguments: rule: the rule in question sources: the set of all known source files for this project Returns: The list of sources that trigger a particular rule.

(rule, sources)

Source from the content-addressed store, hash-verified

576
577
578def _FindRuleTriggerFiles(rule, sources):
579 """Find the list of files which a particular rule applies to.
580
581 Arguments:
582 rule: the rule in question
583 sources: the set of all known source files for this project
584 Returns:
585 The list of sources that trigger a particular rule.
586 """
587 return rule.get("rule_sources", [])
588
589
590def _RuleInputsAndOutputs(rule, trigger_file):

Callers 2

_GenerateExternalRulesFunction · 0.85
_AdjustSourcesForRulesFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected