Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for asTyped (0.14 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/FlatMapProvider.java

            try (EvaluationContext.ScopeContext context = openScope()) {
                Value<? extends T> value = provider.calculateValue(consumer);
                if (value.isMissing()) {
                    return value.asType();
                }
                return doMapValue(context, value).calculateValue(consumer);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/AbstractFileTree.java

        @Override
        public FileTree visit(Closure closure) {
            return visit(fileVisitorFrom(closure));
        }
    
        static FileVisitor fileVisitorFrom(Closure closure) {
            return DefaultGroovyMethods.asType(closure, FileVisitor.class);
        }
    
        @Override
        public FileTree visit(final Action<? super FileVisitDetails> visitor) {
            return visit(new FileVisitor() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/MergeProvider.java

            for (Provider<R> provider : items) {
                Value<? extends R> value = Providers.internal(provider).calculateValue(consumer);
                if (value.isMissing()) {
                    return value.asType();
                }
                values.add(value);
            }
    
            ImmutableList.Builder<R> result = ImmutableList.builderWithExpectedSize(values.size());
            for (Value<? extends R> value : values) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 20:21:34 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/TransformBackedProvider.java

            }
        }
    
        @Nonnull
        protected Value<OUT> mapValue(EvaluationContext.ScopeContext context, Value<? extends IN> value) {
            if (value.isMissing()) {
                return value.asType();
            }
            return value.transform(transformer);
        }
    
        protected void beforeRead(EvaluationContext.ScopeContext context) {
            provider.getProducer().visitContentProducerTasks(producer -> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/go/types/gcsizes.go

    		} else {
    			offs = -1 // f.typ or offs is too large
    		}
    	}
    	return offsets
    }
    
    func (s *gcSizes) Sizeof(T Type) int64 {
    	switch t := under(T).(type) {
    	case *Basic:
    		assert(isTyped(T))
    		k := t.kind
    		if int(k) < len(basicSizes) {
    			if s := basicSizes[k]; s > 0 {
    				return int64(s)
    			}
    		}
    		if k == String {
    			return s.WordSize * 2
    		}
    	case *Array:
    		n := t.len
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/CompositeFileTreeTest.groovy

            1 * source2.visit(visitor)
        }
    
        def visitsEachTreeWithClosure() {
            final Closure visitor = TestUtil.TEST_CLOSURE
            final FileVisitor closureAsVisitor = DefaultGroovyMethods.asType(visitor, FileVisitor.class)
    
            when:
            tree.visit(visitor)
    
            then:
            1 * source1.visit(closureAsVisitor)
            1 * source2.visit(closureAsVisitor)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/gcsizes.go

    		} else {
    			offs = -1 // f.typ or offs is too large
    		}
    	}
    	return offsets
    }
    
    func (s *gcSizes) Sizeof(T Type) int64 {
    	switch t := under(T).(type) {
    	case *Basic:
    		assert(isTyped(T))
    		k := t.kind
    		if int(k) < len(basicSizes) {
    			if s := basicSizes[k]; s > 0 {
    				return int64(s)
    			}
    		}
    		if k == String {
    			return s.WordSize * 2
    		}
    	case *Array:
    		n := t.len
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/const.go

    		return
    	}
    
    	// Typed constants must be representable in
    	// their type after each constant operation.
    	// x.typ cannot be a type parameter (type
    	// parameters cannot be constant types).
    	if isTyped(x.typ) {
    		check.representable(x, under(x.typ).(*Basic))
    		return
    	}
    
    	// Untyped integer values must not grow arbitrarily.
    	const prec = 512 // 512 is the constant precision
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. src/go/types/const.go

    		return
    	}
    
    	// Typed constants must be representable in
    	// their type after each constant operation.
    	// x.typ cannot be a type parameter (type
    	// parameters cannot be constant types).
    	if isTyped(x.typ) {
    		check.representable(x, under(x.typ).(*Basic))
    		return
    	}
    
    	// Untyped integer values must not grow arbitrarily.
    	const prec = 512 // 512 is the constant precision
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/sizes.go

    	Uint64:     8,
    	Float32:    4,
    	Float64:    8,
    	Complex64:  8,
    	Complex128: 16,
    }
    
    func (s *StdSizes) Sizeof(T Type) int64 {
    	switch t := under(T).(type) {
    	case *Basic:
    		assert(isTyped(T))
    		k := t.kind
    		if int(k) < len(basicSizes) {
    			if s := basicSizes[k]; s > 0 {
    				return int64(s)
    			}
    		}
    		if k == String {
    			return s.WordSize * 2
    		}
    	case *Array:
    		n := t.len
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top