diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2025-06-06 02:49:26 +0200 |
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2025-06-06 02:49:26 +0200 |
| commit | 746a09a5854b9ce17e40caead51e1a42c2721bb1 (patch) | |
| tree | 474d9a11c3b82196577b61333dffe3c94c5258fb /vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go | |
| parent | efa0bd7df5f51d47c50efc446fd2f32996ab79be (diff) | |
Unvendor dependencies
Diffstat (limited to 'vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go')
| -rw-r--r-- | vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go b/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go deleted file mode 100644 index 2324ae7..0000000 --- a/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build go1.7 -// +build go1.7 - -package pkgbits - -import "runtime" - -// walkFrames calls visit for each call frame represented by pcs. -// -// pcs should be a slice of PCs, as returned by runtime.Callers. -func walkFrames(pcs []uintptr, visit frameVisitor) { - if len(pcs) == 0 { - return - } - - frames := runtime.CallersFrames(pcs) - for { - frame, more := frames.Next() - visit(frame.File, frame.Line, frame.Function, frame.PC-frame.Entry) - if !more { - return - } - } -} |