Skip to content

Parameter label as function token #1540

@GrayJack

Description

@GrayJack

Swift version

swift-6.0-DEVELOPMENT-SNAPSHOT-2024-06-22-a

Platform

macOS 14.0

Editor

Visual Studio Code

Does the issue reproduce with Swift 6?

Yes

Description

The parameter label of the function is being tokenized as a function semantic token. I expected this token to be something different than function, maybe label or parameter with modifier label?

For me, this is happening with 5.10 and swift-6.0-DEVELOPMENT-SNAPSHOT-2024-06-22-a
Screenshot 2024-06-29 at 23 36 05

Steps to Reproduce

  • Open a project with function
  • Execute VSCode command Developer: Inspect Editor Tokens and Scope
  • Put the editor cursor in a parameter label
  • Check if the palameter label is of type function

Logging

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions