Lines Matching refs:lineNo
98 func extractComment(lines []string, lineNo int) (comment []string, rest []string, restLineNo int, e…
100 return nil, lines, lineNo, nil
103 restLineNo = lineNo
172 func extractDecl(lines []string, lineNo int) (decl string, rest []string, restLineNo int, err error…
174 return "", lines, lineNo, nil
178 restLineNo = lineNo
312 lineNo := 1
317 lineNo += i + 1
330 lineNo += 2
341 lineNo += i
348 comment, rest, restLineNo, err := extractComment(lines, lineNo)
358 lineNo = restLineNo + 2
378 return nil, fmt.Errorf("blank line at start of section on line %d", lineNo)
384 comment, rest, restLineNo, err := extractComment(lines, lineNo)
401 lineNo = restLineNo + 1
409 lineNo++
413 return nil, fmt.Errorf("hit ending C++ guard while in section on line %d", lineNo)
419 comment, lines, lineNo, err = extractComment(lines, lineNo)
425 return nil, fmt.Errorf("expected decl at EOF on line %d", lineNo)
427 declLineNo := lineNo
428 decl, lines, lineNo, err = extractDecl(lines, lineNo)
477 lineNo++