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)
158 _, err := fmt.Fprintf(n.writer, "%s = %s\n", name, value)
164 _, err := fmt.Fprintf(n.writer, "%s%s = %s\n", indentString[:indentWidth], name, value)
192 _, err = io.WriteString(n.writer, "\n")
215 _, n.err = io.WriteString(n.writer, " $\n")
219 _, n.err = io.WriteString(n.writer, indentString[:indentWidth*2])
226 io.WriteString(n.writer, " ")
230 _, n.err = io.WriteString(n.writer, s)
246 _, err := io.WriteString(n.writer, "\n")