Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for VariableNode (0.23 sec)

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

    }
    
    // VariableNode holds a list of variable names, possibly with chained field
    // accesses. The dollar sign is part of the (first) name.
    type VariableNode struct {
    	NodeType
    	Pos
    	tr    *Tree
    	Ident []string // Variable name and fields in lexical order.
    }
    
    func (t *Tree) newVariable(pos Pos, ident string) *VariableNode {
    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/text/template/exec.go

    	case *parse.PipeNode:
    		// Parenthesized pipeline. The arguments are all inside the pipeline; final must be absent.
    		s.notAFunction(cmd.Args, final)
    		return s.evalPipeline(dot, n)
    	case *parse.VariableNode:
    		return s.evalVariableNode(dot, n, cmd.Args, final)
    	}
    	s.at(firstWord)
    	s.notAFunction(cmd.Args, final)
    	switch word := firstWord.(type) {
    	case *parse.BoolNode:
    		return reflect.ValueOf(word.True)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. src/text/template/parse/parse_test.go

    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    }
    
    var sinkv, sinkl string
    
    func BenchmarkVariableString(b *testing.B) {
    	v := &VariableNode{
    		Ident: []string{"$", "A", "BB", "CCC", "THIS_IS_THE_VARIABLE_BEING_PROCESSED"},
    	}
    	b.ResetTimer()
    	b.ReportAllocs()
    	for i := 0; i < b.N; i++ {
    		sinkv = v.String()
    	}
    	if sinkv == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Tree", Type, 0},
    		{"Tree.Mode", Field, 16},
    		{"Tree.Name", Field, 0},
    		{"Tree.ParseName", Field, 1},
    		{"Tree.Root", Field, 0},
    		{"VariableNode", Type, 0},
    		{"VariableNode.Ident", Field, 0},
    		{"VariableNode.NodeType", Field, 0},
    		{"VariableNode.Pos", Field, 1},
    		{"WithNode", Type, 0},
    		{"WithNode.BranchNode", Field, 0},
    	},
    	"time": {
    		{"(*Location).String", Method, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  5. api/go1.txt

    pkg text/template/parse, type Tree struct, Name string
    pkg text/template/parse, type Tree struct, Root *ListNode
    pkg text/template/parse, type VariableNode struct
    pkg text/template/parse, type VariableNode struct, Ident []string
    pkg text/template/parse, type VariableNode struct, embedded NodeType
    pkg text/template/parse, type WithNode struct
    pkg text/template/parse, type WithNode struct, embedded BranchNode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  6. api/go1.1.txt

    pkg text/template/parse, method (StringNode) Position() Pos
    pkg text/template/parse, method (TemplateNode) Position() Pos
    pkg text/template/parse, method (TextNode) Position() Pos
    pkg text/template/parse, method (VariableNode) Position() Pos
    pkg text/template/parse, method (WithNode) Position() Pos
    pkg text/template/parse, type ActionNode struct, embedded Pos
    pkg text/template/parse, type BoolNode struct, embedded Pos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top