mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Arguments in `SubscriptExpr` are visited since the recent `ArgumentList` refactoring, but were being added to the containing `CallExpr`. Add a node for the `SubscriptExpr` itself so that its argument is added there instead of the `CallExpr`. Also remove `key.nameoffset` and `key.namelength` from the response when both are 0 to match the rest of the offsets and lengths. Resolves rdar://85412164.
11 lines
318 B
Swift
11 lines
318 B
Swift
simple.paramNoLabel(0)
|
|
simple.paramsNoLabels(0, 1)
|
|
simple.paramWithLabel(label: 0)
|
|
simple.paramsWithLabel(label1: 0, label2: 1)
|
|
|
|
subscriptNoLabel[b].paramNoLabel(0)
|
|
subscriptWithLabel[label: b].paramWithLabel(label: 0)
|
|
|
|
// RUN: %sourcekitd-test -req=structure %s > %t.response
|
|
// RUN: %diff -u %s.response %t.response
|