- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 1,557 for comment2 (0.13 sec)
-
src/go/types/check_test.go
// starts with "//" (line comment) followed by "-" (possibly with spaces // between). Otherwise the line is ignored. func parseFlags(src []byte, flags *flag.FlagSet) error { // we must have a line comment that starts with a "-" const prefix = "//" if !bytes.HasPrefix(src, []byte(prefix)) { return nil // first line is not a line comment } src = src[len(prefix):]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 14.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/ast/astutil/rewrite.go
case nil: // nothing to do // Comments and fields case *ast.Comment: // nothing to do case *ast.CommentGroup: if n != nil { a.applyList(n, "List") } case *ast.Field: a.apply(n, "Doc", nil, n.Doc) a.applyList(n, "Names") a.apply(n, "Type", nil, n.Type) a.apply(n, "Tag", nil, n.Tag) a.apply(n, "Comment", nil, n.Comment) case *ast.FieldList:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 12.2K bytes - Viewed (0) -
platforms/core-configuration/input-tracking/src/main/java/org/gradle/internal/configuration/inputs/AccessTrackingProperties.java
@SuppressWarnings("deprecation") public void save(OutputStream out, String comments) { reportAggregatingAccess(); delegate.save(out, comments); } @Override public void store(Writer writer, String comments) throws IOException { reportAggregatingAccess(); delegate.store(writer, comments); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 07:32:51 UTC 2024 - 20.7K bytes - Viewed (0) -
src/go/scanner/scanner_test.go
{"foo /* */ /* \n */ bar/**/\n", "IDENT COMMENT COMMENT ; IDENT COMMENT ;"}, {"foo /*0*/ /*1*/ /*2*/\n", "IDENT COMMENT COMMENT COMMENT ;"}, {"foo /*comment*/ \n", "IDENT COMMENT ;"}, {"foo /*0*/ /*1*/ /*2*/ \n", "IDENT COMMENT COMMENT COMMENT ;"}, {"foo /**/ /*-------------*/ /*----\n*/bar /* \n*/baa\n", "IDENT COMMENT COMMENT COMMENT ; IDENT COMMENT ; IDENT ;"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 15:38:31 UTC 2023 - 34.6K bytes - Viewed (0) -
src/cmd/go/internal/modindex/build_read.go
} } } // If the file imports "embed", // we have to look for //go:embed comments // in the remainder of the file. // The compiler will enforce the mapping of comments to // declared variables. We just need to know the patterns. // If there were //go:embed comments earlier in the file // (near the package statement or imports), the compiler
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 10:10:21 UTC 2023 - 13K bytes - Viewed (0) -
test/codegen/README
line, as: // amd64:"SQRTSD" arm64:"FSQRTD" although this form should be avoided when doing so would make the regexps line excessively long and difficult to read. Comments that are on their own line will be matched against the first subsequent non-comment line. Inline comments are also supported; the regexp will be matched against the code found on the same line: func Sqrt(x float64) float64 { return math.Sqrt(x) // arm:"SQRTD" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 19:55:29 UTC 2023 - 5.2K bytes - Viewed (0) -
src/cmd/doc/pkg.go
Comments: pkg.file.Comments, } } err := format.Node(&pkg.buf, pkg.fs, arg) if err != nil { log.Fatal(err) } if comment != "" && !showSrc { pkg.newlines(1) pkg.ToText(&pkg.buf, comment, indent, indent+indent) pkg.newlines(2) // Blank line after comment to separate from next item. } else { pkg.newlines(1) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 08 20:15:52 UTC 2024 - 32K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdversion/stdversion.go
// TODO(adonovan): use ast.IsGenerated in go1.21. func isGenerated(f *ast.File) bool { for _, group := range f.Comments { for _, comment := range group.List { if matched := generatedRx.MatchString(comment.Text); matched { return true } } } return false } // Matches cgo generated comment as well as the proposed standard: // // https://golang.org/s/generatedcode
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 4.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go
}) } // Change message based on whether there are multiple output comment blocks. msg := "output comment block must be the last comment block" if numOutputs > 1 { msg = "there can only be one output comment block per example" } for i, cg := range commentsInExample { // Check for output comments that are not the last comment in the example. isLast := (i == len(commentsInExample)-1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 14.4K bytes - Viewed (0) -
src/go/build/read.go
for _, group := range info.parsed.Comments { if group.Pos() >= info.parsed.Package { break } for _, c := range group.List { if strings.HasPrefix(c.Text, "//go:") { info.directives = append(info.directives, Directive{c.Text, info.fset.Position(c.Slash)}) } } } // If the file imports "embed", // we have to look for //go:embed comments // in the remainder of the file.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 14.1K bytes - Viewed (0)