We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
md5: e77d7f514f32917c91e5ba7be1c8988b
Issue Description:
We annotate argument labels for function calls, but not for keypath expressions or subscripts.
$ cat /tmp/t.swift struct S { var x: Int = 0 func foo(label: Int) {} subscript(label _: Int) -> Int { return 0 } } let s = S() s.foo(label: 1) _ = s[label: 2] _ = s[keyPath: \.x]% $ xcrun swift-ide-test -annotate -source-filename /tmp/t.swift struct <Struct>S</Struct> { var <Var>x</Var>: <iStruct@>Int</iStruct> = 0 func <Func>foo</Func>(<Param>label</Param>: <iStruct@>Int</iStruct>) {} <Subscript>subscript</Subscript>(label _: <iStruct@>Int</iStruct>) -> <iStruct@>Int</iStruct> { return 0 } } let <Var>s</Var> = <Ctor@1:8-Struct@1:8>S</Ctor>() <Var@7:5>s</Var>.<Func@3:8>foo</Func>(<Func@3:8#label>label</Func>: 1) _ = <Var@7:5>s</Var><Subscript@4:3>[</Subscript>label: 2<Subscript@4:3>]</Subscript> _ = <Var@7:5>s</Var>[keyPath: \.<Var@2:7>x</Var>]%
The text was updated successfully, but these errors were encountered:
Reproduced in 5.6
Sorry, something went wrong.
No branches or pull requests
Additional Detail from JIRA
md5: e77d7f514f32917c91e5ba7be1c8988b
Issue Description:
We annotate argument labels for function calls, but not for keypath expressions or subscripts.
The text was updated successfully, but these errors were encountered: