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.
28 lines
700 B
Plaintext
28 lines
700 B
Plaintext
{
|
|
"key.offset": 0,
|
|
"key.length": 27,
|
|
"key.diagnostic_stage": "source.diagnostic.stage.swift.parse",
|
|
"key.substructure": [
|
|
{
|
|
"key.kind": "source.lang.swift.decl.function.free",
|
|
"key.accessibility": "source.lang.swift.accessibility.internal",
|
|
"key.name": "🐶🐮(_:)",
|
|
"key.offset": 0,
|
|
"key.length": 26,
|
|
"key.nameoffset": 5,
|
|
"key.namelength": 18,
|
|
"key.bodyoffset": 25,
|
|
"key.bodylength": 0,
|
|
"key.substructure": [
|
|
{
|
|
"key.kind": "source.lang.swift.decl.var.parameter",
|
|
"key.name": "x",
|
|
"key.offset": 14,
|
|
"key.length": 8,
|
|
"key.typename": "Int"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|