Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for commentOffset (0.2 sec)

  1. 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)
Back to top