Files
swift-mirror/test/SourceKit/DocumentStructure/mark_edit.swift.response
Ben Barham cb81c1a1aa [SourceKit] Add structure node for SubscriptExpr
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.
2021-11-30 19:56:48 +10:00

23 lines
443 B
Plaintext

{
key.offset: 0,
key.length: 17,
key.diagnostic_stage: source.diagnostic.stage.swift.parse,
key.substructure: [
{
key.kind: source.lang.swift.syntaxtype.comment.mark,
key.offset: 5,
key.length: 11
}
]
}
{
key.diagnostic_stage: source.diagnostic.stage.swift.parse,
key.substructure: [
{
key.kind: source.lang.swift.syntaxtype.comment.mark,
key.offset: 6,
key.length: 11
}
]
}