- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for commentOffset (0.29 sec)
-
src/go/printer/printer.go
p.cindex++ if list := c.List; len(list) > 0 { p.comment = c p.commentOffset = p.posFor(list[0].Pos()).Offset p.commentNewline = p.commentsHaveNewline(list) return } // we should not reach here (correct ASTs don't have empty // ast.CommentGroup nodes), but be conservative and try again } // no more comments p.commentOffset = infinity }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 41.6K bytes - Viewed (0) -
src/go/printer/nodes.go
p.cindex = 0 // don't overwrite any pending comment in the p.comment cache // (there may be a pending comment when a line comment is // immediately followed by a lead comment with no other // tokens between) if p.commentOffset == infinity { p.nextComment() // get comment ready for use } } type exprListMode uint const ( commaTerm exprListMode = 1 << iota // list is optionally terminated by a comma
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 17 18:53:17 UTC 2023 - 52.6K bytes - Viewed (0)