Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for value_or (0.17 sec)

  1. src/reflect/iter.go

    			v = v.Elem()
    			for i := range v.Len() {
    				if !yield(ValueOf(i)) {
    					return
    				}
    			}
    		}
    	case Array, Slice:
    		return func(yield func(Value) bool) {
    			for i := range v.Len() {
    				if !yield(ValueOf(i)) {
    					return
    				}
    			}
    		}
    	case String:
    		return func(yield func(Value) bool) {
    			for i := range v.String() {
    				if !yield(ValueOf(i)) {
    					return
    				}
    			}
    		}
    	case Map:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:40:11 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. src/go/ast/example_test.go

    	//     33  .  .  .  .  .  .  .  Lparen: 4:9
    	//     34  .  .  .  .  .  .  .  Args: []ast.Expr (len = 1) {
    	//     35  .  .  .  .  .  .  .  .  0: *ast.BasicLit {
    	//     36  .  .  .  .  .  .  .  .  .  ValuePos: 4:10
    	//     37  .  .  .  .  .  .  .  .  .  Kind: STRING
    	//     38  .  .  .  .  .  .  .  .  .  Value: "\"Hello, World!\""
    	//     39  .  .  .  .  .  .  .  .  }
    	//     40  .  .  .  .  .  .  .  }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. src/go/ast/import.go

    		}
    	}
    	specs = deduped
    
    	// Fix up comment positions
    	for i, s := range specs {
    		s := s.(*ImportSpec)
    		if s.Name != nil {
    			s.Name.NamePos = pos[i].Start
    		}
    		s.Path.ValuePos = pos[i].Start
    		s.EndPos = pos[i].End
    		for _, g := range importComments[s] {
    			for _, c := range g.cg.List {
    				if g.left {
    					c.Slash = pos[i].Start - 1
    				} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. src/reflect/type_test.go

    		{new(mystring), reflect.TypeFor[mystring]()},
    		{new(any), reflect.TypeFor[any]()},
    		{new(myiface), reflect.TypeFor[myiface]()},
    	}
    	for _, tc := range testcases {
    		want := reflect.ValueOf(tc.wantFrom).Elem().Type()
    		if want != tc.got {
    			t.Errorf("unexpected reflect.Type: got %v; want %v", tc.got, want)
    		}
    	}
    }
    
    func TestStructOfEmbeddedIfaceMethodCall(t *testing.T) {
    	type Named interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/TransformProgressEventCrossVersionSpec.groovy

                    void transform(TransformOutputs outputs) {
                        def input = inputArtifact.get().asFile
                        def output = outputs.file(input.name + ".txt")
                        output.text = String.valueOf(input.length())
                    }
                }
            """
        }
    
        def getFileNamer() {
            """
                abstract class FileNamer implements TransformAction<TransformParameters.None> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. src/internal/fmtsort/sort.go

    				return c
    			}
    		}
    		return 0
    	case reflect.Interface:
    		if c, ok := nilCompare(aVal, bVal); ok {
    			return c
    		}
    		c := compare(reflect.ValueOf(aVal.Elem().Type()), reflect.ValueOf(bVal.Elem().Type()))
    		if c != 0 {
    			return c
    		}
    		return compare(aVal.Elem(), bVal.Elem())
    	default:
    		// Certain types cannot appear as keys (maps, funcs, slices), but be explicit.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/resolver/AbstractResolveDanglingFileReferenceTest.kt

        }
    
        private object Directives : SimpleDirectivesContainer() {
            val COPY_RESOLUTION_MODE by enumDirective(description = "Dangling file resolution mode for a copy") {
                DanglingFileResolutionMode.valueOf(it)
            }
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 19:03:01 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultColorMap.java

                }
            }
    
            if (style.getColor().equals(Style.Color.GREY)) {
                colors.add(new BrightForegroundColor(Ansi.Color.BLACK));
            } else {
                Ansi.Color ansiColor = Ansi.Color.valueOf(style.getColor().name().toUpperCase(Locale.ROOT));
                if (ansiColor != DEFAULT) {
                    colors.add(new ForegroundColor(ansiColor));
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. platforms/core-runtime/build-option/src/main/java/org/gradle/internal/buildoption/EnumBuildOption.java

            }
            return enumValue;
        }
    
        private E tryGetValue(String value) {
            try {
                return Enum.valueOf(enumClass, value);
            } catch (IllegalArgumentException e) {
                return null;
            }
        }
    
        public abstract void applyTo(E value, T settings, Origin origin);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:39 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/api/JavaVersion.java

         * Returns the major version number as a {@link String}.
         *
         * @see #getMajorVersionNumber() for the integer value
         * @since 1.8
         */
        public String getMajorVersion() {
            return String.valueOf(getMajorVersionNumber());
        }
    
        /**
         * Returns the major version number.
         *
         * @see #getMajorVersion() for the string value
         * @since 8.9
         */
        @Incubating
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top