Lines Matching refs:rest
98 func extractComment(lines []string, lineNo int) (comment []string, rest []string, restLineNo int, e…
104 rest = lines
107 if strings.HasPrefix(rest[0], commentStart) {
109 } else if !strings.HasPrefix(rest[0], lineComment) {
112 commentParagraph := rest[0][len(commentStart):]
113 rest = rest[1:]
116 for len(rest) > 0 {
132 line := rest[0]
164 rest = rest[1:]
172 func extractDecl(lines []string, lineNo int) (decl string, rest []string, restLineNo int, err error…
177 rest = lines
181 for len(rest) > 0 {
182 line := rest[0]
214 rest = rest[1:]
348 comment, rest, restLineNo, err := extractComment(lines, lineNo)
353 if len(rest) > 0 && len(rest[0]) == 0 {
354 if len(rest) < 2 || len(rest[1]) != 0 {
359 lines = rest[2:]
384 comment, rest, restLineNo, err := extractComment(lines, lineNo)
388 if len(rest) > 0 && len(rest[0]) == 0 {
400 lines = rest[1:]