Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for TextNode (0.17 sec)

  1. src/text/template/parse/node.go

    func (l *ListNode) Copy() Node {
    	return l.CopyList()
    }
    
    // TextNode holds plain text.
    type TextNode struct {
    	NodeType
    	Pos
    	tr   *Tree
    	Text []byte // The text; may span newlines.
    }
    
    func (t *Tree) newText(pos Pos, text string) *TextNode {
    	return &TextNode{tr: t, NodeType: NodeText, Pos: pos, Text: []byte(text)}
    }
    
    func (t *TextNode) String() string {
    	return fmt.Sprintf(textFormat, t.Text)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. src/html/template/escape.go

    	// executes a given template in different escaping contexts.
    	actionNodeEdits   map[*parse.ActionNode][]string
    	templateNodeEdits map[*parse.TemplateNode]string
    	textNodeEdits     map[*parse.TextNode][]byte
    	// rangeContext holds context about the current range loop.
    	rangeContext *rangeContext
    }
    
    // rangeContext holds information about the current range loop.
    type rangeContext struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 15:18:39 UTC 2023
    - 32.4K bytes
    - Viewed (0)
  3. src/text/template/parse/parse.go

    	case *IfNode:
    	case *ListNode:
    		for _, node := range n.Nodes {
    			if !IsEmptyTree(node) {
    				return false
    			}
    		}
    		return true
    	case *RangeNode:
    	case *TemplateNode:
    	case *TextNode:
    		return len(bytes.TrimSpace(n.Text)) == 0
    	case *WithNode:
    	default:
    		panic("unknown node: " + n.String())
    	}
    	return false
    }
    
    // parse is the top-level parser for a template, essentially the same
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  4. src/text/template/exec.go

    	case *parse.ListNode:
    		for _, node := range node.Nodes {
    			s.walk(dot, node)
    		}
    	case *parse.RangeNode:
    		s.walkRange(dot, node)
    	case *parse.TemplateNode:
    		s.walkTemplate(dot, node)
    	case *parse.TextNode:
    		if _, err := s.wr.Write(node.Text); err != nil {
    			s.writeError(err)
    		}
    	case *parse.WithNode:
    		s.walkIfOrWith(parse.NodeWith, dot, node.Pipe, node.List, node.ElseList)
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/NodeStateTest.groovy

        def "collects endorsed strict versions from multiple sources"() {
            when:
            edge(root, false) // not-endorsing edge
            def endorseFrom1 = edge(root, false, null, nextNode(1), true)
            def endorseFrom2 = edge(root, false, null, nextNode(4), true)
            root.collectEndorsedStrictVersions([endorseFrom1, endorseFrom2])
            def endorsedStrictVersions = root.getEndorsedStrictVersions(edge(root, false))
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. manifests/addons/dashboards/istio-mesh-dashboard.json

            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "mean"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
              },
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 02:28:01 UTC 2024
    - 46.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/Graphs.java

        if (state == NodeVisitState.PENDING) {
          return true;
        }
    
        visitedNodes.put(node, NodeVisitState.PENDING);
        for (N nextNode : graph.successors(node)) {
          if (canTraverseWithoutReusingEdge(graph, nextNode, previousNode)
              && subgraphHasCycle(graph, visitedNodes, nextNode, node)) {
            return true;
          }
        }
        visitedNodes.put(node, NodeVisitState.COMPLETE);
        return false;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/Graphs.java

        if (state == NodeVisitState.PENDING) {
          return true;
        }
    
        visitedNodes.put(node, NodeVisitState.PENDING);
        for (N nextNode : graph.successors(node)) {
          if (canTraverseWithoutReusingEdge(graph, nextNode, previousNode)
              && subgraphHasCycle(graph, visitedNodes, nextNode, node)) {
            return true;
          }
        }
        visitedNodes.put(node, NodeVisitState.COMPLETE);
        return false;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  9. src/compress/flate/inflate.go

    	// composed of at least one symbol (the end-of-block marker).
    	if max == 0 {
    		return true
    	}
    
    	code := 0
    	var nextcode [maxCodeLen]int
    	for i := min; i <= max; i++ {
    		code <<= 1
    		nextcode[i] = code
    		code += count[i]
    	}
    
    	// Check that the coding is complete (i.e., that we've
    	// assigned all 2-to-the-max possible bit sequences).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  10. operator/pkg/translate/translate.go

    		return nil, fmt.Errorf("path %s has an unexpected last element %s", path, path[length-1])
    	}
    
    	patchObj := make(map[string]any)
    	var currentNode, nextNode any
    	nextNode = patchObj
    	for i, pe := range path {
    		currentNode = nextNode
    		// last path element
    		if i == length-1 {
    			currentNode, ok := currentNode.(map[string]any)
    			if !ok {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 19:43:09 UTC 2024
    - 36.3K bytes
    - Viewed (0)
Back to top