Lines Matching refs:b
284 b := &buildDef{
290 if b.Variables == nil {
291 b.Variables = make(map[string]ninjaString)
293 b.Variables[name] = value
305 b.Outputs, err = parseNinjaStrings(scope, params.Outputs)
310 b.ImplicitOutputs, err = parseNinjaStrings(scope, params.ImplicitOutputs)
315 b.Inputs, err = parseNinjaStrings(scope, params.Inputs)
320 b.Implicits, err = parseNinjaStrings(scope, params.Implicits)
325 b.OrderOnly, err = parseNinjaStrings(scope, params.OrderOnly)
330 b.Validations, err = parseNinjaStrings(scope, params.Validations)
335 b.Optional = params.Optional
366 b.Args = make(map[Variable]ninjaString)
384 b.Args[argVar] = ninjaValue
388 return b, nil
391 func (b *buildDef) WriteTo(nw *ninjaWriter, pkgNames map[*packageContext]string) error {
393 comment = b.Comment
394 rule = b.Rule.fullName(pkgNames)
395 outputs = b.Outputs
396 implicitOuts = b.ImplicitOutputs
397 explicitDeps = b.Inputs
398 implicitDeps = b.Implicits
399 orderOnlyDeps = b.OrderOnly
400 validations = b.Validations
403 if b.RuleDef != nil {
404 implicitDeps = append(b.RuleDef.CommandDeps, implicitDeps...)
405 orderOnlyDeps = append(b.RuleDef.CommandOrderOnly, orderOnlyDeps...)
413 err = writeVariables(nw, b.Variables, pkgNames)
422 args := make([]nameValuePair, 0, len(b.Args))
424 for argVar, value := range b.Args {
437 if !b.Optional {