Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 158 for getvar (0.14 sec)

  1. test/range.go

    	}
    }
    
    // test that range evaluates the index and value expressions
    // exactly once per iteration.
    
    var ncalls = 0
    
    func getvar(p *int) *int {
    	ncalls++
    	return p
    }
    
    func testcalls() {
    	var i, v int
    	si := 0
    	sv := 0
    	for *getvar(&i), *getvar(&v) = range [2]int{1, 2} {
    		si += i
    		sv += v
    	}
    	if ncalls != 4 {
    		println("wrong number of calls:", ncalls, "!= 4")
    		panic("fail")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 05:50:54 UTC 2017
    - 8.1K bytes
    - Viewed (0)
  2. pkg/env/var.go

    	RegisterVar(v)
    	return BoolVar{getVar(name)}
    }
    
    // RegisterIntVar registers a new integer environment variable.
    func RegisterIntVar(name string, defaultValue int, description string) IntVar {
    	v := Var{Name: name, DefaultValue: strconv.FormatInt(int64(defaultValue), 10), Description: description, Type: INT}
    	RegisterVar(v)
    	return IntVar{getVar(name)}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  3. test/range4.go

    var ncalls = 0
    
    func getvar(p *int) *int {
    	ncalls++
    	return p
    }
    
    func iter2(list ...int) func(func(int, int) bool) {
    	return func(yield func(int, int) bool) {
    		for i, x := range list {
    			if !yield(i, x) {
    				return
    			}
    		}
    	}
    }
    
    func testcalls() {
    	var i, v int
    	ncalls = 0
    	si := 0
    	sv := 0
    	for *getvar(&i), *getvar(&v) = range iter2(1, 2) {
    		si += i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 16:00:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/declarative-dsl-provider/src/testFixtures/groovy/org/gradle/internal/declarativedsl/settings/SoftwareTypeFixture.groovy

                extension.getId().convention("<no id>");
                extension.getFoo().getBar().convention("bar");
            """
        }
    
        static String getAnotherSoftwareTypeExtensionConventions(String variableName = "extension") {
            return """
                ${variableName}.getFoo().convention("foo");
                ${variableName}.getBar().getBaz().convention("baz");
            """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 16:02:26 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  5. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginHtmlReportIntegrationTest.groovy

                        return "bar";
                    }
                    public String getBar3() {
                        return "bar";
                    }
                }
            """
            file("src/main/java/com/example/Bar.java").java """
                package com.example;
    
                public class Bar {
                    public String getBar() {
                        return "bar";
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 16 22:34:07 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final MethodDesc methodDesc = beanDesc.getMethodDesc("getAaa");
            assertThat(methodDesc, is(notNullValue()));
            assertThat(methodDesc.getMethodName(), is("getAaa"));
            beanDesc.getMethodDesc("getaaa");
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetMethodNoException() throws Exception {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc

    static Operation* CallFn(Location loc, const std::function<Value(int)>& get_arg,
                             func::FuncOp fn, OpBuilder* builder) {
      FunctionType fn_type = fn.getFunctionType();
      llvm::SmallVector<Value, 4> operands;
      int num_operands = fn_type.getNumInputs();
      operands.reserve(num_operands);
      for (int i = 0; i < num_operands; ++i) {
        Value val = get_arg(i);
        Type expected = fn_type.getInput(i);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 13 11:42:59 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  8. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/capturing/multipleClassAndFunctionContextReceivers.ir.txt

                    receiver: GET_VAR 'p0: <root>.Test declared in <root>.CodeFragment.run' type=<root>.Test origin=null
                  $context_receiver_1: GET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField1 type:<root>.Ctx2 visibility:private [final] declared in <root>.Test' type=<root>.Ctx2 origin=null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Apr 26 06:04:06 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/capturing/nestedOuterClass.ir.txt

                    $this: CALL 'public final fun callFoo (foo: <root>.Foo): kotlin.Int declared in <root>.ContextKt' type=kotlin.Int origin=null
                      foo: GET_VAR 'p0: <root>.Foo declared in <root>.CodeFragment.run' type=<root>.Foo origin=null
                    other: CALL 'public final fun callString (string: kotlin.String): kotlin.Int declared in <root>.ContextKt' type=kotlin.Int origin=null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jan 30 11:41:26 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/capturing/extensionReceiver.ir.txt

                  $this: CALL 'public open fun <get-length> (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY
                    $this: GET_VAR 'p0: kotlin.String declared in <root>.CodeFragment.run' type=kotlin.String origin=null
                  other: CALL 'public open fun <get-length> (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Aug 30 06:38:44 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top