Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for visitValue (0.29 sec)

  1. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/dom/DomTestUtil.kt

    object DomTestUtil {
        fun printDomByTraversal(
            document: DeclarativeDocument,
            nodeFormatter: (DocumentNode) -> String,
            valueFormatter: (ValueNode) -> String
        ): String = buildString {
            fun visitValue(valueNode: ValueNode, indent: Int) {
                append(" ".repeat(indent * 4))
                append(valueFormatter(valueNode))
            }
    
            fun visitDocumentNode(documentNode: DocumentNode, indent: Int) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:10 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/dom/resolution/DefaultDocumentResolutionContainer.kt

                }
            }
    
            fun visitValue(value: DeclarativeDocument.ValueNode) {
                when (value) {
                    is ValueFactoryNode -> {
                        valueFactoryResolution[value] = resolveValueFactory(value)
                        value.values.forEach(::visitValue)
                    }
                    is DeclarativeDocument.ValueNode.LiteralValueNode -> Unit
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:10 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/Collectors.java

            public void calculateExecutionTimeValue(Action<? super ExecutionTimeValue<? extends Iterable<? extends T>>> visitor) {
                ExecutionTimeValue<? extends T> value = provider.calculateExecutionTimeValue();
                visitValue(visitor, value);
            }
    
            @Override
            public ValueProducer getProducer() {
                return provider.getProducer();
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:15:09 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/sccp.go

    					if val.Op == OpPhi || !destVisited {
    						t.visitValue(val)
    					}
    				}
    				// propagates constants facts through CFG, taking condition test
    				// into account
    				if !destVisited {
    					t.propagate(dest)
    				}
    			}
    			continue
    		}
    		if len(t.uses) > 0 {
    			use := t.uses[0]
    			t.uses = t.uses[1:]
    			t.visitValue(use)
    			continue
    		}
    		break
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/execution/plan/ExecutionNodeAccessHierarchy.java

            return visitValues(location, new CollectingNodeAccessVisitor());
        }
    
        /**
         * Visits all nodes which access the location.
         *
         * That includes node which access ancestors or children of the location.
         */
        public <T> T visitNodesAccessing(String location, T initialValue, BiFunction<T, ? super Node, T> visitor) {
            return visitValues(location, new AbstractNodeAccessVisitor<T>() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 12 20:10:34 UTC 2022
    - 6.9K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/execution/plan/ValuedVfsHierarchyTest.groovy

            def visitor = new CollectingValueVisitor()
            hierarchy.visitValues("", visitor)
            return visitor.allValues
        }
    
        static List<Integer> getValuesFor(ValuedVfsHierarchy<Integer> hierarchy, String location) {
            def visitor = new CollectingValueVisitor()
            hierarchy.visitValues(location, visitor)
            return visitor.allValues
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 28 17:21:57 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/main/java/org/gradle/tooling/internal/provider/continuous/BuildInputHierarchy.java

        /**
         * Returns whether the given location is an input to the build.
         */
        public boolean isInput(String location) {
            InputDeclarationVisitor visitor = new InputDeclarationVisitor();
            root.visitValues(location, visitor);
            return visitor.isInput();
        }
    
        public boolean isEmpty() {
            return root.isEmpty();
        }
    
        /**
         * Records that some locations are an input to the build.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/execution/plan/ValuedVfsHierarchy.java

            return emptyHierarchy(caseSensitivity);
        }
    
        /**
         * Visits the values which are attached to ancestors and children of the given location.
         */
        public void visitValues(String location, ValueVisitor<T> visitor) {
            VfsRelativePath relativePath = VfsRelativePath.of(location);
            if (relativePath.isEmpty()) {
                visitAllValues(visitor);
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 28 17:23:29 UTC 2022
    - 7.8K bytes
    - Viewed (0)
Back to top