Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 939 for COMMENT (0.11 sec)

  1. src/go/ast/import.go

    				if g.left {
    					c.Slash = pos[i].Start - 1
    				} else {
    					// An import spec can have both block comment and a line comment
    					// to its right. In that case, both of them will have the same pos.
    					// But while formatting the AST, the line comment gets moved to
    					// after the block comment.
    					c.Slash = pos[i].End
    				}
    			}
    		}
    	}
    
    	slices.SortFunc(comments, func(a, b *CommentGroup) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/RepositoriesBuilder.java

    import javax.annotation.Nullable;
    
    public interface RepositoriesBuilder {
        void mavenLocal(@Nullable String comment);
    
        void maven(@Nullable String comment, String url);
    
        void mavenCentral(@Nullable String comment);
    
        void gradlePluginPortal(@Nullable String comment);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 949 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/mod/modfile/print.go

    func (p *printer) newline() {
    	if len(p.comment) > 0 {
    		p.printf(" ")
    		for i, com := range p.comment {
    			if i > 0 {
    				p.trim()
    				p.printf("\n")
    				for i := 0; i < p.margin; i++ {
    					p.printf("\t")
    				}
    			}
    			p.printf("%s", strings.TrimSpace(com.Token))
    		}
    		p.comment = p.comment[:0]
    	}
    
    	p.trim()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 00:48:59 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. src/go/scanner/scanner_test.go

    	{"foo    /*  */ /* \n */ bar/**/\n", "IDENT COMMENT COMMENT ; IDENT COMMENT ;"},
    	{"foo    /*0*/ /*1*/ /*2*/\n", "IDENT COMMENT COMMENT COMMENT ;"},
    
    	{"foo    /*comment*/    \n", "IDENT COMMENT ;"},
    	{"foo    /*0*/ /*1*/ /*2*/    \n", "IDENT COMMENT COMMENT COMMENT ;"},
    	{"foo	/**/ /*-------------*/       /*----\n*/bar       /*  \n*/baa\n", "IDENT COMMENT COMMENT COMMENT ; IDENT COMMENT ; IDENT ;"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 15:38:31 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  5. src/compress/gzip/gzip_test.go

    	}
    	b, err := io.ReadAll(r)
    	if err != nil {
    		t.Fatalf("ReadAll: %v", err)
    	}
    	if string(b) != "payload" {
    		t.Fatalf("payload is %q, want %q", string(b), "payload")
    	}
    	if r.Comment != "comment" {
    		t.Fatalf("comment is %q, want %q", r.Comment, "comment")
    	}
    	if string(r.Extra) != "extra" {
    		t.Fatalf("extra is %q, want %q", r.Extra, "extra")
    	}
    	if r.ModTime.Unix() != 1e8 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:10:06 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. src/go/doc/comment/testdata/doclink4.txt

    -- input --
    [io] at start of comment.
    [io] at start of line.
    At end of line: [io]
    At end of comment: [io]
    -- markdown --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:42 UTC 2022
    - 235 bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/xml/SimpleMarkupWriter.java

        }
    
        /**
         * Writes an XML comment.
         * Characters are not XML encoded inside the comment.
         * The start comment delimiter will contain a space if the comment does not start with a blank character.
         * The end comment delimiter will contain a space if the comment does not end with a blank character.
         *
         * @param comment the comment to write
         * @return this writer
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 02 12:15:58 UTC 2021
    - 12K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/scanner_test.go

    		{"//\n//\n\t// want this one\r\n", comment{2, 1, "// want this one\r"}},
    		{"\n\n//\n", comment{2, 0, "//"}},
    		{"//", comment{0, 0, "//"}},
    
    		/*-style comments */
    		{"123/* regular comment */", comment{0, 3, "/* regular comment */"}},
    		{"package p /* regular comment", comment{0, 0, ""}},
    		{"\n\n\n/*\n*//* want this one */", comment{4, 2, "/* want this one */"}},
    		{"\n\n/**/", comment{2, 0, "/**/"}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 16:11:21 UTC 2022
    - 21.9K bytes
    - Viewed (0)
  9. hack/golangci-strict.yaml

            - revive
            - stylecheck
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. src/go/printer/printer.go

    	var last *ast.Comment
    	for p.commentBefore(next) {
    		list := p.comment.List
    		changed := false
    		if p.lastTok != token.IMPORT && // do not rewrite cgo's import "C" comments
    			p.posFor(p.comment.Pos()).Column == 1 &&
    			p.posFor(p.comment.End()+1) == next {
    			// Unindented comment abutting next token position:
    			// a top-level doc comment.
    			list = formatDocComment(list)
    			changed = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 41.6K bytes
    - Viewed (0)
Back to top