MCPcopy Create free account
hub / github.com/araddon/qlbridge / initialComment

Method initialComment

rel/parse_filterql.go:203–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201}
202
203func (m *FilterQLParser) initialComment() string {
204
205 comment := ""
206
207 for {
208 // We are going to loop until we find the first Non-Comment Token
209 switch m.Cur().T {
210 case lex.TokenComment, lex.TokenCommentML:
211 comment += m.Cur().V
212 case lex.TokenCommentStart, lex.TokenCommentHash, lex.TokenCommentEnd, lex.TokenCommentSingleLine, lex.TokenCommentSlashes:
213 // skip, currently ignore these
214 default:
215 // first non-comment token
216 return comment
217 }
218 m.Next()
219 }
220}
221
222func (m *FilterQLParser) discardNewLines() {
223 for {

Callers 2

parseFilterStartMethod · 0.95
parseSelectStartMethod · 0.95

Calls 2

CurMethod · 0.65
NextMethod · 0.65

Tested by

no test coverage detected