Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,559 for comment1 (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/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)
  5. 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)
  6. 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)
  7. 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)
  8. src/go/printer/comment.go

    		return list
    	}
    
    	// Parse comment and reformat as text.
    	var p comment.Parser
    	d := p.Parse(text)
    
    	var pr comment.Printer
    	text = string(pr.Comment(d))
    
    	// For /* */ comment, return one big comment with text inside.
    	slash := list[0].Slash
    	if kind == "/*" {
    		c := &ast.Comment{
    			Slash: slash,
    			Text:  "/*\n" + text + "*/",
    		}
    		return []*ast.Comment{c}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 07:35:19 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  9. src/cmd/gofmt/testdata/comments.input

    package main
    
    func main() {}
    
    // comment here
    
    func f() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 14 19:54:45 UTC 2011
    - 76 bytes
    - Viewed (0)
  10. src/cmd/gofmt/testdata/comments.golden

    package main
    
    func main() {}
    
    // comment here
    
    func f() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 14 19:54:45 UTC 2011
    - 76 bytes
    - Viewed (0)
Back to top