Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for evalTo (0.12 sec)

  1. src/go/types/eval.go

    // same as in [CheckExpr]. An error is returned if expr cannot
    // be parsed successfully, or the resulting expr AST cannot be
    // type-checked.
    func Eval(fset *token.FileSet, pkg *Package, pos token.Pos, expr string) (_ TypeAndValue, err error) {
    	// parse expressions
    	node, err := parser.ParseExprFrom(fset, "eval", expr, 0)
    	if err != nil {
    		return TypeAndValue{}, err
    	}
    
    	info := &Info{
    		Types: make(map[ast.Expr]TypeAndValue),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/fixtures/SimplifiedKotlinScriptEvaluatorTest.kt

        @Test
        fun `can eval script against Project mock`() {
    
            val project = project()
            eval(
                script = """
                    version = "1.0"
                """,
                target = project
            )
            verify(project).version = "1.0"
        }
    
        @Test
        fun `can eval script against Settings mock`() {
    
            val settings = mock<Settings>()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. src/cmd/go/internal/script/conds.go

    func Condition(summary string, eval func(*State) (bool, error)) Cond {
    	return &funcCond{eval: eval, usage: CondUsage{Summary: summary}}
    }
    
    type funcCond struct {
    	eval  func(*State) (bool, error)
    	usage CondUsage
    }
    
    func (c *funcCond) Usage() *CondUsage { return &c.usage }
    
    func (c *funcCond) Eval(s *State, suffix string) (bool, error) {
    	if suffix != "" {
    		return false, ErrUsage
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 5K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/AbstractDslTest.kt

    class DslTestFixture(private val testDirectory: File) {
    
        val kotlinDslEvalBaseCacheDir: File by lazy {
            testDirectory.resolve("kotlin-dsl-eval-cache").apply {
                mkdirs()
            }
        }
    
        val kotlinDslEvalBaseTempDir: File by lazy {
            testDirectory.resolve("kotlin-dsl-eval-temp").apply {
                mkdirs()
            }
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. tools/packaging/packaging.mk

    ISTIO_FILES:=
    $(foreach DEP,$(ISTIO_DEB_DEPS),\
            $(eval ${TARGET_OUT_LINUX}/release/istio.deb: $(TARGET_OUT_LINUX)/$(DEP)) \
            $(eval ISTIO_FILES+=$(TARGET_OUT_LINUX)/$(DEP)=$(ISTIO_DEB_BIN)/$(DEP)) )
    
    SIDECAR_DEB_DEPS:=envoy pilot-agent
    SIDECAR_FILES:=
    $(foreach DEP,$(SIDECAR_DEB_DEPS),\
            $(eval ${TARGET_OUT_LINUX}/release/istio-sidecar.deb: $(TARGET_OUT_LINUX)/$(DEP)) \
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 06 19:54:32 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/PartialEvaluator.kt

                            CloseTargetScope,
                            ApplyBasePlugins,
                            Eval(program.source)
                        )
                    }
                }
    
                else -> {
                    Static(
                        defaultStageTransition(),
                        Eval(program.source)
                    )
                }
            }
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/authentication/cel/mapper.go

    	return m.eval(ctx, map[string]interface{}{claimsVarName: claims.Object})
    }
    
    // EvalUser evaluates the given user expressions and returns a list of EvaluationResult.
    func (m *mapper) EvalUser(ctx context.Context, userInfo *unstructured.Unstructured) ([]EvaluationResult, error) {
    	return m.eval(ctx, map[string]interface{}{userVarName: userInfo.Object})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 20:16:09 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. test/fixedbugs/issue9604b.go

    }
    
    type unop struct {
    	name string
    	eval func(x *big.Int) *big.Int
    }
    
    var unops = []unop{
    	unop{"+", func(x *big.Int) *big.Int { return new(big.Int).Set(x) }},
    	unop{"-", func(x *big.Int) *big.Int { return new(big.Int).Neg(x) }},
    	unop{"^", func(x *big.Int) *big.Int { return new(big.Int).Not(x) }},
    }
    
    type shiftop struct {
    	name string
    	eval func(x *big.Int, i uint) *big.Int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/authorization/cel/matcher.go

    	// These are optional fields which can be populated if metrics reporting is desired
    	Metrics        MatcherMetrics
    	AuthorizerType string
    	AuthorizerName string
    }
    
    // eval evaluates the given SubjectAccessReview against all cel matchCondition expression
    func (c *CELMatcher) Eval(ctx context.Context, r *authorizationv1.SubjectAccessReview) (bool, error) {
    	var evalErrors []error
    
    	metrics := c.Metrics
    	if metrics == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/go/types/eval_test.go

    	gotTv, err := Eval(fset, pkg, pos, expr)
    	if err != nil {
    		t.Errorf("Eval(%q) failed: %s", expr, err)
    		return
    	}
    	if gotTv.Type == nil {
    		t.Errorf("Eval(%q) got nil type but no error", expr)
    		return
    	}
    
    	// compare types
    	if typ != nil {
    		// we have a type, check identity
    		if !Identical(gotTv.Type, typ) {
    			t.Errorf("Eval(%q) got type %s, want %s", expr, gotTv.Type, typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 19:56:15 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top