Debian Codegraph @

gopls/internal/analysis/simplifyrange/testdata/src/a/a.go

raw symbols SCIP
1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package testdata
6
7 import "log"
8
9 func m() {
10 maps := make(map[string]string)
11 for k, _ := range maps { // want "simplify range expression"
12 log.Println(k)
13 }
14 for _ = range maps { // want "simplify range expression"
15 }
16 for _, _ = range maps { // want "simplify range expression"
17 }
18 for _, v := range maps { // nope
19 println(v)
20 }
21 for range maps { // nope
22 }
23 }