Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[ty] Classify property declaration semantic tokens#25322

Merged
MichaReiser merged 1 commit into
mainfrom
micha/property-declaration-semantic-tokens
May 22, 2026
Merged

[ty] Classify property declaration semantic tokens#25322
MichaReiser merged 1 commit into
mainfrom
micha/property-declaration-semantic-tokens

Conversation

@MichaReiser

@MichaReiser MichaReiser commented May 22, 2026

Copy link
Copy Markdown
Member

Summary

Classify @property function definition names as property semantic tokens after decorators are
applied.

This aligns property declaration highlighting with property access highlighting.

Closes astral-sh/ty#3356.

Test Plan

Updated tests

@MichaReiser MichaReiser added the ty Multi-file analysis & type inference label May 22, 2026
@astral-sh-bot astral-sh-bot Bot added the server Related to the LSP server label May 22, 2026
@MichaReiser MichaReiser marked this pull request as ready for review May 22, 2026 13:28
@astral-sh-bot astral-sh-bot Bot requested a review from lerebear May 22, 2026 13:28
@MichaReiser MichaReiser merged commit 50bccaa into main May 22, 2026
51 checks passed
@MichaReiser MichaReiser deleted the micha/property-declaration-semantic-tokens branch May 22, 2026 15:39
thejchap pushed a commit to thejchap/ruff that referenced this pull request May 23, 2026
anishgirianish pushed a commit to anishgirianish/ruff that referenced this pull request May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

server Related to the LSP server ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Semantic tokens: Classify property declarations as property

3 participants