Lines Matching refs:n
97 n := strings.Count(str, "$")
98 if n == 0 {
105 strings: make([]string, 0, n+1),
106 variables: make([]Variable, 0, n),
287 func (n varNinjaString) Value(pkgNames map[*packageContext]string) string {
288 if len(n.strings) == 1 {
289 return defaultEscaper.Replace(n.strings[0])
292 n.ValueWithEscaper(str, pkgNames, defaultEscaper)
296 func (n varNinjaString) ValueWithEscaper(w io.StringWriter, pkgNames map[*packageContext]string,
299 w.WriteString(escaper.Replace(n.strings[0]))
300 for i, v := range n.variables {
304 w.WriteString(escaper.Replace(n.strings[i+1]))
308 func (n varNinjaString) Eval(variables map[Variable]ninjaString) (string, error) {
309 str := n.strings[0]
310 for i, v := range n.variables {
319 str += value + n.strings[i+1]
324 func (n varNinjaString) Variables() []Variable {
325 return n.variables