MCPcopy Index your code
hub / github.com/bytebase/bytebase / readMultilineComment

Function readMultilineComment

backend/plugin/parser/tsql/batch/parse.go:40–48  ·  view source on GitHub ↗

readMultilineComment finds the end of a multiline comment (ie, '*/').

(r []rune, i, end int)

Source from the content-addressed store, hash-verified

38
39// readMultilineComment finds the end of a multiline comment (ie, '*/').
40func readMultilineComment(r []rune, i, end int) (int, bool) {
41 i++
42 for ; i < end; i++ {
43 if r[i-1] == '*' && r[i] == '/' {
44 return i, true
45 }
46 }
47 return end, false
48}

Callers 1

NextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected