- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for mapliteral (0.17 sec)
-
platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/BuildScriptBuilder.java
public MapLiteralValue(Map<String, ExpressionValue> literal) { this.literal = literal; } @Override public String with(Syntax syntax) { return syntax.mapLiteral(literal); } } /** * This class is part of an attempt to provide the minimal functionality needed to script calling methods * which have a no-arg closure as their only parameter.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Dec 21 12:02:29 UTC 2023 - 90K bytes - Viewed (0) -
src/runtime/map_test.go
// on the stack. Escaping maps start with a non-nil bucket pointer if // hint size is above bucketCnt and thereby have more than one bucket. // These tests depend on bucketCnt and loadFactor* in map.go. t.Run("mapliteral", func(t *testing.T) { for _, tt := range mapBucketTests { localMap := map[int]int{} if runtime.MapBucketsPointerIsNil(localMap) { t.Errorf("no escape: buckets pointer is nil for non-escaping map") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 33.5K bytes - Viewed (0) -
src/regexp/syntax/regexp.go
// Operators are listed in precedence order, tightest binding to weakest. // Character class operators are listed simplest to most complex // (OpLiteral, OpCharClass, OpAnyCharNotNL, OpAnyChar). const ( OpNoMatch Op = 1 + iota // matches no strings OpEmptyMatch // matches empty string OpLiteral // matches Runes sequence OpCharClass // matches Runes interpreted as range pair list
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/regexp/syntax/op_string.go
// An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[OpNoMatch-1] _ = x[OpEmptyMatch-2] _ = x[OpLiteral-3] _ = x[OpCharClass-4] _ = x[OpAnyCharNotNL-5] _ = x[OpAnyChar-6] _ = x[OpBeginLine-7] _ = x[OpEndLine-8] _ = x[OpBeginText-9] _ = x[OpEndText-10] _ = x[OpWordBoundary-11] _ = x[OpNoWordBoundary-12]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:24:07 UTC 2023 - 1.2K bytes - Viewed (0) -
platforms/core-runtime/files/src/test/groovy/org/gradle/api/internal/file/pattern/RegExpPatternStepTest.java
assertTrue(step.matches("literal")); assertFalse(step.matches("Literal")); assertFalse(step.matches("literally")); assertFalse(step.matches("aliteral")); } @Test public void testSingleCharWildcard() { RegExpPatternStep step = new RegExpPatternStep("a?c", true); assertTrue(step.matches("abc")); assertTrue(step.matches("a$c"));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 3.3K bytes - Viewed (0) -
src/regexp/syntax/parse.go
func (p *parser) maybeConcat(r rune, flags Flags) bool { n := len(p.stack) if n < 2 { return false } re1 := p.stack[n-1] re2 := p.stack[n-2] if re1.Op != OpLiteral || re2.Op != OpLiteral || re1.Flags&FoldCase != re2.Flags&FoldCase { return false } // Push re1 into re2. re2.Rune = append(re2.Rune, re1.Rune...) // Reuse re1 if possible. if r >= 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 13:59:01 UTC 2024 - 52.1K bytes - Viewed (0) -
src/regexp/syntax/parse_test.go
func dump(re *Regexp) string { var b strings.Builder dumpRegexp(&b, re) return b.String() } var opNames = []string{ OpNoMatch: "no", OpEmptyMatch: "emp", OpLiteral: "lit", OpCharClass: "cc", OpAnyCharNotNL: "dnl", OpAnyChar: "dot", OpBeginLine: "bol", OpEndLine: "eol", OpBeginText: "bot", OpEndText: "eot",
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/regexp/syntax/compile.go
var anyRune = []rune{0, unicode.MaxRune} func (c *compiler) compile(re *Regexp) frag { switch re.Op { case OpNoMatch: return c.fail() case OpEmptyMatch: return c.nop() case OpLiteral: if len(re.Rune) == 0 { return c.nop() } var f frag for j := range re.Rune { f1 := c.rune(re.Rune[j:j+1], re.Flags) if j == 0 { f = f1 } else { f = c.cat(f, f1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 13 14:52:20 UTC 2021 - 6.8K bytes - Viewed (0) -
src/internal/types/testdata/check/expr3.go
type T2 T1 _ = []T2{} _ = []T2{{0}, {1}, {2}} _ = map[T0]T2{} _ = map[T0]T2{{}: {}} } const index2 int = 2 type N int func (N) f() {} func map_literals() { type M0 map[string]int type M1 map[bool]int type M2 map[*int]int _ = M0{} _ = M0{1 /* ERROR "missing key" */ } _ = M0{1 /* ERRORx `cannot use .* in map literal` */ : 2}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 16 22:41:49 UTC 2023 - 15.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/cost.go
sz := l.sizeEstimate(*target) // Worst case size is where is that a separator of "" is used, and each char is returned as a list element. max := sz.Max if len(args) > 1 { if v := args[1].Expr().AsLiteral(); v != nil { if i, ok := v.Value().(int64); ok { max = uint64(i) } } } // Cost is the traversal plus the construction of the result.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 20.6K bytes - Viewed (0)