MCPcopy Create free account
hub / github.com/alibaba/open-code-review / ParseCommentsWithPath

Function ParseCommentsWithPath

internal/tool/code_comment.go:79–81  ·  view source on GitHub ↗

ParseCommentsWithPath is like ParseComments but uses defaultPath as a fallback when individual comment objects omit the path field. repair is non-nil when `comments` arrived as a serialized string that only parsed after the deterministic repair (see comment_args_repair.go). It reports a schema viol

(args map[string]any, defaultPath string)

Source from the content-addressed store, hash-verified

77// schema violation, not a change to the findings: a repair is accepted only when
78// no recovered value looks cut short.
79func ParseCommentsWithPath(args map[string]any, defaultPath string) (comments []model.LlmComment, repair *CommentRepair, errMsg string) {
80 return parseCommentsInner(args, defaultPath)
81}
82
83// ParseComments extracts LlmComment entries from tool call arguments without writing
84// to the Collector. Returns parsed comments and an error message (empty on success).

Calls 1

parseCommentsInnerFunction · 0.85