Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 121 for Replace (0.08 sec)

  1. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy

            collection.from(collection1, collection2)
    
            when:
            def replaced = collection.replace(collection1, supplier)
    
            then:
            replaced != collection
            replaced.sourceCollections == [replaced1, collection2]
    
            1 * collection1.replace(collection1, supplier) >> replaced1
            1 * collection2.replace(collection1, supplier) >> collection2
            0 * _
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
  2. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/ClassBytesRepository.kt

        classFilePath
            .removeSuffix(classFileExtension)
            .removeSuffix("Kt")
            .replace(slashOrDollar, ".")
    
    
    // visible for testing
    fun classFilePathCandidatesFor(sourceName: String): Sequence<String> =
        sourceName.replace(".", "/").let { path ->
            candidateClassFiles(path) + nestedClassFilePathCandidatesFor(path)
        }
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 17:45:10 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/FilteredFileCollection.java

            this.collection = collection;
            this.filterSpec = filterSpec;
        }
    
        @Override
        public FileCollectionInternal replace(FileCollectionInternal original, Supplier<FileCollectionInternal> supplier) {
            AbstractFileCollection newCollection = (AbstractFileCollection) collection.replace(original, supplier);
            if (newCollection == collection) {
                return this;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 08:16:53 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/action/AnnotationGeneratorWorkAction.kt

            if (this is Class<*> && this.isArray) {
                return this.componentType.toCodeTypeString() + "[]"
            }
            return toString()
                .replace("class ", "")
                .replace("interface ", "")
        }
    
        companion object {
            private
            const val RESOURCE = "/default-imports.txt"
    
            /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 22 10:58:31 UTC 2022
    - 6.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollection.java

            return this;
        }
    
        @Override
        public FileCollectionInternal replace(FileCollectionInternal original, Supplier<FileCollectionInternal> supplier) {
            if (original == this) {
                return supplier.get();
            }
            List<Object> newItems = value.replace(original, supplier);
            if (newItems == null) {
                return this;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 16:06:55 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/transformation/OriginReplacement.kt

                    is ObjectOrigin.FromLocalValue -> origin.copy(assigned = replace(origin.assigned))
                    is ObjectOrigin.ImplicitThisReceiver -> origin.copy(resolvedTo = replaceInReceiver(origin.resolvedTo))
                    is ObjectOrigin.PropertyDefaultValue -> origin.copy(receiver = replace(origin.receiver))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 14:27:23 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/groovy/scripts/internal/StatementReplacingVisitorSupport.java

        stat.setIfBlock(replace(stat.getIfBlock()));
        stat.setElseBlock(replace(stat.getElseBlock()));
      }
    
      @SuppressWarnings("unchecked")
      @Override
      public void visitTryCatchFinally(TryCatchStatement stat) {
        stat.setTryStatement(replace(stat.getTryStatement()));
        replaceAll(stat.getCatchStatements());
        stat.setFinallyStatement(replace(stat.getFinallyStatement()));
      }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/FileCollectionInternal.java

        /**
         * Returns a copy of this collection, with the given collection replaced with the value returned by the given supplier.
         *
         * This is used to deal with the case where a mutable collection may be added to itself. This is intended to become an error at some point.
         */
        FileCollectionInternal replace(FileCollectionInternal original, Supplier<FileCollectionInternal> supplier);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 14:55:28 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/groovy/scripts/internal/ExpressionReplacingVisitorSupport.java

            stat.setLoopBlock(replace(stat.getLoopBlock()));
        }
    
        @Override
        public void visitIfElse(IfStatement stat) {
            stat.setBooleanExpression((BooleanExpression) replaceExpr(stat.getBooleanExpression()));
            stat.setIfBlock(replace(stat.getIfBlock()));
            stat.setElseBlock(replace(stat.getElseBlock()));
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/UnionFileCollectionTest.groovy

            1 * source1.replace(source3, _) >> source1
            1 * source2.replace(source3, _) >> source2
    
            replaced.is(collection)
    
            when:
            def replaced2 = collection.replace(source3, {})
    
            then:
            1 * source1.replace(source3, _) >> source1
            1 * source2.replace(source3, _) >> source4
    
            replaced2 != collection
            replaced2.sourceCollections == [source1, source4]
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top