MCPcopy
hub / github.com/google/git-appraise / String

Method String

review/comment/comment.go:251–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249}
250
251func (r *Range) String() string {
252 out := ""
253 if r.StartLine != 0 {
254 out = fmt.Sprintf("%d", r.StartLine)
255 }
256 if r.StartColumn != 0 {
257 out = fmt.Sprintf("%s+%d", out, r.StartColumn)
258 }
259 if r.EndLine != 0 {
260 out = fmt.Sprintf("%s:%d", out, r.EndLine)
261 }
262 if r.EndColumn != 0 {
263 out = fmt.Sprintf("%s+%d", out, r.EndColumn)
264 }
265 return out
266}

Callers 14

reject.goFile · 0.80
comment.goFile · 0.80
abandon.goFile · 0.80
request.goFile · 0.80
show.goFile · 0.80
accept.goFile · 0.80
FromFileFunction · 0.80
runGitCommandRawMethod · 0.80
runGitCommandWithEnvMethod · 0.80
StoreBlobMethod · 0.80
StoreTreeMethod · 0.80
prettyPrintJSONFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected