Lines Matching refs:r
142 r := &ruleDef{
153 if r.Pool != nil && !scope.IsPoolVisible(r.Pool) {
154 return nil, fmt.Errorf("Pool %s is not visible in this scope", r.Pool)
161 r.Variables["command"] = value
168 r.Variables["depfile"] = value
172 r.Variables["deps"] = simpleNinjaString(params.Deps.String())
180 r.Variables["description"] = value
184 r.Variables["generator"] = simpleNinjaString("true")
188 r.Variables["restat"] = simpleNinjaString("true")
196 r.Variables["rspfile"] = value
205 r.Variables["rspfile_content"] = value
208 r.CommandDeps, err = parseNinjaStrings(scope, params.CommandDeps)
213 r.CommandOrderOnly, err = parseNinjaStrings(scope, params.CommandOrderOnly)
218 return r, nil
221 func (r *ruleDef) WriteTo(nw *ninjaWriter, name string,
224 if r.Comment != "" {
225 err := nw.Comment(r.Comment)
236 if r.Pool != nil {
237 err = nw.ScopedAssign("pool", r.Pool.fullName(pkgNames))
243 err = writeVariables(nw, r.Variables, pkgNames)