Lines Matching refs:rest
79 func extractComment(lines []string, lineNo int) (comment []string, rest []string, restLineNo int, e…
85 rest = lines
87 if !strings.HasPrefix(rest[0], commentStart) {
90 commentParagraph := rest[0][len(commentStart):]
91 rest = rest[1:]
94 for len(rest) > 0 {
108 line := rest[0]
133 rest = rest[1:]
141 func extractDecl(lines []string, lineNo int) (decl string, rest []string, restLineNo int, err error…
146 rest = lines
150 for len(rest) > 0 {
151 line := rest[0]
183 rest = rest[1:]
301 comment, rest, restLineNo, err := extractComment(lines, lineNo)
306 if len(rest) > 0 && len(rest[0]) == 0 {
307 if len(rest) < 2 || len(rest[1]) != 0 {
312 lines = rest[2:]
337 comment, rest, restLineNo, err := extractComment(lines, lineNo)
341 if len(rest) > 0 && len(rest[0]) == 0 {
353 lines = rest[1:]