Lines Matching refs:lineNo
79 func extractComment(lines []string, lineNo int) (comment []string, rest []string, restLineNo int, e…
81 return nil, lines, lineNo, nil
84 restLineNo = lineNo
141 func extractDecl(lines []string, lineNo int) (decl string, rest []string, restLineNo int, err error…
143 return "", lines, lineNo, nil
147 restLineNo = lineNo
264 lineNo := 0
267 lineNo++
270 lineNo++
283 lineNo += 2
292 lineNo++
301 comment, rest, restLineNo, err := extractComment(lines, lineNo)
311 lineNo = restLineNo + 2
331 return nil, fmt.Errorf("blank line at start of section on line %d", lineNo)
337 comment, rest, restLineNo, err := extractComment(lines, lineNo)
354 lineNo = restLineNo + 1
362 lineNo++
372 comment, lines, lineNo, err = extractComment(lines, lineNo)
380 decl, lines, lineNo, err = extractDecl(lines, lineNo)
402 …turn nil, fmt.Errorf("Comment for %q doesn't seem to match just above %s:%d\n", name, path, lineNo)
422 lineNo++