- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,232 for comment1 (0.14 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/cmd/vendor/golang.org/x/mod/modfile/read.go
} // Comments collects the comments associated with an expression. type Comments struct { Before []Comment // whole-line comments before this expression Suffix []Comment // end-of-line comments after this expression // For top-level expressions only, After lists whole-line // comments following the expression. After []Comment }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 23.1K bytes - Viewed (0)