Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for addWhitespace (0.12 sec)

  1. src/cmd/compile/internal/syntax/printer.go

    			case newline:
    				// TODO(gri) need to handle mandatory newlines after a //-style comment
    				if !p.linebreaks {
    					x = blank
    				}
    			}
    			p.addWhitespace(x, "")
    
    		// case *Comment: // comments are not Nodes
    		// 	p.addWhitespace(comment, x.Text)
    
    		default:
    			panic(fmt.Sprintf("unexpected argument %v (%T)", x, x))
    		}
    	}
    }
    
    func (p *printer) printNode(n Node) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
Back to top