- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for NewIdentifier (0.25 sec)
-
src/text/template/parse/node.go
NodeType Pos tr *Tree Ident string // The identifier's name. } // NewIdentifier returns a new [IdentifierNode] with the given identifier name. func NewIdentifier(ident string) *IdentifierNode { return &IdentifierNode{NodeType: NodeIdentifier, Ident: ident} } // SetPos sets the position. [NewIdentifier] is a public method so we can't modify its signature. // Chained for convenience. // TODO: fix one day?
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 24.2K bytes - Viewed (0) -
src/html/template/escape.go
// Convert this into the equivalent form // {{ _eval_args_ arg1 arg2 ... argN | esc }}, so that esc can be easily // merged with the escapers in s. lastCmd.Args[0] = parse.NewIdentifier("_eval_args_").SetTree(nil).SetPos(lastCmd.Args[0].Position()) p.Cmds = appendCmd(p.Cmds, newIdentCmd(esc, p.Position())) pipelineLen++ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 02 15:18:39 UTC 2023 - 32.4K bytes - Viewed (0) -
src/text/template/parse/parse.go
case itemIdentifier: checkFunc := t.Mode&SkipFuncCheck == 0 if checkFunc && !t.hasFunction(token.val) { t.errorf("function %q not defined", token.val) } return NewIdentifier(token.val).SetTree(t).SetPos(token.pos) case itemDot: return t.newDot(token.pos) case itemNil: return t.newNil(token.pos) case itemVariable: return t.useVar(token.pos, token.val) case itemField:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 21.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"ListNode", Type, 0}, {"ListNode.NodeType", Field, 0}, {"ListNode.Nodes", Field, 0}, {"ListNode.Pos", Field, 1}, {"Mode", Type, 16}, {"New", Func, 0}, {"NewIdentifier", Func, 0}, {"NilNode", Type, 1}, {"NilNode.NodeType", Field, 4}, {"NilNode.Pos", Field, 1}, {"Node", Type, 0}, {"NodeAction", Const, 0}, {"NodeBool", Const, 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) -
api/go1.txt
pkg text/template/parse, const NodeWith NodeType pkg text/template/parse, func IsEmptyTree(Node) bool pkg text/template/parse, func New(string, ...map[string]interface{}) *Tree pkg text/template/parse, func NewIdentifier(string) *IdentifierNode pkg text/template/parse, func Parse(string, string, string, string, ...map[string]interface{}) (map[string]*Tree, error) pkg text/template/parse, method (*ActionNode) Copy() Node
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)