MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / _ordered_variants

Method _ordered_variants

py/generate_bidi_protocol.py:504–505  ·  view source on GitHub ↗
(self, selector: dict)

Source from the content-addressed store, hash-verified

502 return variants
503
504 def _ordered_variants(self, selector: dict) -> list[VariantIR]:
505 return [VariantIR("presence", None, arm["ref"], tuple(arm["requires"])) for arm in selector.get("ordered", [])]
506
507 # The union-wide allowed discriminator set: each variant's tag plus the default
508 # variant's own enum values for the discriminator field (spec-faithful outbound check).

Callers 1

_union_from_selectorMethod · 0.95

Calls 2

VariantIRClass · 0.85
getMethod · 0.65

Tested by

no test coverage detected