Destructured params are not linked #14

Open
opened 2019-08-14 14:54:16 +02:00 by adrianheine · 4 comments
adrianheine commented 2019-08-14 14:54:16 +02:00 (Migrated from github.com)

delimitedIndent({closing: string, align⁠?: boolean}) → IndentStrategy

closing and align are not linked

countColumn(line: string, pos: number) → number

line and pos are links to itself

> delimitedIndent({closing: string, align⁠?: boolean}) → IndentStrategy `closing` and `align` are not linked > countColumn(line: string, pos: number) → number `line` and `pos` are links to itself
marijnh commented 2019-08-14 15:24:05 +02:00 (Migrated from github.com)

Isn't the latter how all anchors in the output behave? (I.e. countColumn also links to itself.)

Isn't the latter how all anchors in the output behave? (I.e. `countColumn` also links to itself.)
adrianheine commented 2019-08-15 10:50:00 +02:00 (Migrated from github.com)

Oh yeah, I was complaining about the first behavior, not the second. With adrianheine/gettypes@dce415bd90, there's no __0 for the destructured arg, and so there's no anchor for that argument at all.

Oh yeah, I was complaining about the first behavior, not the second. With adrianheine/gettypes@dce415bd901377ab7574980c13b0bed17fb785b9, there's no `__0` for the destructured arg, and so there's no anchor for that argument at all.
marijnh commented 2019-08-15 10:55:08 +02:00 (Migrated from github.com)

Ah, I see. What would you want to happen in this case?

Ah, I see. What would you want to happen in this case?
adrianheine commented 2019-08-15 11:41:50 +02:00 (Migrated from github.com)

I think it would make sense to handle regular and destructured args the same, i. e. put anchors on both if you want arguments to have anchors. If it's not straightforward to implement we can probably accept the current behavior, though.

I think it would make sense to handle regular and destructured args the same, i. e. put anchors on both if you want arguments to have anchors. If it's not straightforward to implement we can probably accept the current behavior, though.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
marijn/builddocs#14
No description provided.