Lines Matching refs:writer
33 writer io.Writer member
38 func newNinjaWriter(writer io.Writer) *ninjaWriter {
40 writer: writer,
75 _, err := io.WriteString(n.writer, line)
85 _, err := fmt.Fprintf(n.writer, "# %s\n", line)
96 _, err := fmt.Fprintf(n.writer, "pool %s\n", name)
102 _, err := fmt.Fprintf(n.writer, "rule %s\n", name)
177 _, err := fmt.Fprintf(n.writer, "%s = %s\n", name, value)
183 _, err := fmt.Fprintf(n.writer, "%s%s = %s\n", indentString[:indentWidth], name, value)
209 _, err := fmt.Fprintf(n.writer, "subninja %s\n", file)
217 _, err = io.WriteString(n.writer, "\n")
240 _, n.err = io.WriteString(n.writer, " $\n")
244 _, n.err = io.WriteString(n.writer, indentString[:indentWidth*2])
251 _, n.err = io.WriteString(n.writer, " ")
258 _, n.err = io.WriteString(n.writer, s)
274 _, err := io.WriteString(n.writer, "\n")