- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 2,457 for parens (0.28 sec)
-
src/runtime/error.go
func panicwrap() { pc := getcallerpc() name := funcNameForPrint(funcname(findfunc(pc))) // name is something like "main.(*T).F". // We want to extract pkg ("main"), typ ("T"), and meth ("F"). // Do it by finding the parens. i := bytealg.IndexByteString(name, '(') if i < 0 { throw("panicwrap: no ( in " + name) } pkg := name[:i-1] if i+2 >= len(name) || name[i-1:i+2] != ".(*" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 9.9K bytes - Viewed (0) -
src/regexp/syntax/regexp.go
case OpCapture: if x.Cap != y.Cap || x.Name != y.Name || !x.Sub[0].Equal(y.Sub[0]) { return false } } return true } // printFlags is a bit set indicating which flags (including non-capturing parens) to print around a regexp. type printFlags uint8 const ( flagI printFlags = 1 << iota // (?i: flagM // (?m: flagS // (?s:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 16:41:51 UTC 2024 - 11.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/rulegen.go
if colon < 0 { return "", arg } openparen := strings.Index(arg, "(") if openparen < 0 { log.Fatalf("splitNameExpr(%q): colon but no open parens", arg) } if colon > openparen { // colon is inside the parens, such as in "(Foo x:(Bar))". return "", arg } return arg[:colon], arg[colon+1:] } func getBlockInfo(op string, arch arch) (name string, data blockData) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 02 22:09:21 UTC 2023 - 48.7K bytes - Viewed (0) -
src/cmd/asm/internal/lex/input.go
} in.macros[name] = &Macro{ name: name, args: args, tokens: tokens, } } // macroDefinition returns the list of formals and the tokens of the definition. // The argument list is nil for no parens on the definition; otherwise a list of // formal argument names. func (in *Input) macroDefinition(name string) ([]string, []Token) { prevCol := in.Stack.Col() tok := in.Stack.Next()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 07:48:38 UTC 2023 - 12.6K bytes - Viewed (0) -
src/runtime/string.go
// //go:linkname slicebytetostring func slicebytetostring(buf *tmpBuf, ptr *byte, n int) string { if n == 0 { // Turns out to be a relatively common case. // Consider that you want to parse out data between parens in "foo()bar", // you find the indices and convert the subslice to string. return "" } if raceenabled { racereadrangepc(unsafe.Pointer(ptr), uintptr(n), getcallerpc(),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 13.4K bytes - Viewed (0) -
src/regexp/syntax/parse_test.go
continue } s := re.String() if s != tt.Regexp { // If ToString didn't return the original regexp, // it must have found one with fewer parens. // Unfortunately we can't check the length here, because // ToString produces "\\{" for a literal brace, // but "{" is a shorter equivalent in some contexts. nre, err := Parse(s, testFlags)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 16:02:30 UTC 2023 - 16.2K bytes - Viewed (0) -
src/fmt/scan.go
} return string(s.buf) } // complexTokens returns the real and imaginary parts of the complex number starting here. // The number might be parenthesized and has the format (N+Ni) where N is a floating-point // number and there are no spaces within. func (s *ss) complexTokens() (real, imag string) { // TODO: accept N and Ni independently? parens := s.accept("(") real = s.floatToken() s.buf = s.buf[:0]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:56:20 UTC 2024 - 31.9K bytes - Viewed (0) -
src/cmd/fix/fix.go
// delete the decl, too. if len(gen.Specs) == 0 { copy(f.Decls[i:], f.Decls[i+1:]) f.Decls = f.Decls[:len(f.Decls)-1] } else if len(gen.Specs) == 1 { gen.Lparen = token.NoPos // drop parens } if j > 0 { // We deleted an entry but now there will be // a blank line-sized hole where the import was. // Close the hole by making the previous
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 14.6K bytes - Viewed (0) -
platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/SourceParseAndResolutionTest.groovy
#include HEADER(FUNC_NAME, (), 3) """ expect: resolve() == [header] } def "can produce a macro function call by concatenating name and wrapping args in parens"() { given: sourceFile << """ #define FUNC(X, Y) X #define HEADER_(X, Y) X ## Y #define HEADER(X, Y, Z) HEADER_(X, (Y, Z)) #define PREFIX FUNC
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 21.5K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/link.go
case '?', '!', '.', ',', ':', '@', '_', '~': // Trim certain trailing punctuation. i-- continue Trim case ')': // Trim trailing unmatched (by count only) parens. if paren < 0 { for s[i-1] == ')' && paren < 0 { paren++ i-- } continue Trim } case ';': // Trim entity reference. // After doing the work of the scan, we either cut that part off the string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 20.7K bytes - Viewed (0)