Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,237 for COMMENT (0.09 sec)

  1. src/go/printer/testdata/statements.input

    	}
    
    	switch x {
    	case 0:
    		use(x)
    	case 1:  // this comment should have no effect on the previous or next line
    		use(x)
    	}
    
    	switch x := 0; x {
    	case 1:
    		x = 0
    		// this comment should be indented
    	case 2:
    		x = 0
    	// this comment should not be indented, it is aligned with the next case
    	case 3:
    		x = 0
    		/* indented comment
    		   aligned
    		   aligned
    		*/
    		// bla
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 8.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/util/PropertiesUtils.java

         * <ul>
         *     <li>provided comment</li>
         *     <li>line separator {@literal '\n'}</li>
         *     <li>charset ISO-8859-1</li>
         * </ul>
         */
        public static void store(Properties properties, File propertyFile, @Nullable String comment) throws IOException {
            store(properties, propertyFile, comment, Charsets.ISO_8859_1, "\n");
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 14:17:21 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. src/cmd/gofmt/testdata/import.input

    	"dedup_by_group"
    
    	"dedup_by_group"
    )
    
    import (
    	/* comment */ io1 "io"
    	"fmt" // for Printf
    	/* comment */ "log"
    	/* comment */ io2 "io"
    )
    
    import (
    	/* comment */ io2 "io" // hello
    	/* comment */ io1 "io"
    	"math" /* right side */
    	"fmt"
    	// end
    )
    
    import (
    	/* comment */ io1 "io" /* before */ // after
    	"fmt"
    	"errors" // for New
    	io2 "io" // another
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 28 23:33:26 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  4. src/cmd/fix/import_test.go

    		Fn:   addImportFn("os"),
    		In: `package main
    
    // Comment
    import "C"
    `,
    		Out: `package main
    
    // Comment
    import "C"
    import "os"
    `,
    	},
    	{
    		Name: "import.3",
    		Fn:   addImportFn("os"),
    		In: `package main
    
    // Comment
    import "C"
    
    import (
    	"io"
    	"utf8"
    )
    `,
    		Out: `package main
    
    // Comment
    import "C"
    
    import (
    	"io"
    	"os"
    	"utf8"
    )
    `,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:34:33 UTC 2016
    - 5K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/sourceparser/PreprocessingReaderTest.groovy

        def "replaces line comments with space"() {
            when:
            input = """
    Here is a // comment
    string
    // Line comment
    with interspersed // comment /* with inline comment */ and // other comment */ chars
    line comments.
    """
    
            then:
            output == "\nHere is a \nstring\n\nwith interspersed \nline comments."
        }
    
        def "can cope with multiple unescaped and escaped \\r characters"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. src/go/printer/testdata/doc.golden

    package p
    
    /*
    Doc comment.
    
      - List1.
    
      - List2.
    */
    var X int
    
    /* erroneous doc comment */
    var Y int
    
    /*
     * Another erroneous
     * doc comment.
     */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:50 UTC 2022
    - 160 bytes
    - Viewed (0)
  7. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/Project.java

        }
    
        public void setName(String name) {
            this.name = name;
        }
    
        /**
         * A comment used for the eclipse project
         */
        public String getComment() {
            return comment;
        }
    
        public void setComment(String comment) {
            this.comment = comment;
        }
    
        /**
         * The referenced projects of this Eclipse project.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  8. src/go/printer/testdata/statements.golden

    	}
    
    	switch x {
    	case 0:
    		use(x)
    	case 1:	// this comment should have no effect on the previous or next line
    		use(x)
    	}
    
    	switch x := 0; x {
    	case 1:
    		x = 0
    		// this comment should be indented
    	case 2:
    		x = 0
    	// this comment should not be indented, it is aligned with the next case
    	case 3:
    		x = 0
    		/* indented comment
    		   aligned
    		   aligned
    		*/
    		// bla
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 12 18:18:12 UTC 2014
    - 8K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/WritePropertiesIntegrationTest.groovy

            when:
            runProps()
            then:
            file("output.properties").text == ""
        }
    
        def "empty properties with comment are written properly"() {
            given:
            buildFile << """
                task props(type: WriteProperties) {
                    comment = "Line comment"
                    outputFile = file("output.properties")
                }
            """
    
            when:
            runProps()
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 19 13:03:22 UTC 2023
    - 6K bytes
    - Viewed (0)
  10. 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)
Back to top