Lines Matching +defs:state +defs:mark

22 type state struct {  struct
23 tmpl *Template
24 wr io.Writer
25 node parse.Node // current node, for errors
26 vars []variable // push-down stack of variable values.
36 func (s *state) push(name string, value reflect.Value) {
41 func (s *state) mark() int { func
46 func (s *state) pop(mark int) {
51 func (s *state) setVar(n int, value reflect.Value) {
56 func (s *state) varValue(name string) reflect.Value {
69 func (s *state) at(node parse.Node) {
83 func (s *state) errorf(format string, args ...interface{}) {
162 func (s *state) walk(dot reflect.Value, node parse.Node) {
195 …With(typ parse.NodeType, dot reflect.Value, pipe *parse.PipeNode, list, elseList *parse.ListNode) {
243 func (s *state) walkRange(dot reflect.Value, r *parse.RangeNode) {
304 func (s *state) walkTemplate(dot reflect.Value, t *parse.TemplateNode) {
327 func (s *state) evalPipeline(dot reflect.Value, pipe *parse.PipeNode) (value reflect.Value) {
345 func (s *state) notAFunction(args []parse.Node, final reflect.Value) {
351 …*state) evalCommand(dot reflect.Value, cmd *parse.CommandNode, final reflect.Value) reflect.Value {
389 func (s *state) idealConstant(constant *parse.NumberNode) reflect.Value {
415 …(dot reflect.Value, field *parse.FieldNode, args []parse.Node, final reflect.Value) reflect.Value {
420 …(dot reflect.Value, chain *parse.ChainNode, args []parse.Node, final reflect.Value) reflect.Value {
430 …eflect.Value, variable *parse.VariableNode, args []parse.Node, final reflect.Value) reflect.Value {
444 …ect.Value, node parse.Node, ident []string, args []parse.Node, final reflect.Value) reflect.Value {
453 …node *parse.IdentifierNode, cmd parse.Node, args []parse.Node, final reflect.Value) reflect.Value {
466 …ieldName string, node parse.Node, args []parse.Node, final, receiver reflect.Value) reflect.Value {
524 …eflect.Value, node parse.Node, name string, args []parse.Node, final reflect.Value) reflect.Value {
587 func (s *state) validateType(value reflect.Value, typ reflect.Type) reflect.Value {
622 func (s *state) evalArg(dot reflect.Value, typ reflect.Type, n parse.Node) reflect.Value {
665 func (s *state) evalBool(typ reflect.Type, n parse.Node) reflect.Value {
676 func (s *state) evalString(typ reflect.Type, n parse.Node) reflect.Value {
687 func (s *state) evalInteger(typ reflect.Type, n parse.Node) reflect.Value {
698 func (s *state) evalUnsignedInteger(typ reflect.Type, n parse.Node) reflect.Value {
709 func (s *state) evalFloat(typ reflect.Type, n parse.Node) reflect.Value {
720 func (s *state) evalComplex(typ reflect.Type, n parse.Node) reflect.Value {
730 func (s *state) evalEmptyInterface(dot reflect.Value, n parse.Node) reflect.Value {
774 func (s *state) printValue(n parse.Node, v reflect.Value) {