github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/internal/lsp/testdata/semantic/b.go (about) 1 package semantictokens //@ semantic("") 2 3 func f(x ...interface{}) { 4 } 5 6 func weirⰀd() { /*😀*/ // comment 7 const ( 8 snil = nil 9 nil = true 10 true = false 11 false = snil 12 cmd = `foof` 13 double = iota 14 iota = copy 15 four = (len(cmd)/2 < 5) 16 five = four 17 ) 18 f(cmd, nil, double, iota) 19 } 20 21 /* 22 23 multiline */ /* 24 multiline 25 */ 26 type AA int 27 type BB struct { 28 AA 29 } 30 type CC struct { 31 AA int 32 } 33 type D func(aa AA) (BB error) 34 type E func(AA) BB 35 36 var a chan<- chan int 37 var b chan<- <-chan int 38 var c <-chan <-chan int