Lines Matching refs:nw
115 func (p *poolDef) WriteTo(nw *ninjaWriter, name string) error {
117 err := nw.Comment(p.Comment)
123 err := nw.Pool(name)
128 return nw.ScopedAssign("depth", strconv.Itoa(p.Depth))
232 func (r *ruleDef) WriteTo(nw *ninjaWriter, name string,
236 err := nw.Comment(r.Comment)
242 err := nw.Rule(name)
248 err = nw.ScopedAssign("pool", r.Pool.fullName(pkgNames))
254 err = writeVariables(nw, r.Variables, pkgNames)
391 func (b *buildDef) WriteTo(nw *ninjaWriter, pkgNames map[*packageContext]string) error {
408 …err := nw.Build(comment, rule, outputs, implicitOuts, explicitDeps, implicitDeps, orderOnlyDeps, v…
413 err = writeVariables(nw, b.Variables, pkgNames)
431 err = nw.ScopedAssign(pair.name, pair.value)
438 err = nw.Default(pkgNames, outputs...)
444 return nw.BlankLine()
447 func writeVariables(nw *ninjaWriter, variables map[string]ninjaString,
456 err := nw.ScopedAssign(name, variables[name].Value(pkgNames))