Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 322 for Assignment (0.36 sec)

  1. test/inline.go

    		return 0, 0, err
    	}
    	if x == y {
    		e(somethingWrong) // ERROR "inlining call to l.func1"
    	} else {
    		f := e
    		f(nil) // ERROR "inlining call to l.func1"
    	}
    	return y, x, nil
    }
    
    // any re-assignment prevents closure inlining
    func m() int {
    	foo := func() int { return 1 } // ERROR "can inline m.func1" "func literal does not escape"
    	x := foo()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/staticinit/sched.go

    	if !s.seenMutation {
    		s.seenMutation = mayModifyPkgVar(rhs)
    	}
    
    	if allBlank(lhs) && !AnySideEffects(rhs) {
    		return true // discard
    	}
    
    	// Only worry about simple "l = r" assignments. The OAS2*
    	// assignments mostly necessitate dynamic execution anyway.
    	if len(lhs) > 1 {
    		return false
    	}
    
    	lno := ir.SetPos(n)
    	defer func() { base.Pos = lno }()
    
    	nam := lhs[0].(*ir.Name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/releases/migrating/migrating_from_groovy_to_kotlin_dsl.adoc

    * The Gradle Groovy DSL allows to omit the `=` assignment operator when assigning properties whereas Kotlin always requires the assignment operator.
    
    As a first migration step, it is recommended to prepare your Groovy build scripts by
    
    * unifying quotes using double quotes,
    * disambiguating function invocations and property assignments (using respectively parentheses and assignment operator).
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 15:00:23 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  4. test/newinline.go

    		return 0, 0, err
    	}
    	if x == y {
    		e(somethingWrong) // ERROR "inlining call to l.func1"
    	} else {
    		f := e
    		f(nil) // ERROR "inlining call to l.func1"
    	}
    	return y, x, nil
    }
    
    // any re-assignment prevents closure inlining
    func m() int {
    	foo := func() int { return 1 } // ERROR "can inline m.func1" "func literal does not escape"
    	x := foo()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/cpumanager/state/state_checkpoint_test.go

    			}
    
    			state.SetDefaultCPUSet(tc.defaultCPUset)
    			state.SetCPUAssignments(tc.assignments)
    
    			state.ClearState()
    			if !cpuset.New().Equals(state.GetDefaultCPUSet()) {
    				t.Fatal("cleared state with non-empty default cpu set")
    			}
    			for pod := range tc.assignments {
    				for container := range tc.assignments[pod] {
    					if _, ok := state.GetCPUSet(pod, container); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    	seen := map[types.Object]struct{}{}
    	ast.Inspect(node, func(n ast.Node) bool {
    		if n == nil {
    			return false
    		}
    		// Prevent circular definitions. If 'pos' is within an assignment statement, do not
    		// allow any identifiers in that assignment statement to be selected. Otherwise,
    		// we could do the following, where 'x' satisfies the type of 'f0':
    		//
    		// x := fakeStruct{f0: x}
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. pkg/adsc/adsc_test.go

      },
      {
        "http-list-2": {
          "name": "mar"
        }
      }
    ]`,
    				"_rds": `[
      {
        "route-1": {
          "name": "mar"
        }
      }
    ]`,
    				"_eds": `[
      {
        "load-assignment-1": {
          "clusterName": "foo"
        }
      }
    ]`,
    				"_ecds": `[
      {
        "eds-cluster-1": {
          "name": "test"
        }
      }
    ]`,
    				"_cds": `[
      {
        "cluster-1": {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  8. src/runtime/map_test.go

    	}
    }
    
    // Maps aren't actually copied on assignment.
    func TestAlias(t *testing.T) {
    	m := make(map[int]int, 0)
    	m[0] = 5
    	n := m
    	n[0] = 6
    	if m[0] != 6 {
    		t.Error("alias didn't work")
    	}
    }
    
    func TestGrowWithNaN(t *testing.T) {
    	m := make(map[float64]int, 4)
    	nan := math.NaN()
    
    	// Use both assignment and assignment operations as they may
    	// behave differently.
    	m[nan] = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/resolver/FirIdeNormalAnalysisScriptSourceModuleResolveCallTestGenerated.java

        @TestDataPath("$PROJECT_ROOT")
        public class Assignment {
          @Test
          public void testAllFilesPresentInAssignment() {
            KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/resolver/singleByPsi/operators/assignment"), Pattern.compile("^(.+)\\.kts$"), null, true);
          }
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 19:03:00 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/resolver/FirIdeNormalAnalysisScriptSourceModuleResolveReferenceTestGenerated.java

        @TestDataPath("$PROJECT_ROOT")
        public class Assignment {
          @Test
          public void testAllFilesPresentInAssignment() {
            KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/resolver/singleByPsi/operators/assignment"), Pattern.compile("^(.+)\\.kts$"), null, true);
          }
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 19:03:01 UTC 2024
    - 33.6K bytes
    - Viewed (0)
Back to top