Skip to content

Commit 302c11d

Browse files
committed
(document) add features/passive.md
1 parent 060493c commit 302c11d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gopls/doc/features/passive.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ a portion of it.
207207
The client may use this information to provide syntax highlighting
208208
that conveys semantic distinctions between, for example, functions and
209209
types, constants and variables, or library functions and built-ins.
210+
Gopls also reports a modifier for the top-level constructor of the object's type, one of:
211+
`interface`, `struct`, `signature`, `pointer`, `array`, `map`, `slice`, `chan`, `string`, `number`, `bool`, `invalid`.
210212
The client specifies the sets of types and modifiers it is interested in.
211213

212214
Settings:

0 commit comments

Comments
 (0)