Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 699 for COMMENT (0.11 sec)

  1. 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)
  2. src/go/parser/parser.go

    	var list []*ast.Comment
    	endline = p.file.Line(p.pos)
    	for p.tok == token.COMMENT && p.file.Line(p.pos) <= endline+n {
    		var comment *ast.Comment
    		comment, endline = p.consumeComment()
    		list = append(list, comment)
    	}
    
    	// add comment group to the comments list
    	comments = &ast.CommentGroup{List: list}
    	p.comments = append(p.comments, comments)
    
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  3. pkg/proxy/nftables/helpers_test.go

    	add element ip testing no-endpoint-nodeports { tcp . 3001 comment "ns2/svc2:p80" : drop }
    	add element ip testing no-endpoint-services { 1.2.3.4 . tcp . 80 comment "ns2/svc2:p80" : drop }
    	add element ip testing no-endpoint-services { 192.168.99.22 . tcp . 80 comment "ns2/svc2:p80" : drop }
    	`)
    
    var testExpected = dedent.Dedent(`
    	add table ip testing { comment "rules for kube-proxy" ; }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 09:57:47 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  4. src/go/doc/comment/parse.go

    // license that can be found in the LICENSE file.
    
    package comment
    
    import (
    	"slices"
    	"strings"
    	"unicode"
    	"unicode/utf8"
    )
    
    // A Doc is a parsed Go doc comment.
    type Doc struct {
    	// Content is the sequence of content blocks in the comment.
    	Content []Block
    
    	// Links is the link definitions in the comment.
    	Links []*LinkDef
    }
    
    // A LinkDef is a single link definition.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 33.5K bytes
    - Viewed (0)
  5. src/go/types/eval_test.go

    		t.Fatal(err)
    	}
    
    	for _, file := range files {
    		for _, group := range file.Comments {
    			for _, comment := range group.List {
    				s := comment.Text
    				if len(s) >= 4 && s[:2] == "/*" && s[len(s)-2:] == "*/" {
    					str, typ := split(s[2:len(s)-2], ", ")
    					str, val := split(str, "=>")
    					testEval(t, fset, pkg, comment.Pos(), str, nil, typ, val)
    				}
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 19:56:15 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. src/go/ast/ast.go

    type Comment struct {
    	Slash token.Pos // position of "/" starting the comment
    	Text  string    // comment text (excluding '\n' for //-style comments)
    }
    
    func (c *Comment) Pos() token.Pos { return c.Slash }
    func (c *Comment) End() token.Pos { return token.Pos(int(c.Slash) + len(c.Text)) }
    
    // A CommentGroup represents a sequence of comments
    // with no other tokens and no empty lines between.
    type CommentGroup struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  7. src/encoding/csv/reader.go

    	// or the Unicode replacement character (0xFFFD).
    	Comma rune
    
    	// Comment, if not 0, is the comment character. Lines beginning with the
    	// Comment character without preceding whitespace are ignored.
    	// With leading whitespace the Comment character becomes part of the
    	// field, even if TrimLeadingSpace is true.
    	// Comment must be a valid rune and must not be \r, \n,
    	// or the Unicode replacement character (0xFFFD).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:32:28 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  8. platforms/documentation/docs-asciidoctor-extensions-base/src/test/groovy/org/gradle/docs/asciidoctor/SampleIncludeProcessorTest.groovy

            given:
            tmpDir.newFile("src/samples/build.gradle") << """
                |// No-indent comment outside of tag
                |// tag::foo[]
                |    // Comment
                |    doLast {
                |// end::foo[]
                |        println "hello world"
                |// tag::foo[]
                |    }
                |// end::foo[]
            """.trim().stripMargin()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/WebPlatformToAsciiTest.kt

            println(failure)
          }
          throw failures.first()
        }
      }
    
      private fun testToAscii(
        input: String,
        output: String?,
        comment: String?,
      ) {
        val url = "https://$input/".toHttpUrlOrNull()
        assertThat(url?.host, name = comment ?: input).isEqualTo(output)
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/BuildScriptBuilderKotlinTest.groovy

            builder.methodInvocation(null, "foo", "bar")
            builder.propertyAssignment("has comment", "foo", "bar")
            builder.propertyAssignment(null, "foo", 123)
            builder.propertyAssignment(null, "foo", false)
            def b1 = builder.block(null, "block1")
            b1.methodInvocation("comment", "method1")
            b1.methodInvocation("comment", "method2")
            b1.methodInvocation(null, "method3")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 18 14:16:33 UTC 2023
    - 16.1K bytes
    - Viewed (0)
Back to top