[SR-6909] libSyntax doesn't know about operator precedence #49458
Labels
compiler
The Swift compiler in itself
declarations
Feature: declarations
expressions
Feature: expressions
feature
A feature request or implementation
† libswiftSyntax
† Area → compiler: the once-integrated C++ Syntax library succeeded by SwiftSyntax
operators
Feature: operators
precedence groups
Feature → operators: precedence groups
stale
Resolution: No longer relevant, stale
Additional Detail from JIRA
md5: 2493838608afee26863c2c17f96fb301
Issue Description:
If you want to line-break an expression, you want to break it near lower-precedence operators, so you end up with
rather than
or worse:
But libSyntax is flattening all of that into
SequenceExprSyntax
so that information is lost. I realize that file-at-a-time processing can't always do this reliably, but... it could try. And it could know about the precedences in the standard library.The text was updated successfully, but these errors were encountered: