https://pantsbuild.org/ logo
#development
Title
# development
a

aloof-angle-91616

12/03/2019, 3:44 AM
and this provides the registry via the
@union
relationship:
Copy code
@dataclass(frozen=True)
class KnownQueryExpressions:
  components: Dict[str, Type[_T]]


@rule
def known_query_expressions(union_membership: UnionMembership) -> KnownQueryExpressions:
  return KnownQueryExpressions({
    union_member.function_name: union_member
    for union_member in union_membership.union_rules[QueryParser]
  })