- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,557 for comment2 (0.12 sec)
-
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/cmd/gofmt/testdata/comments.input
package main func main() {} // comment here func f() {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 14 19:54:45 UTC 2011 - 76 bytes - Viewed (0) -
src/cmd/gofmt/testdata/comments.golden
package main func main() {} // comment here func f() {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 14 19:54:45 UTC 2011 - 76 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) -
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) -
.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) -
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) -
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) -
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) -
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)