We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bcca76 commit 163e3c4Copy full SHA for 163e3c4
internal/checker/printer.go
@@ -90,9 +90,9 @@ func (c *Checker) GetQuickInfoAtLocation(node *ast.Node) string {
90
return ""
91
}
92
flags := symbol.Flags
93
- if flags&ast.SymbolFlagsType != 0 && !ast.IsInExpressionContext(node) {
94
- // If the symbol has a type meaning and we're not in an expression context, remove any value meanings
95
- flags &^= ast.SymbolFlagsValue
+ if flags&ast.SymbolFlagsType != 0 && (ast.IsPartOfTypeNode(node) || isTypeDeclarationName(node)) {
+ // If the symbol has a type meaning and we're in a type context, remove value-only meanings
+ flags &^= ast.SymbolFlagsVariable | ast.SymbolFlagsFunction
96
97
p := c.newPrinter(TypeFormatFlagsNone)
98
if isAlias {
0 commit comments