Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for commentInfo (0.15 sec)

  1. src/go/printer/printer.go

    // comments on the same line before the next position.
    func (p *printer) commentSizeBefore(next token.Position) int {
    	// save/restore current p.commentInfo (p.nextComment() modifies it)
    	defer func(info commentInfo) {
    		p.commentInfo = info
    	}(p.commentInfo)
    
    	size := 0
    	for p.commentBefore(next) {
    		for _, c := range p.comment.List {
    			size += len(c.Text)
    		}
    		p.nextComment()
    	}
    	return size
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 41.6K bytes
    - Viewed (0)
Back to top