Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,557 for comment2 (0.23 sec)

  1. src/net/nss_test.go

    				sources: map[string][]nssSource{
    					"foo": {{source: "a"}, {source: "b"}},
    				},
    			},
    		},
    		{
    			name: "comment1",
    			in:   "   foo:a    b#c\n",
    			want: &nssConf{
    				sources: map[string][]nssSource{
    					"foo": {{source: "a"}, {source: "b"}},
    				},
    			},
    		},
    		{
    			name: "comment2",
    			in:   "   foo:a    b #c \n",
    			want: &nssConf{
    				sources: map[string][]nssSource{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:15:51 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  2. src/go/printer/testdata/comments.input

    // comments).
    func _() {
    	_ = T{
    		1,    // comment after comma
    		2,    /* comment after comma */
    		3  ,  // comment after comma
    	}
    	_ = T{
    		1  ,// comment after comma
    		2  ,/* comment after comma */
    		3,// comment after comma
    	}
    	_ = T{
    		/* comment before literal */1,
    		2/* comment before comma - ok to move after comma */,
    		3  /* comment before comma - ok to move after comma */  ,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 25 23:11:14 UTC 2022
    - 11.3K bytes
    - Viewed (0)
  3. src/go/printer/testdata/comments.golden

    // comments).
    func _() {
    	_ = T{
    		1,	// comment after comma
    		2,	/* comment after comma */
    		3,	// comment after comma
    	}
    	_ = T{
    		1,	// comment after comma
    		2,	/* comment after comma */
    		3,	// comment after comma
    	}
    	_ = T{
    		/* comment before literal */ 1,
    		2,	/* comment before comma - ok to move after comma */
    		3,	/* comment before comma - ok to move after comma */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 25 23:11:14 UTC 2022
    - 11.3K bytes
    - Viewed (0)
  4. src/go/printer/printer_test.go

    	comment := f.Comments[0].List[0]
    	pos := comment.Pos()
    	if fset.PositionFor(pos, false /* absolute position */).Offset != 1 {
    		t.Error("expected offset 1") // error in test
    	}
    
    	testComment(t, f, len(src), &ast.Comment{Slash: pos, Text: "//-style comment"})
    	testComment(t, f, len(src), &ast.Comment{Slash: pos, Text: "/*-style comment */"})
    	testComment(t, f, len(src), &ast.Comment{Slash: pos, Text: "/*-style \n comment */"})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  5. src/text/template/parse/parse_test.go

    	// Specific errors.
    	{"function",
    		"{{foo}}",
    		hasError, `function "foo" not defined`},
    	{"comment1",
    		"{{/*}}",
    		hasError, `comment1:1: unclosed comment`},
    	{"comment2",
    		"{{/*\nhello\n}}",
    		hasError, `comment2:1: unclosed comment`},
    	{"lparen",
    		"{{.X (1 2 3}}",
    		hasError, `unclosed left paren`},
    	{"rparen",
    		"{{.X 1 2 3 ) }}",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  6. src/go/build/build_test.go

    // TestIssue56509 tests that go/build does not add non-go files to InvalidGoFiles
    // when they have unparsable comments.
    func TestIssue56509(t *testing.T) {
    	// The directory testdata/bads contains a .s file that has an unparsable
    	// comment. (go/build parses initial comments in non-go files looking for
    	// //go:build or //+go build comments).
    	p, err := ImportDir("testdata/bads", 0)
    	if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 16:24:01 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  7. src/go/printer/testdata/comments.x

    type I2 interface {
    	I0
    	F(x float) float	// exported method
    	G(x float) float	// exported method
    }
    
    // The S3 struct; all comments except for the last one must appear in the export.
    type S3 struct {
    	// lead comment for F1
    	F1	int	// line comment for F1
    	// lead comment for F2
    	F2	int	// line comment for F2
    	// contains filtered or unexported fields
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:50 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  8. src/go/doc/comment.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package doc
    
    import (
    	"go/doc/comment"
    	"io"
    )
    
    // ToHTML converts comment text to formatted HTML.
    //
    // Deprecated: ToHTML cannot identify documentation links
    // in the doc comment, because they depend on knowing what
    // package the text came from, which is not included in this API.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:52 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  9. src/go/printer/testdata/comments2.golden

    func issue5623() {
    L:
    	_ = yyyyyyyyyyyyyyyy			// comment - should be aligned
    	_ = xxxxxxxxxxxxxxxxxxxxxxxxxxxx	/* comment */
    
    	_ = yyyyyyyyyyyyyyyy			/* comment - should be aligned */
    	_ = xxxxxxxxxxxxxxxxxxxxxxxxxxxx	// comment
    
    LLLLLLL:
    	_ = yyyyyyyyyyyyyyyy			// comment - should be aligned
    	_ = xxxxxxxxxxxxxxxxxxxxxxxxxxxx	// comment
    
    LL:
    LLLLL:
    	_ = xxxxxxxxxxxxxxxxxxxxxxxxxxxx	/* comment */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:50 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  10. src/go/printer/testdata/comments2.input

       }
    }
    
    func issue5623() {
    L:
       _ = yyyyyyyyyyyyyyyy // comment - should be aligned
       _ = xxxxxxxxxxxxxxxxxxxxxxxxxxxx /* comment */
    
       _ = yyyyyyyyyyyyyyyy /* comment - should be aligned */
       _ = xxxxxxxxxxxxxxxxxxxxxxxxxxxx // comment
    
    LLLLLLL:
       _ = yyyyyyyyyyyyyyyy // comment - should be aligned
       _ = xxxxxxxxxxxxxxxxxxxxxxxxxxxx // comment
    
    LL:
    LLLLL:
       _ = xxxxxxxxxxxxxxxxxxxxxxxxxxxx /* comment */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 00:06:54 UTC 2017
    - 2.3K bytes
    - Viewed (0)
Back to top