Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,080 for Constraint (0.19 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/AbstractDependencyMetadataRulesIntegrationTest.groovy

                        } else {
                            constraint('org.test:moduleB:1.0', 'org.test:moduleB:1.0')
                        }
                    }
                }
            }
    
            where:
            thing                    | notation | declaration
            "dependency constraints" | "string" | "'org.test:moduleB:1.0'"
            "dependency constraints" | "map"    | "group: 'org.test', name: 'moduleB', version: '1.0'"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 36.5K bytes
    - Viewed (0)
  2. schema/relationship.go

    	sql = "CONSTRAINT ? FOREIGN KEY ? REFERENCES ??"
    	if constraint.OnDelete != "" {
    		sql += " ON DELETE " + constraint.OnDelete
    	}
    
    	if constraint.OnUpdate != "" {
    		sql += " ON UPDATE " + constraint.OnUpdate
    	}
    
    	foreignKeys := make([]interface{}, 0, len(constraint.ForeignKeys))
    	for _, field := range constraint.ForeignKeys {
    		foreignKeys = append(foreignKeys, clause.Column{Name: field.DBName})
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  3. src/crypto/x509/cert_pool.go

    // constraint. When Certificate.Verify builds a chain which is rooted by cert,
    // it will additionally pass the whole chain to constraint to determine its
    // validity. If constraint returns a non-nil error, the chain will be discarded.
    // constraint may be called concurrently from multiple goroutines.
    func (s *CertPool) AddCertWithConstraint(cert *Certificate, constraint func([]*Certificate) error) {
    	if cert == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:41:40 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  4. src/internal/types/testdata/examples/typesets.go

    }
    
    // A type parameter may not be embedded in an interface;
    // so it can also not be used as a constraint.
    func _[A any, B A /* ERROR "cannot use a type parameter as constraint" */]()    {}
    func _[A any, B, C A /* ERROR "cannot use a type parameter as constraint" */]() {}
    
    // Error messages refer to the type constraint as it appears in the source.
    // (No implicit interface should be exposed.)
    func _[T string](x T) T {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. subprojects/core-api/src/main/java/org/gradle/api/artifacts/dsl/Dependencies.java

         *
         * @param dependencyConstraintNotation dependency constraint to add
         * @return the new dependency constraint
         * @see DependencyConstraintFactory#create(CharSequence) Valid dependency constraint notation for this method
         * @since 8.7
         */
        default DependencyConstraint constraint(CharSequence dependencyConstraintNotation) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 05:34:03 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. subprojects/core-api/src/main/java/org/gradle/api/artifacts/dsl/DependencyCollector.java

        /**
         * Add a dependency constraint.
         *
         * @param dependencyConstraint dependency constraint to add
         * @since 8.7
         */
        void addConstraint(DependencyConstraint dependencyConstraint);
    
        /**
         * Add a dependency constraint and configure it.
         *
         * @param dependencyConstraint dependency constraint to add
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 22:19:12 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. src/go/doc/testdata/generics.1.golden

    PACKAGE generics
    
    IMPORTPATH
    	testdata/generics
    
    FILENAMES
    	testdata/generics.go
    
    FUNCTIONS
    	// AnotherFunc has an implicit constraint interface.  Neither type ...
    	func AnotherFunc[T ~struct{ f int }](_ struct{ f int })
    
    	// Func has an instantiated constraint. 
    	func Func[T Constraint[string, Type[int]]]()
    
    	// Single is not a factory function. 
    	func Single[T any]() *T
    
    	// Slice is not a factory function. 
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 10 18:06:32 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  8. src/internal/types/testdata/fixedbugs/issue42758.go

    	switch x.(type) {
    	case T:
    	case T /* ERROR "duplicate case" */ :
    	}
    }
    
    type constraint interface {
    	~int
    }
    
    func _[T constraint](x interface{}){
    	switch x.(type) {
    	case T: // ok to use a type parameter even if type set contains int
    	case int:
    	}
    }
    
    func _(x constraint /* ERROR "contains type constraints" */ ) {
    	switch x.(type) { // no need to report another error
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 649 bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/DependenciesExtensions.kt

                // Add a constraint by String
                implementation(constraint("org:foo:1.0")) // is getImplementation().addConstraint(constraint("org:foo:1.0"))
    
                // Add a constraint on projects
                implementation(constraint(project(":path"))) // is getImplementation().addConstraint(constraint(project(":path")))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 12 18:51:29 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  10. platforms/software/publish/src/main/java/org/gradle/api/publish/internal/metadata/ModuleMetadataJsonWriter.java

            if (constraints.isEmpty()) {
                return;
            }
            writeArray("dependencyConstraints", () -> {
                for (ModuleMetadataSpec.DependencyConstraint constraint : constraints) {
                    writeObject(() -> {
                        write("group", constraint.coordinates.group);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 11.4K bytes
    - Viewed (0)
Back to top