- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for consumeComment (0.14 sec)
-
src/net/mail/message.go
func (p *addrParser) skipCFWS() bool { p.skipSpace() for { if !p.consume('(') { break } if _, ok := p.consumeComment(); !ok { return false } p.skipSpace() } return true } func (p *addrParser) consumeComment() (string, bool) { // '(' already consumed. depth := 1 var comment string for { if p.empty() || depth == 0 { break
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:31:03 UTC 2024 - 23.5K bytes - Viewed (0) -
src/go/printer/testdata/parser.go
default: p.printTrace(s) } } p.pos, p.tok, p.lit = p.scanner.Scan() } // Consume a comment and return it and the line on which it ends. func (p *parser) consumeComment() (comment *ast.Comment, endline int) { // /*-style comments may end on a different line than where they start. // Scan the comment for '\n' chars and adjust endline accordingly. endline = p.file.Line(p.pos)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 20:19:51 UTC 2023 - 50.5K bytes - Viewed (0) -
src/go/parser/parser.go
} } else { // Found a non-comment; top of file is over. p.top = false } break } } // Consume a comment and return it and the line on which it ends. func (p *parser) consumeComment() (comment *ast.Comment, endline int) { // /*-style comments may end on a different line than where they start. // Scan the comment for '\n' chars and adjust endline accordingly. endline = p.file.Line(p.pos)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0)