Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CommentGroup (0.19 sec)

  1. src/cmd/cgo/ast.go

    	f.Comments = ast1.Comments
    	f.AST = ast2
    }
    
    // Like ast.CommentGroup's Text method but preserves
    // leading blank lines, so that line numbers line up.
    func commentText(g *ast.CommentGroup) string {
    	pieces := make([]string, 0, len(g.List))
    	for _, com := range g.List {
    		c := com.Text
    		// Remove comment markers.
    		// The parser has given us exactly the comment text.
    		switch c[1] {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 14 15:47:06 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  2. src/cmd/api/main_test.go

    	if err != nil {
    		log.Fatalf("unexpected api file: %v", name)
    	}
    	return n >= 19 // started tracking approvals in Go 1.19
    }
    
    func (w *Walker) collectDeprecated() {
    	isDeprecated := func(doc *ast.CommentGroup) bool {
    		if doc != nil {
    			for _, c := range doc.List {
    				if strings.HasPrefix(c.Text, "// Deprecated:") {
    					return true
    				}
    			}
    		}
    		return false
    	}
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  3. api/go1.1.txt

    pkg go/ast, func NewCommentMap(*token.FileSet, Node, []*CommentGroup) CommentMap
    pkg go/ast, method (CommentMap) Comments() []*CommentGroup
    pkg go/ast, method (CommentMap) Filter(Node) CommentMap
    pkg go/ast, method (CommentMap) String() string
    pkg go/ast, method (CommentMap) Update(Node, Node) Node
    pkg go/ast, type ChanType struct, Arrow token.Pos
    pkg go/ast, type CommentMap map[Node][]*CommentGroup
    pkg go/build, const AllowBinary = 2
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top