Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setComment (0.11 sec)

  1. src/go/printer/nodes.go

    	switch s := spec.(type) {
    	case *ast.ImportSpec:
    		p.setComment(s.Doc)
    		if s.Name != nil {
    			p.expr(s.Name)
    			p.print(blank)
    		}
    		p.expr(sanitizeImportPath(s.Path))
    		p.setComment(s.Comment)
    		p.setPos(s.EndPos)
    
    	case *ast.ValueSpec:
    		if n != 1 {
    			p.internalError("expected n = 1; got", n)
    		}
    		p.setComment(s.Doc)
    		p.identList(s.Names, doIndent) // always present
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Writer).Create", Method, 0},
    		{"(*Writer).CreateHeader", Method, 0},
    		{"(*Writer).CreateRaw", Method, 17},
    		{"(*Writer).Flush", Method, 4},
    		{"(*Writer).RegisterCompressor", Method, 6},
    		{"(*Writer).SetComment", Method, 10},
    		{"(*Writer).SetOffset", Method, 5},
    		{"Compressor", Type, 2},
    		{"Decompressor", Type, 2},
    		{"Deflate", Const, 0},
    		{"ErrAlgorithm", Var, 0},
    		{"ErrChecksum", Var, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top