MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / variations

Method variations

tools/system_libs.py:640–652  ·  view source on GitHub ↗

Return every possible variation of this library. Return a list of keyword arguments to pass to the constructor to create every possible variation of this library. By default, this is every possible combination of boolean values to pass to the list of arguments returned by `vary_on`

(cls)

Source from the content-addressed store, hash-verified

638
639 @classmethod
640 def variations(cls):
641 """Return every possible variation of this library.
642
643 Return a list of keyword arguments to pass to the constructor to create
644 every possible variation of this library.
645
646 By default, this is every possible combination of boolean values to pass
647 to the list of arguments returned by `vary_on`, but you can override
648 the behaviour.
649 """
650 vary_on = cls.vary_on()
651 return [dict(zip(vary_on, toggles, strict=True)) for toggles in
652 itertools.product([False, True], repeat=len(vary_on))]
653
654 @classmethod
655 def get_default_variation(cls, **kwargs):

Callers 5

get_all_variationsMethod · 0.45
variationsMethod · 0.45
variationsMethod · 0.45
variationsMethod · 0.45
variationsMethod · 0.45

Calls 1

vary_onMethod · 0.45

Tested by

no test coverage detected