Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,557 for comment2 (0.33 sec)

  1. src/go/printer/gobuild.go

    		return
    	}
    
    	// Find latest possible placement of //go:build and // +build comments.
    	// That's just after the last blank line before we find a non-comment.
    	// (We'll add another blank line after our comment block.)
    	// When we start dropping // +build comments, we can skip over /* */ comments too.
    	// Note that we are processing tabwriter input, so every comment
    	// begins and ends with a tabwriter.Escape byte.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/scanner.go

    // never starts with a '/'. The error handler must exist.
    //
    // If the scanner mode includes the comments flag and a comment
    // (including comments containing directives) is encountered, the
    // error handler is also called with each comment position and text
    // (including opening /* or // and closing */, but without a newline
    // at the end of line comments). Comment text always starts with a /
    // which can be used to distinguish these handler calls from errors.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 28 18:17:41 UTC 2022
    - 17.1K bytes
    - Viewed (0)
  3. src/cmd/gofmt/testdata/rewrite5.golden

    // license that can be found in the LICENSE file.
    
    // Rewriting of expressions containing nodes with associated comments to
    // expressions without those nodes must also eliminate the associated
    // comments.
    
    package p
    
    func f(x int) int {
    	_ = 2 * x // this comment remains in the rewrite
    	_ = 2 * x
    	return 2 * x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 22 00:25:13 UTC 2014
    - 446 bytes
    - Viewed (0)
  4. 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)
  5. src/go/build/doc.go

    // constraints and containing a "//go:binary-only-package" comment. Like a
    // build constraint, this comment appeared at the top of a file, preceded
    // only by blank lines and other line comments and with a blank line
    // following the comment, to separate it from the package documentation.
    // Unlike build constraints, this comment is only recognized in non-test
    // Go source files.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. src/mdo/java/WrapperProperties.java

        public void save(OutputStream out, String comments) {
            Properties props = new Properties();
            props.putAll(getter.get());
            props.save(out, comments);
        }
    
        @Override
        public void store(Writer writer, String comments) throws IOException {
            Properties props = new Properties();
            props.putAll(getter.get());
            props.store(writer, comments);
        }
    
        @Override
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Mar 01 16:30:18 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. src/go/printer/testdata/expressions.golden

    	`foo
    bar`
    
    	var _ =	// comment
    	``
    	var _ =	// comment
    	`foo`
    	var _ =	// comment
    	// the next line should remain indented
    	`foo
    bar`
    
    	var _ = /* comment */ ``
    	var _ = /* comment */ `foo`
    	var _ = /* comment */ `foo
    bar`
    
    	var _ =	/* comment */
    	``
    	var _ =	/* comment */
    	`foo`
    	var _ =	/* comment */
    	// the next line should remain indented
    	`foo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  8. src/go/printer/testdata/expressions.raw

    	`foo
    bar`
    
    	var _ =	// comment
    	``
    	var _ =	// comment
    	`foo`
    	var _ =	// comment
    	// the next line should remain indented
    	`foo
    bar`
    
    	var _ = /* comment */ ``
    	var _ = /* comment */ `foo`
    	var _ = /* comment */ `foo
    bar`
    
    	var _ =	/* comment */
    	``
    	var _ =	/* comment */
    	`foo`
    	var _ =	/* comment */
    	// the next line should remain indented
    	`foo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  9. src/go/ast/ast_test.go

    	{[]string{"// foo", "//lint123:ignore", "// bar"}, "foo\nbar\n"},
    }
    
    func TestCommentText(t *testing.T) {
    	for i, c := range comments {
    		list := make([]*Comment, len(c.list))
    		for i, s := range c.list {
    			list[i] = &Comment{Text: s}
    		}
    
    		text := (&CommentGroup{list}).Text()
    		if text != c.text {
    			t.Errorf("case %d: got %q; expected %q", i, text, c.text)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 22:03:44 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  10. src/go/printer/testdata/expressions.input

    	`foo
    bar`
    
    
    	var _ = // comment
    		``
    	var _ = // comment
    		`foo`
    	var _ = // comment
    		// the next line should remain indented
    		`foo
    bar`
    
    
    var _ = /* comment */ ``
    var _ = /* comment */ `foo`
    var _ = /* comment */ `foo
    bar`
    
    
    	var _ = /* comment */
    		``
    	var _ = /* comment */
    		`foo`
    	var _ = /* comment */
    		// the next line should remain indented
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.1K bytes
    - Viewed (0)
Back to top