swiftlang / swiftlang/swift-syntax

Provide a public API to compare precedence groups

Open
#2,258 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Swift
Stars
3.7k
Forks
553
Avg merge
5d 13h
Merged PRs (30d)
16

Description

### Description

I had a small use case in swift-format where I wanted to check the precedence of an operator relative to another one (https://github.com/apple/swift-format/pull/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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.