MCPcopy Create free account
hub / github.com/decomp/decomp / warn

Function warn

cmd/go-post/fix.go:382–389  ·  view source on GitHub ↗
(pos token.Pos, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

380}
381
382func warn(pos token.Pos, msg string, args ...interface{}) {
383 if pos.IsValid() {
384 msg = "%s: " + msg
385 arg1 := []interface{}{fset.Position(pos).String()}
386 args = append(arg1, args...)
387 }
388 fmt.Fprintf(os.Stderr, msg+"\n", args...)
389}
390
391// rewriteUses replaces all uses of the identifier x and !x in scope
392// with f(x.Pos()) and fnot(x.Pos()).

Callers

nothing calls this directly

Calls 2

IsValidMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected