Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for setVar (0.2 sec)

  1. src/text/template/exec.go

    				if len(r.Pipe.Decl) > 1 {
    					s.setVar(r.Pipe.Decl[0].Ident[0], index)
    				} else {
    					s.setVar(r.Pipe.Decl[0].Ident[0], elem)
    				}
    			} else {
    				// Set top var (lexically the second if there
    				// are two) to the element.
    				s.setTopVar(1, elem)
    			}
    		}
    		if len(r.Pipe.Decl) > 1 {
    			if r.Pipe.IsAssign {
    				s.setVar(r.Pipe.Decl[1].Ident[0], elem)
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  2. platforms/core-configuration/declarative-dsl-provider/src/integTest/groovy/org/gradle/internal/declarativedsl/settings/SoftwareTypeConventionIntegrationTest.groovy

            testCase                                    | convention
            "id has convention set twice"               | setId("convention") + setId("again")
            "bar has convention set twice"              | setFoo(setBar("convention") + setBar("again"))
            // TODO - doesn't work
            //"bar has convention set in multiple blocks" | setFooBar("convention") + setFooBar("again")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 12:50:35 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/declarative-dsl-provider/src/testFixtures/groovy/org/gradle/internal/declarativedsl/settings/SoftwareTypeFixture.groovy

                        public Foo() { }
    
                        @Restricted
                        public abstract Property<String> getBar();
                    }
    
                    @Override
                    public String toString() {
                        return "id = " + getId().get() + "\\nbar = " + getFoo().getBar().get() + (isFooConfigured ? "\\n(foo is configured)" : "");
                    }
                }
            """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 16:02:26 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/PPC64latelower.rules

    (ISEL [a] (MOVDconst [0]) y z) => (ISELZ [a^0x4] y z)
    
    // SETBC, SETBCR is supported on ISA 3.1(Power10) and newer, use ISELZ for
    // older targets
    (SETBC [2] cmp) && buildcfg.GOPPC64 <= 9 => (ISELZ [2] (MOVDconst [1]) cmp)
    (SETBCR [2] cmp) && buildcfg.GOPPC64 <= 9 => (ISELZ [6] (MOVDconst [1]) cmp)
    (SETBC [0] cmp) && buildcfg.GOPPC64 <= 9 => (ISELZ [0] (MOVDconst [1]) cmp)
    (SETBCR [0] cmp) && buildcfg.GOPPC64 <= 9 => (ISELZ [4] (MOVDconst [1]) cmp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProviderConventionMappingIntegrationTest.groovy

            buildFile << """
                abstract class MyTask extends DefaultTask {
                    @Internal abstract Property<String> getFoo()
                    @Internal abstract Property<String> getBar()
    
                    @TaskAction
                    void useIt() {
                        assert foo.get() == "foobar"
                    }
                }
                tasks.register("mytask", MyTask) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 12:27:37 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (SETBCR [1] (Flag(LT|EQ))) => (MOVDconst [1])
    (SETBCR [2] (FlagEQ)) => (MOVDconst [0])
    (SETBCR [2] (Flag(LT|GT))) => (MOVDconst [1])
    
    (SETBC [0] (InvertFlags bool)) => (SETBC [1] bool)
    (SETBC [1] (InvertFlags bool)) => (SETBC [0] bool)
    (SETBC [2] (InvertFlags bool)) => (SETBC [2] bool)
    
    (SETBCR [0] (InvertFlags bool)) => (SETBCR [1] bool)
    (SETBCR [1] (InvertFlags bool)) => (SETBCR [0] bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  7. platforms/core-configuration/declarative-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/declarative/dsl/tooling/builders/r89/DeclarativeDslToolingModelsCrossVersionTest.groovy

                    }
    
                    public abstract static class Foo {
                        public Foo() {
                            this.getBar().convention("nothing");
                        }
    
                        @Restricted
                        public abstract Property<String> getBar();
                    }
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 11:32:11 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/copyelim.go

    	// sure that we don't end up doing O(n^2) work
    	// for a chain of n copies.
    	for v != w {
    		x := v.Args[0]
    		v.SetArg(0, w)
    		v = x
    	}
    	return w
    }
    
    // copyelimValue ensures that no args of v are copies.
    func copyelimValue(v *Value) {
    	for i, a := range v.Args {
    		if a.Op == OpCopy {
    			v.SetArg(i, copySource(a))
    		}
    	}
    }
    
    // phielim eliminates redundant phi values from f.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. pkg/probe/exec/exec_test.go

    	return nil
    }
    
    func (f *FakeCmd) CombinedOutput() ([]byte, error) {
    	return f.out, f.err
    }
    
    func (f *FakeCmd) Output() ([]byte, error) {
    	return f.stdout, f.err
    }
    
    func (f *FakeCmd) SetDir(dir string) {}
    
    func (f *FakeCmd) SetStdin(in io.Reader) {}
    
    func (f *FakeCmd) SetStdout(out io.Writer) {
    	f.writer = out
    }
    
    func (f *FakeCmd) SetStderr(out io.Writer) {
    	f.writer = out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewritePPC64latelower.go

    		v.AddArg2(v0, cmp)
    		return true
    	}
    	return false
    }
    func rewriteValuePPC64latelower_OpPPC64SETBCR(v *Value) bool {
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (SETBCR [2] cmp)
    	// cond: buildcfg.GOPPC64 <= 9
    	// result: (ISELZ [6] (MOVDconst [1]) cmp)
    	for {
    		if auxIntToInt32(v.AuxInt) != 2 {
    			break
    		}
    		cmp := v_0
    		if !(buildcfg.GOPPC64 <= 9) {
    			break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 16.5K bytes
    - Viewed (0)
Back to top