Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,559 for comment1 (0.16 sec)

  1. 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)
  2. src/go/printer/testdata/comments2.input

       }
    }
    
    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: Thu Jan 26 00:06:54 UTC 2017
    - 2.3K bytes
    - Viewed (0)
  3. 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)
  4. operator/pkg/object/testdata/well-formed-with-comments.yaml

    # some random comments
     # some random comments
    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: myconfigmap
      namespace: default # some random comments should be deleted
    data:
      mydata: |-
        First line of data # some random comments should not be deleted
        Second line of data
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jul 25 19:39:36 UTC 2023
    - 304 bytes
    - Viewed (0)
  5. .github/actions/notify-translations/app/main.py

            )
            for comment in comments:
                if new_translation_message in comment.body:
                    already_notified_comment = comment
                elif done_translation_message in comment.body:
                    already_done_comment = comment
            logging.info(
                f"Already notified comment: {already_notified_comment}, already done comment: {already_done_comment}"
            )
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Sep 27 23:01:46 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  6. 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 */"})
    	testComment(t, f, len(src), &ast.Comment{Slash: pos, Text: "/*-style \n 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)
  7. src/go/printer/printer.go

    		for i < len(comments) && comments[i].End() < beg {
    			i++
    		}
    		j := i
    		for j < len(comments) && comments[j].Pos() < end {
    			j++
    		}
    		if i < j {
    			p.comments = comments[i:j]
    		}
    	} else if n, ok := node.(*ast.File); ok {
    		// use ast.File comments, if any
    		p.comments = n.Comments
    	}
    
    	// if there are no comments, use node comments
    	p.useNodeComments = p.comments == nil
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 41.6K bytes
    - Viewed (0)
  8. operator/pkg/object/testdata/well-formed-with-comments.out.yaml

    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: myconfigmap
      namespace: default
    data:
      mydata: |-
        First line of data # some random comments should not be deleted
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jul 25 19:39:36 UTC 2023
    - 193 bytes
    - Viewed (0)
  9. src/go/ast/commentmap.go

    //
    // NewCommentMap tries to associate a comment group to the "largest"
    // node possible: For instance, if the comment is a line comment
    // trailing an assignment, the comment is associated with the entire
    // assignment rather than just the last operand in the assignment.
    func NewCommentMap(fset *token.FileSet, node Node, comments []*CommentGroup) CommentMap {
    	if len(comments) == 0 {
    		return nil // no comments to map
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/testing.go

    // []Error lists in a map indexed by line number. The comment text is
    // the comment with any comment markers ("//", "/*", or "*/") stripped.
    // The position for each Error is the position of the token immediately
    // preceding the comment and the Error message is the comment text,
    // with all comments that are on the same line collected in a slice, in
    // source order. If there is no preceding token (the matching comment
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:53:18 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top