Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 393 for COMMENT (0.1 sec)

  1. src/go/parser/error_test.go

    	var prev token.Pos // position of last non-comment, non-semicolon token
    	var here token.Pos // position immediately after the token at position prev
    
    	for {
    		pos, tok, lit := s.Scan()
    		switch tok {
    		case token.EOF:
    			return errors
    		case token.COMMENT:
    			s := errRx.FindStringSubmatch(lit)
    			if len(s) == 3 {
    				if s[1] == "HERE" {
    					pos = here // start of comment
    				} else if s[1] == "AFTER" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 19:47:49 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  2. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/expressionInfoProvider/AbstractReturnTargetSymbolTest.kt

                        expression.returnedExpression?.accept(this)
                    }
    
                    override fun visitComment(comment: PsiComment) {
                        // Skip such comments so that test become idempotent
                        if (comment.text.matches(commentRegex)) return
                        super.visitComment(comment)
                    }
                })
            }
            if (actual != original) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Mar 27 16:04:54 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/go/doc/example_internal_test.go

    			name: "extra space",
    			in: `package p
    import (
    	"a"
    
    
    	"b"
    	"c"
    
    
    	"d"
    )
    `,
    			want: []string{"a", "b", "d"},
    		},
    		{
    			name: "line comment",
    			in: `package p
    import (
    	"a" // comment
    	"b" // comment
    
    	"c"
    )`,
    			want: []string{"a", "c"},
    		},
    		{
    			name: "named import",
    			in: `package p
    import (
    	"a"
    	n "b"
    
    	m "c"
    	"d"
    )`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 14:22:16 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  4. src/go/doc/comment/testdata/list10.txt

    -- input --
    
    	1. This list
    	2. Starts the comment
    	3. And also has a blank line before it.
    
    All of which is a little weird.
    -- gofmt --
     1. This list
     2. Starts the comment
     3. And also has a blank line before it.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 20:47:52 UTC 2022
    - 247 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/html/template/context.go

    	stateJSRegexp
    	// stateJSBlockCmt occurs inside a JavaScript /* block comment */.
    	stateJSBlockCmt
    	// stateJSLineCmt occurs inside a JavaScript // line comment.
    	stateJSLineCmt
    	// stateJSHTMLOpenCmt occurs inside a JavaScript <!-- HTML-like comment.
    	stateJSHTMLOpenCmt
    	// stateJSHTMLCloseCmt occurs inside a JavaScript --> HTML-like comment.
    	stateJSHTMLCloseCmt
    	// stateCSS occurs inside a <style> element or style attribute.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 16 03:29:27 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  7. src/cmd/gofmt/testdata/crlf.golden

    /*
    Source containing CR/LF line endings.
    The gofmt'ed output must only have LF
    line endings.
    Test case for issue 3961.
    */
    package main
    
    func main() {
    	// line comment
    	println("hello, world!") // another line comment
    	println()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 15 17:17:30 UTC 2022
    - 230 bytes
    - Viewed (0)
  8. src/cmd/gofmt/testdata/crlf.input

    L1:/*
    L2:Source containing CR/LF line endings.
    L3:The gofmt'ed output must only have LF
    L4:line endings.
    L5:Test case for issue 3961.
    L6:*/
    L7:package main
    L8:
    L9:func main() {
    L10:	// line comment
    L11:	println("hello, world!") // another line comment
    L12:	println()
    L13:}
    ...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 15 17:17:30 UTC 2022
    - 243 bytes
    - Viewed (0)
  9. src/internal/txtar/archive.go

    // symbolic links, and so on.
    //
    // # Txtar format
    //
    // A txtar archive is zero or more comment lines and then a sequence of file entries.
    // Each file entry begins with a file marker line of the form "-- FILENAME --"
    // and is followed by zero or more file content lines making up the file data.
    // The comment or file content ends at the next file marker line.
    // The file marker line must begin with the three-byte sequence "-- "
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  10. 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)
Back to top