Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for idealConstant (0.53 sec)

  1. src/text/template/exec.go

    		return dot
    	case *parse.NilNode:
    		s.errorf("nil is not a command")
    	case *parse.NumberNode:
    		return s.idealConstant(word)
    	case *parse.StringNode:
    		return reflect.ValueOf(word.Text)
    	}
    	s.errorf("can't evaluate command %q", firstWord)
    	panic("not reached")
    }
    
    // idealConstant is called to return the value of a number in a context where
    // we don't know the type. In that case, the syntax of the number tells us
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top