Lines Matching refs:nw
113 func (p *poolDef) WriteTo(nw *ninjaWriter, name string) error {
115 err := nw.Comment(p.Comment)
121 err := nw.Pool(name)
126 return nw.ScopedAssign("depth", strconv.Itoa(p.Depth))
221 func (r *ruleDef) WriteTo(nw *ninjaWriter, name string,
225 err := nw.Comment(r.Comment)
231 err := nw.Rule(name)
237 err = nw.ScopedAssign("pool", r.Pool.fullName(pkgNames))
243 err = writeVariables(nw, r.Variables, pkgNames)
374 func (b *buildDef) WriteTo(nw *ninjaWriter, pkgNames map[*packageContext]string) error {
391 …err := nw.Build(comment, rule, outputs, implicitOuts, explicitDeps, implicitDeps, orderOnlyDeps, v…
402 err = writeVariables(nw, b.Variables, pkgNames)
414 err = nw.ScopedAssign(name, args[name])
421 err = nw.Default(outputs...)
427 return nw.BlankLine()
440 func writeVariables(nw *ninjaWriter, variables map[string]ninjaString,
449 err := nw.ScopedAssign(name, variables[name].Value(pkgNames))