Distinguish definition tokens from declarations
The stock observer reports targetKind inside each proven target span, the decoder carries it, and semantic tokens apply the legend's definition modifier instead of always declaring. The observer verifier validates the field and the definition span parser ignores it as envelope metadata. A real stdio session showed modifier 2 on the factory definitions.
This commit is contained in:
1 parent
67ca5ea275
commit
e4a68a3678
9 files changed
+41
-5
No files matched your search
@@ -61,6 +61,21 @@ start coordinate only, so ranges are zero-width until an end is available.
|
||||
LSP adapters and index/rename/debugging integration remain open. `vbs test`
|
||||
passed all 17 native suites; CMake passed the reflection and trace suites.
|
||||
|
||||
## December 6 definition modifier from the observer target kind
|
||||
|
||||
The stock observer now emits `targetKind` ("definition" or "declaration") inside
|
||||
each proven target span. The occurrence decoder carries it as
|
||||
`target_is_definition`, and semantic tokens use the legend's `definition`
|
||||
modifier for definition-name tokens instead of always `declaration`. The
|
||||
observer verifier validates the field; real stdio session over the
|
||||
`Base`/`DerivedA`/`DerivedB` fixture:
|
||||
```
|
||||
semanticTokens: [(0, 7, 4, 1, 0), (1, 7, 8, 1, 0), (2, 7, 8, 1, 0),
|
||||
(3, 9, 6, 0, 2), (4, 9, 6, 0, 2), (5, 22, 6, 0, 0), (5, 41, 6, 0, 0)]
|
||||
```
|
||||
The two factory definitions now carry modifier 2. All 18 native suites and all
|
||||
18 CMake tests passed.
|
||||
|
||||
## December 6 index snapshot schema 4
|
||||
|
||||
The symbol-index snapshot is now schema 4 and records `digestAlgorithm` inside
|
||||
|
||||
Reference in new issue
Block a user