- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 1,557 for comment2 (1.92 sec)
-
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) -
src/cmd/go/internal/modindex/build.go
comment, _, ok = bytes.Cut(data[2:], starSlash) if !ok { // malformed comment return "", 0 } if bytes.Contains(comment, newline) { return "", 0 } } comment = bytes.TrimSpace(comment) // split comment into `import`, `"pkg"` word, arg := parseWord(comment) if string(word) != "import" { return "", 0 } line = 1 + bytes.Count(data[:cap(data)-cap(arg)], newline)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 17:39:23 UTC 2023 - 26.8K bytes - Viewed (0) -
src/go/printer/nodes.go
} if p.comments == nil { // initialize p.comments lazily p.comments = make([]*ast.CommentGroup, 1) } else if p.cindex < len(p.comments) { // for some reason there are pending comments; this // should never happen - handle gracefully and flush // all comments up to g, ignore anything after that p.flush(p.posFor(g.List[0].Pos()), token.ILLEGAL) p.comments = p.comments[0:1] // in debug mode, report error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 17 18:53:17 UTC 2023 - 52.6K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/scanner_test.go
{"//\n//\n\t// want this one\r\n", comment{2, 1, "// want this one\r"}}, {"\n\n//\n", comment{2, 0, "//"}}, {"//", comment{0, 0, "//"}}, /*-style comments */ {"123/* regular comment */", comment{0, 3, "/* regular comment */"}}, {"package p /* regular comment", comment{0, 0, ""}}, {"\n\n\n/*\n*//* want this one */", comment{4, 2, "/* want this one */"}}, {"\n\n/**/", comment{2, 0, "/**/"}},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 14 16:11:21 UTC 2022 - 21.9K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/encode.go
if pt := p.PeriodType; pt != nil { pt.typeX = addString(strings, pt.Type) pt.unitX = addString(strings, pt.Unit) } p.commentX = nil for _, c := range p.Comments { p.commentX = append(p.commentX, addString(strings, c)) } p.defaultSampleTypeX = addString(strings, p.DefaultSampleType) p.stringTable = make([]string, len(strings)) for s, i := range strings {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 17.1K bytes - Viewed (0) -
test/fixedbugs/bug486.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The gccgo lexer had a bug handling nested comments. // http://gcc.gnu.org/PR61746 // http://code.google.com/p/gofrontend/issues/detail?id=35 package main /*// comment
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 347 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/work.go
} if f.Go == nil { stmt := &Line{Token: []string{"go", version}} f.Go = &Go{ Version: version, Syntax: stmt, } // Find the first non-comment-only block and add // the go statement before it. That will keep file comments at the top. i := 0 for i = 0; i < len(f.Syntax.Stmt); i++ { if _, ok := f.Syntax.Stmt[i].(*CommentBlock); !ok { break } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 7.7K bytes - Viewed (0) -
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) -
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) -
src/go/printer/testdata/parser.go
endline = p.file.Line(p.pos) for p.tok == token.COMMENT && endline+1 >= p.file.Line(p.pos) { var comment *ast.Comment comment, endline = p.consumeComment() list = append(list, comment) } // add comment group to the comments list comments = &ast.CommentGroup{list} p.comments = append(p.comments, comments) return } // Advance to the next non-comment token. In the process, collect
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 20:19:51 UTC 2023 - 50.5K bytes - Viewed (0)