Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 266 for walkIf (0.52 sec)

  1. analysis/analysis-api-standalone/src/org/jetbrains/kotlin/analysis/project/structure/impl/KtModuleUtils.kt

     *
     * E.g., for `project/app/src` as a [root], this will walk the file tree and
     * collect all `.kt`, `.kts`, and `.java` files under that folder.
     *
     * Note that this util gracefully skips [IOException] during file tree traversal.
     */
    internal fun collectSourceFilePaths(root: Path): List<Path> {
        // NB: [Files#walk] throws an exception if there is an issue during IO.
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 20:26:34 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/DefaultTaskInputsTest.groovy

            inputs.file("b").withPropertyName("alma")
            def visitor = new GetInputFilesVisitor(task.toString(), fileCollectionFactory)
            when:
            TaskPropertyUtils.visitProperties(walker, task, visitor)
            visitor.getFileProperties()
            then:
            def ex = thrown IllegalArgumentException
            ex.message == "Multiple input file properties with name 'alma'"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 16 20:09:26 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/authoring-builds/tutorial/partr6_writing_tasks.adoc

        @TaskAction
        fun action() {
            // Read the license text
            val licenseText = File(fileName).readText()
            // Walk the directories looking for java files
            File(project.rootDir.toString()).walk().forEach {
                if (it.extension == "java") {
                    // Read the source code
                    var ins: InputStream = it.inputStream()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 17:16:27 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/TypesTest.groovy

            then: 1 * visitor.visitType(Serializable) >> Types.TypeVisitResult.CONTINUE
            then: 1 * visitor.visitType(Iface) >> Types.TypeVisitResult.CONTINUE
            then: 0 * _
        }
    
        def "can terminate type hierarchy walk"() {
            def visitor = Mock(Types.TypeVisitor)
            when:
            Types.walkTypeHierarchy(Child, [Object, GroovyObject], visitor)
    
            then: 1 * visitor.visitType(Child) >> Types.TypeVisitResult.CONTINUE
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 06 15:03:49 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/runtime_verify.cc

      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(RuntimeVerifyPass)
    
      explicit RuntimeVerifyPass() {}
    
     private:
      void runOnOperation() override;
    };
    
    void RuntimeVerifyPass::runOnOperation() {
      getOperation().walk([&](TflRuntimeVerifyOpInterface op) {
        if (failed(op.VerifyTflRuntimeConstraints(
                op.getOperation(), /*emit_error_on_verify_fail=*/true)))
          signalPassFailure();
      });
    }
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 07 21:08:41 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_calibration_statistics_saver.cc

      // Insert CalibrationStatisticsSaverOp to the end of each region.
      for (auto func_op : module_op.getOps<func::FuncOp>()) {
        int32_t output_file_idx = 0;
        StringRef func_name = func_op.getSymName();
    
        func_op.walk([&output_file_idx, &ctx, &func_name, &aggregator_ops_to_ignore,
                      this](Operation* op) {
          for (Region& region : op->getRegions()) {
            if (succeeded(InsertCalibrationStatisticsSaverOp(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/cc/report.cc

    // a callee's prefix of `quantized_`.
    void PopulateQuantizedResults(ModuleOp module_op,
                                  QuantizationResults& results) {
      module_op.walk([&results](func::CallOp call_op) {
        std::optional<QuantizationResult> result = GetQuantizationResult(call_op);
        if (result == std::nullopt) return WalkResult::skip();
    
        *results.add_results() = std::move(*result);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. src/cmd/link/internal/loadpe/seh.go

    	UNW_FLAG_UHANDLER  = 2 << 3
    	UNW_FLAG_CHAININFO = 4 << 3
    	unwStaticDataSize  = 4 // Bytes of unwind data before the variable length part.
    	unwCodeSize        = 2 // Bytes per unwind code.
    )
    
    // processSEH walks all pdata relocations looking for exception handler function symbols.
    // We want to mark these as reachable if the function that they protect is reachable
    // in the final binary.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 16:20:28 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. src/internal/trace/internal/oldtrace/parser_test.go

    			if err != ErrTimeOrder {
    				t.Errorf("unordered trace is not detected %v: %v", f.Name(), err)
    			}
    		default:
    			t.Errorf("unknown input file suffix: %v", f.Name())
    		}
    	}
    }
    
    // checkTrace walks over a good trace and makes a bunch of additional checks
    // that may not cause the parser to outright fail.
    func checkTrace(t *testing.T, ver int, res Trace) {
    	for i := 0; i < res.Events.Len(); i++ {
    		ev := res.Events.Ptr(i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DirectoryFileTree.java

    import org.gradle.util.internal.GUtil;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import java.io.File;
    import java.util.Set;
    import java.util.concurrent.atomic.AtomicBoolean;
    
    /**
     * Directory walker supporting {@link Spec}s for includes and excludes.
     * The file system is traversed in depth-first prefix order - all files in a directory will be
     * visited before any child directory is visited.
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 15 21:33:45 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top