Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 322 for Assignment (0.6 sec)

  1. src/go/types/assignments.go

    // if necessary by attempting to convert untyped values to the appropriate
    // type. context describes the context in which the assignment takes place.
    // Use T == nil to indicate assignment to an untyped blank identifier.
    // If the assignment check fails, x.mode is set to invalid.
    func (check *Checker) assignment(x *operand, T Type, context string) {
    	check.singleValue(x)
    
    	switch x.mode {
    	case invalid:
    		return // error reported before
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/assignments.go

    // This file implements initialization and assignment checks.
    
    package types2
    
    import (
    	"cmd/compile/internal/syntax"
    	"fmt"
    	. "internal/types/errors"
    	"strings"
    )
    
    // assignment reports whether x can be assigned to a variable of type T,
    // if necessary by attempting to convert untyped values to the appropriate
    // type. context describes the context in which the assignment takes place.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc

            // Existing assignment does not equal the new assignment.
            return failure();
          }
        }
        return success();
      }
    
     private:
      llvm::SmallDenseMap<int64_t, StringRef, 8> resource_id_to_device_;
      const TF::ResourceAliasAnalysis::Info& alias_analysis_;
    };
    
    // Tries to record device assignment for a resource.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/stmt0.go

    func assignments1() {
    	b, i, f, c, s := false, 1, 1.0, 1i, "foo"
    	b = i /* ERRORx `cannot use .* in assignment` */
    	i = f /* ERRORx `cannot use .* in assignment` */
    	f = c /* ERRORx `cannot use .* in assignment` */
    	c = s /* ERRORx `cannot use .* in assignment` */
    	s = b /* ERRORx `cannot use .* in assignment` */
    
    	v0, v1, v2 := 1 /* ERROR "assignment mismatch" */ , 2, 3, 4
    	_, _, _ = v0, v1, v2
    
    	b = true
    
    	i += 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/parsing/BasicParsingTest.kt

            val expected = """
                    Assignment [indexes: 0..5, line/column: 1/1..1/6, file: test] (
                        lhs = PropertyAccess [indexes: 0..1, line/column: 1/1..1/2, file: test] (
                            name = a
                        )
                        rhs = IntLiteral [indexes: 4..5, line/column: 1/5..1/6, file: test] (1)
                    )
                    Assignment [indexes: 6..16, line/column: 2/1..2/11, file: test] (
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 22:06:18 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/expressionTypeProvider/FirIdeDependentAnalysisSourceModuleHLExpressionTypeTestGenerated.java

      @TestDataPath("$PROJECT_ROOT")
      public class Assignment {
        @Test
        public void testAllFilesPresentInAssignment() {
          KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/expressionTypeProvider/expressionType/assignment"), Pattern.compile("^(.+)\\.kt$"), null, true);
        }
    
        @Test
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 10:25:23 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  7. analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/components/expressionTypeProvider/Fe10IdeNormalAnalysisSourceModuleHLExpressionTypeTestGenerated.java

      @TestDataPath("$PROJECT_ROOT")
      public class Assignment {
        @Test
        public void testAllFilesPresentInAssignment() {
          KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/expressionTypeProvider/expressionType/assignment"), Pattern.compile("^(.+)\\.kt$"), null, true);
        }
    
        @Test
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 10:25:23 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/expressionTypeProvider/FirIdeNormalAnalysisSourceModuleHLExpressionTypeTestGenerated.java

      @TestDataPath("$PROJECT_ROOT")
      public class Assignment {
        @Test
        public void testAllFilesPresentInAssignment() {
          KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/expressionTypeProvider/expressionType/assignment"), Pattern.compile("^(.+)\\.kt$"), null, true);
        }
    
        @Test
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 10:25:23 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  9. analysis/analysis-api-standalone/tests-gen/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/generated/cases/components/expressionTypeProvider/FirStandaloneNormalAnalysisSourceModuleHLExpressionTypeTestGenerated.java

      @TestDataPath("$PROJECT_ROOT")
      public class Assignment {
        @Test
        public void testAllFilesPresentInAssignment() {
          KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/expressionTypeProvider/expressionType/assignment"), Pattern.compile("^(.+)\\.kt$"), null, true);
        }
    
        @Test
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 10:25:23 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/stmt.go

    	// Iteration variables declared with := need to go in this scope (was go.dev/issue/51437).
    	check.openScope(s, "range")
    	defer check.closeScope()
    
    	// check assignment to/declaration of iteration variables
    	// (irregular assignment, cannot easily map to existing assignment checks)
    
    	// lhs expressions and initialization value (rhs) types
    	lhs := [2]Expr{sKey, sValue} // sKey, sValue may be nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top