Lines Matching refs:b

273 	b := &buildDef{
279 if b.Variables == nil {
280 b.Variables = make(map[string]ninjaString)
282 b.Variables[name] = value
294 b.Outputs, err = parseNinjaStrings(scope, params.Outputs)
299 b.ImplicitOutputs, err = parseNinjaStrings(scope, params.ImplicitOutputs)
304 b.Inputs, err = parseNinjaStrings(scope, params.Inputs)
309 b.Implicits, err = parseNinjaStrings(scope, params.Implicits)
314 b.OrderOnly, err = parseNinjaStrings(scope, params.OrderOnly)
319 b.Validations, err = parseNinjaStrings(scope, params.Validations)
324 b.Optional = params.Optional
349 b.Args = make(map[Variable]ninjaString)
367 b.Args[argVar] = ninjaValue
371 return b, nil
374 func (b *buildDef) WriteTo(nw *ninjaWriter, pkgNames map[*packageContext]string) error {
376 comment = b.Comment
377 rule = b.Rule.fullName(pkgNames)
378 outputs = valueList(b.Outputs, pkgNames, outputEscaper)
379 implicitOuts = valueList(b.ImplicitOutputs, pkgNames, outputEscaper)
380 explicitDeps = valueList(b.Inputs, pkgNames, inputEscaper)
381 implicitDeps = valueList(b.Implicits, pkgNames, inputEscaper)
382 orderOnlyDeps = valueList(b.OrderOnly, pkgNames, inputEscaper)
383 validations = valueList(b.Validations, pkgNames, inputEscaper)
386 if b.RuleDef != nil {
387 implicitDeps = append(valueList(b.RuleDef.CommandDeps, pkgNames, inputEscaper), implicitDeps...)
388 …orderOnlyDeps = append(valueList(b.RuleDef.CommandOrderOnly, pkgNames, inputEscaper), orderOnlyDep…
398 for argVar, value := range b.Args {
402 err = writeVariables(nw, b.Variables, pkgNames)
420 if !b.Optional {