Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for BlankBefore (0.12 sec)

  1. src/go/doc/comment/print.go

    				out.WriteString("\n")
    			}
    		}
    	}
    
    	return out.Bytes()
    }
    
    // blankBefore reports whether the block x requires a blank line before it.
    // All blocks do, except for Lists that return false from x.BlankBefore().
    func blankBefore(x Block) bool {
    	if x, ok := x.(*List); ok {
    		return x.BlankBefore()
    	}
    	return true
    }
    
    // block prints the block x to out.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. src/go/doc/comment/parse.go

    	// Items is the list items.
    	Items []*ListItem
    
    	// ForceBlankBefore indicates that the list must be
    	// preceded by a blank line when reformatting the comment,
    	// overriding the usual conditions. See the BlankBefore method.
    	//
    	// The comment parser sets ForceBlankBefore for any list
    	// that is preceded by a blank line, to make sure
    	// the blank line is preserved when printing.
    	ForceBlankBefore bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 33.5K bytes
    - Viewed (0)
  3. src/go/doc/comment/text.go

    		tp.codePrefix = p.TextPrefix + "\t"
    	}
    	if tp.width == 0 {
    		tp.width = 80 - utf8.RuneCountInString(tp.prefix)
    	}
    
    	var out bytes.Buffer
    	for i, x := range d.Content {
    		if i > 0 && blankBefore(x) {
    			out.WriteString(tp.prefix)
    			writeNL(&out)
    		}
    		tp.block(&out, x)
    	}
    	anyUsed := false
    	for _, def := range d.Links {
    		if def.Used {
    			anyUsed = true
    			break
    		}
    	}
    	if anyUsed {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  4. api/go1.19.txt

    pkg go/doc/comment, method (*DocLink) DefaultURL(string) string #51082
    pkg go/doc/comment, method (*Heading) DefaultID() string #51082
    pkg go/doc/comment, method (*List) BlankBefore() bool #51082
    pkg go/doc/comment, method (*List) BlankBetween() bool #51082
    pkg go/doc/comment, method (*Parser) Parse(string) *Doc #51082
    pkg go/doc/comment, method (*Printer) Comment(*Doc) []uint8 #51082
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:29:41 UTC 2022
    - 17.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Value.Decl", Field, 0},
    		{"Value.Doc", Field, 0},
    		{"Value.Names", Field, 0},
    	},
    	"go/doc/comment": {
    		{"(*DocLink).DefaultURL", Method, 19},
    		{"(*Heading).DefaultID", Method, 19},
    		{"(*List).BlankBefore", Method, 19},
    		{"(*List).BlankBetween", Method, 19},
    		{"(*Parser).Parse", Method, 19},
    		{"(*Printer).Comment", Method, 19},
    		{"(*Printer).HTML", Method, 19},
    		{"(*Printer).Markdown", Method, 19},
    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