aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/inlay_hint/constant_values.go.golden
diff options
context:
space:
mode:
Diffstat (limited to 'gopls/internal/lsp/testdata/inlay_hint/constant_values.go.golden')
-rw-r--r--gopls/internal/lsp/testdata/inlay_hint/constant_values.go.golden47
1 files changed, 47 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/inlay_hint/constant_values.go.golden b/gopls/internal/lsp/testdata/inlay_hint/constant_values.go.golden
new file mode 100644
index 000000000..edc46debc
--- /dev/null
+++ b/gopls/internal/lsp/testdata/inlay_hint/constant_values.go.golden
@@ -0,0 +1,47 @@
+-- inlayHint --
+package inlayHint //@inlayHint("package")
+
+const True = true
+
+type Kind int
+
+const (
+ KindNone Kind = iota< = 0>
+ KindPrint< = 1>
+ KindPrintf< = 2>
+ KindErrorf< = 3>
+)
+
+const (
+ u = iota * 4< = 0>
+ v float64 = iota * 42< = 42>
+ w = iota * 42< = 84>
+)
+
+const (
+ a, b = 1, 2
+ c, d< = 1, 2>
+ e, f = 5 * 5, "hello" + "world"< = 25, "helloworld">
+ g, h< = 25, "helloworld">
+ i, j = true, f< = true, "helloworld">
+)
+
+// No hint
+const (
+ Int = 3
+ Float = 3.14
+ Bool = true
+ Rune = '3'
+ Complex = 2.7i
+ String = "Hello, world!"
+)
+
+var (
+ varInt = 3
+ varFloat = 3.14
+ varBool = true
+ varRune = '3' + '4'
+ varComplex = 2.7i
+ varString = "Hello, world!"
+)
+