- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for matchExpr (3.53 sec)
-
src/cmd/dist/buildtag_test.go
{"(gc))", false, fmt.Errorf("parsing //go:build line: unexpected )")}, } func TestBuildParser(t *testing.T) { for _, tt := range buildParserTests { matched, err := matchexpr(tt.x) if matched != tt.matched || !reflect.DeepEqual(err, tt.err) { t.Errorf("matchexpr(%q) = %v, %v; want %v, %v", tt.x, matched, err, tt.matched, tt.err) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 25 00:02:52 UTC 2021 - 1.2K bytes - Viewed (0) -
src/cmd/dist/buildtag.go
{tok: "!", prec: 3, prefix: (*exprParser).not}, {tok: "(", prec: 3, prefix: (*exprParser).paren}, {tok: ")"}, } } // matchexpr parses and evaluates the //go:build expression x. func matchexpr(x string) (matched bool, err error) { defer func() { if e := recover(); e != nil { matched = false err = fmt.Errorf("parsing //go:build line: %v", e) } }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 03:35:04 UTC 2021 - 3K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/MatchesSignatureGeneratingSignatureTreeVisitor.java
? CodeBlock.of("receiverClass") : CodeBlock.of("arg$L", paramIndex); int childArgCount = paramIndex + 1; TypeName entryChildType = TypeUtils.typeName(entry.type); CodeBlock matchExpr = entry.kind == RECEIVER_AS_CLASS ? CodeBlock.of("isStatic && $T.class.isAssignableFrom($L)", entryChildType.box(), argExpr) : entry.kind == RECEIVER ?
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Oct 02 15:44:14 UTC 2023 - 7.3K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/CodeGeneratingSignatureTreeVisitor.java
CodeBlock matchExpr = entry.kind == RECEIVER_AS_CLASS ? CodeBlock.of("$L.equals($T.class)", argExpr, entryChildType) : // Vararg fits here, too: CodeBlock.of("$1L == null || $1L instanceof $2T", argExpr, entryChildType.box()); result.beginControlFlow("if ($L)", matchExpr); boolean shouldPopParameter = false;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:40 UTC 2024 - 8.9K bytes - Viewed (0)