Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for forType (0.13 sec)

  1. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/ValidateStepTest.groovy

      - ${validationProblem}"""
            }
            _ * work.validate(_ as WorkValidationContext) >> { WorkValidationContext validationContext ->
                validationContext.forType(JobType, true).visitTypeProblem {
                    it
                        .withAnnotationType(Object)
                        .id("test-problem", "Validation error", GradleCoreProblemGroup.validation())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/WorkValidationContext.java

    import org.gradle.plugin.use.PluginId;
    
    import java.util.List;
    import java.util.Optional;
    
    public interface WorkValidationContext {
        TypeValidationContext forType(Class<?> type, boolean cacheable);
    
        InternalProblems getProblemsService();
    
        List<Problem> getProblems();
    
        ImmutableSet<Class<?>> getValidatedTypes();
    
        interface TypeOriginInspector {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:26:04 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/Jsr330ConstructorSelector.java

            }
        }
    
        @Override
        public <T> ClassGenerator.GeneratedConstructor<? extends T> forParams(Class<T> type, Object[] params) {
            return forType(type);
        }
    
        @Override
        public <T> ClassGenerator.GeneratedConstructor<? extends T> forType(final Class<T> type) throws UnsupportedOperationException {
            CachedConstructor constructor = constructorCache.get(type, () -> {
                try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 07:52:37 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/impl/DefaultWorkValidationContext.java

        }
    
        @Override
        public InternalProblems getProblemsService() {
            return ProblemsProgressEventEmitterHolder.get();
        }
    
        @Override
        public TypeValidationContext forType(Class<?> type, boolean cacheable) {
            types.add(type);
            Supplier<Optional<PluginId>> pluginId = () -> typeOriginInspector.findPluginDefining(type);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:45:59 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultProperty.java

        public DefaultProperty(PropertyHost propertyHost, Class<T> type) {
            super(propertyHost);
            this.type = type;
            this.sanitizer = ValueSanitizers.forType(type);
            init(getDefaultValue());
        }
    
        @Override
        protected ProviderInternal<? extends T> getDefaultValue() {
            return Providers.notDefined();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:33:15 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/execution/plan/DefaultNodeValidator.java

            // We don't know whether the task is cacheable or not, so we ignore cacheability problems for scheduling
            TypeValidationContext typeValidationContext = validationContext.forType(taskType, false);
            node.getTaskProperties().validateType(typeValidationContext);
            return validationContext;
        }
    
        private void logWarnings(List<? extends Problem> problems) {
            problems.stream()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 04 07:42:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/ValidateStep.java

            Class<?> workType = workClass.get();
            TypeValidationContext workValidationContext = validationContext.forType(workType, true);
            validateImplementation(workValidationContext, beforeExecutionState.getImplementation(), "Implementation of ", work);
            beforeExecutionState.getAdditionalImplementations()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/openapi/compiling_test.go

    // bar is an object with a string field "bar", an integer field "common", and an integer field "confusion"
    func buildTestEnv() (*cel.Env, error) {
    	fooType := common.SchemaDeclType(simpleMapSchema("foo", spec.StringProperty()), true).MaybeAssignTypeName("fooType")
    	barType := common.SchemaDeclType(simpleMapSchema("bar", spec.Int64Property()), true).MaybeAssignTypeName("barType")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. src/runtime/tracetype.go

    	}
    	w.flush().end()
    	t.tab.reset()
    }
    
    func dumpTypesRec(node *traceMapNode, w traceExpWriter) traceExpWriter {
    	typ := (*abi.Type)(*(*unsafe.Pointer)(unsafe.Pointer(&node.data[0])))
    	typName := toRType(typ).string()
    
    	// The maximum number of bytes required to hold the encoded type.
    	maxBytes := 1 + 5*traceBytesPerNumber + len(typName)
    
    	// Estimate the size of this record. This
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. src/runtime/plugin.go

    	// a dependency on the reflect package.
    	syms = make(map[string]any, len(md.ptab))
    	for _, ptab := range md.ptab {
    		symName := resolveNameOff(unsafe.Pointer(md.types), ptab.name)
    		t := toRType((*_type)(unsafe.Pointer(md.types))).typeOff(ptab.typ) // TODO can this stack of conversions be simpler?
    		var val any
    		valp := (*[2]unsafe.Pointer)(unsafe.Pointer(&val))
    		(*valp)[0] = unsafe.Pointer(t)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top