Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for matchExpr (0.32 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. pkg/volume/util/util.go

    		var nodes sets.Set[string]
    		for _, matchExpr := range term.MatchExpressions {
    			if matchExpr.Key == v1.LabelHostname && matchExpr.Operator == v1.NodeSelectorOpIn {
    				if nodes == nil {
    					nodes = sets.New(matchExpr.Values...)
    				} else {
    					nodes = nodes.Intersection(sets.New(matchExpr.Values...))
    				}
    			}
    		}
    		result = result.Union(nodes)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  6. src/cmd/dist/build.go

    		if code == "package main" && pkg != "cmd/go" && pkg != "cmd/cgo" {
    			return false
    		}
    		if !strings.HasPrefix(p, "//") {
    			break
    		}
    		if strings.HasPrefix(p, "//go:build ") {
    			matched, err := matchexpr(p[len("//go:build "):])
    			if err != nil {
    				errprintf("%s: %v", file, err)
    			}
    			return matched
    		}
    	}
    
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  7. src/main/webapp/js/jquery-3.6.3.min.map

    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 135.2K bytes
    - Viewed (0)
  8. src/main/webapp/js/admin/jquery-3.6.3.min.map

    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 135.2K bytes
    - Viewed (0)
Back to top