Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for CommentGroup (0.09 seconds)

  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] {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jan 08 17:58:59 GMT 2026
    - 14.4K bytes
    - Click Count (0)
  2. api/go1.txt

    pkg go/ast, method (*CommClause) Pos() token.Pos
    pkg go/ast, method (*Comment) End() token.Pos
    pkg go/ast, method (*Comment) Pos() token.Pos
    pkg go/ast, method (*CommentGroup) End() token.Pos
    pkg go/ast, method (*CommentGroup) Pos() token.Pos
    pkg go/ast, method (*CommentGroup) Text() string
    pkg go/ast, method (*CompositeLit) End() token.Pos
    pkg go/ast, method (*CompositeLit) Pos() token.Pos
    pkg go/ast, method (*DeclStmt) End() token.Pos
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Click Count (0)
  3. 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
    	}
    
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon Mar 02 13:20:41 GMT 2026
    - 31.4K bytes
    - Click Count (0)
  4. 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
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Click Count (0)
Back to Top