[SR-4148] Indexed access to a complex type representation #46731
Labels
compiler
The Swift compiler in itself
feature
A feature request or implementation
† libswiftSyntax
† Area → compiler: the once-integrated C++ Syntax library succeeded by SwiftSyntax
stale
Resolution: No longer relevant, stale
types
Feature: types
Additional Detail from JIRA
md5: 5332377ec4d12158f94cc129bc84d56d
Issue Description:
For syntax nodes for type repr, we should have a generic way to navigate the complexity of type repr. For instance, from a complex type repr like
(C1, (C2, C3?))->C4
, we can get theC3
by a given index chain of 0:1:1:0.API example:
This feature will allow us to bridge syntax tree with swift-api-digester because the later always dumps type change info in a mechanical way, for instance:
This tells us the second parameter of the given function should change from
(C1, (C2, C3?))->C4
to(C1, (C2, C3))->C4
.The text was updated successfully, but these errors were encountered: