Skip to content

Provide a public API to compare precedence groups #2258

Description

@allevato

Description

I had a small use case in swift-format where I wanted to check the precedence of an operator relative to another one (swiftlang/swift-format#647).

Unfortunately there's no public API to do this from OperatorTable; the logic is inside PrecedenceGraph, which is internal. Can we have this API or something like it in public form?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions