- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for importComments (0.18 sec)
-
src/go/ast/import.go
lineAt(fset, pos[specIndex].Start)+1 == lineAt(fset, g.Pos()) { specIndex++ left = true } s := specs[specIndex].(*ImportSpec) importComments[s] = append(importComments[s], cgPos{left: left, cg: g}) } // Sort the import specs by import path. // Remove duplicates, when possible without data loss. // Reassign the import paths to have the same position sequence.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 5.7K bytes - Viewed (0) -
src/cmd/go/internal/modindex/index_test.go
checkPkg := func(t *testing.T, m *Module, pkg string, data []byte) { p := m.Package(pkg) bp, err := p.Import(build.Default, build.ImportComment) if err != nil { t.Fatal(err) } bp1, err := build.Default.Import(".", filepath.Join(src, pkg), build.ImportComment) if err != nil { t.Fatal(err) } if !reflect.DeepEqual(bp, bp1) { t.Errorf("mismatch") t.Logf("index:\n%s", hex.Dump(data))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 28 23:35:08 UTC 2022 - 2.3K bytes - Viewed (0)