Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 426 for COMMENT (0.09 sec)

  1. src/go/scanner/scanner.go

    	if s.ch == '/' {
    		//-style comment
    		// (the final '\n' is not considered part of the comment)
    		s.next()
    		for s.ch != '\n' && s.ch >= 0 {
    			if s.ch == '\r' {
    				numCR++
    			}
    			s.next()
    		}
    		// if we are at '\n', the position following the comment is afterwards
    		next = s.offset
    		if s.ch == '\n' {
    			next++
    		}
    		goto exit
    	}
    
    	/*-style comment */
    	s.next()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  2. .github/actions/people/app/main.py

            discussion_commentors: dict[str, datetime] = {}
            for comment in discussion.comments.nodes:
                if comment.author:
                    authors[comment.author.login] = comment.author
                    if comment.author.login != discussion_author_name:
                        author_time = discussion_commentors.get(
                            comment.author.login, comment.createdAt
                        )
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Mar 26 17:38:21 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  3. 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 */"})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  4. src/encoding/csv/reader_test.go

    	Input:            "§a£§b,c£ \t§d,e\n€ comment\n",
    	Output:           [][]string{{"a", "b,c", "d,e"}},
    	TrimLeadingSpace: true,
    	Comma:            '£',
    	Comment:          '€',
    }, {
    	Name:    "NonASCIICommaAndCommentWithQuotes",
    	Input:   "§a€§\"  b,\"€§ c\nλ comment\n",
    	Output:  [][]string{{"a", "  b,", " c"}},
    	Comma:   '€',
    	Comment: 'λ',
    }, {
    	// λ and θ start with the same byte.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 14 04:25:13 UTC 2022
    - 19.1K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/sourceparser/RegexBackedCSourceParserTest.groovy

        }
    
        def "ignores comment after directive"() {
            when:
            sourceFile << """
    #include "test1"  // A comment here
    #include "test2" /* A comment here */
    #include "test3" /*
       A comment here
    */
    #include <system1>  // A comment here
    #include <system2> /* A comment here */
    #include <system3> /*
       A comment here
    */
    #include MACRO1  // A comment here
    #include MACRO2 /*
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 34.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go

    			}
    			// Add comments for all sample types in profile.
    			comment = "[" + strings.Join(st, " | ") + "]"
    		case n == "source_path":
    			continue
    		case n == "nodecount" && v == "-1":
    			comment = "default"
    		case v == "":
    			// Add quotes for empty values.
    			v = `""`
    		}
    		if comment != "" {
    			comment = commentStart + " " + comment
    		}
    		args = append(args, fmt.Sprintf("  %-25s = %-20s %s", n, v, comment))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 10.6K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top