Lines Matching refs:err
117 err := nw.Comment(p.Comment)
118 if err != nil {
119 return err
123 err := nw.Pool(name)
124 if err != nil {
125 return err
159 value, err := parseNinjaString(scope, params.Command)
160 if err != nil {
161 return nil, fmt.Errorf("error parsing Command param: %s", err)
166 value, err = parseNinjaString(scope, params.Depfile)
167 if err != nil {
168 return nil, fmt.Errorf("error parsing Depfile param: %s", err)
178 value, err = parseNinjaString(scope, params.Description)
179 if err != nil {
180 return nil, fmt.Errorf("error parsing Description param: %s", err)
194 value, err = parseNinjaString(scope, params.Rspfile)
195 if err != nil {
196 return nil, fmt.Errorf("error parsing Rspfile param: %s", err)
202 value, err = parseNinjaString(scope, params.RspfileContent)
203 if err != nil {
205 err)
211 value, err = parseNinjaString(scope, strings.Join(params.SymlinkOutputs, " "))
212 if err != nil {
214 err)
219 r.CommandDeps, err = parseNinjaStrings(scope, params.CommandDeps)
220 if err != nil {
221 return nil, fmt.Errorf("error parsing CommandDeps param: %s", err)
224 r.CommandOrderOnly, err = parseNinjaStrings(scope, params.CommandOrderOnly)
225 if err != nil {
226 return nil, fmt.Errorf("error parsing CommandDeps param: %s", err)
236 err := nw.Comment(r.Comment)
237 if err != nil {
238 return err
242 err := nw.Rule(name)
243 if err != nil {
244 return err
248 err = nw.ScopedAssign("pool", r.Pool.fullName(pkgNames))
249 if err != nil {
250 return err
254 err = writeVariables(nw, r.Variables, pkgNames)
255 if err != nil {
256 return err
304 var err error
305 b.Outputs, err = parseNinjaStrings(scope, params.Outputs)
306 if err != nil {
307 return nil, fmt.Errorf("error parsing Outputs param: %s", err)
310 b.ImplicitOutputs, err = parseNinjaStrings(scope, params.ImplicitOutputs)
311 if err != nil {
312 return nil, fmt.Errorf("error parsing ImplicitOutputs param: %s", err)
315 b.Inputs, err = parseNinjaStrings(scope, params.Inputs)
316 if err != nil {
317 return nil, fmt.Errorf("error parsing Inputs param: %s", err)
320 b.Implicits, err = parseNinjaStrings(scope, params.Implicits)
321 if err != nil {
322 return nil, fmt.Errorf("error parsing Implicits param: %s", err)
325 b.OrderOnly, err = parseNinjaStrings(scope, params.OrderOnly)
326 if err != nil {
327 return nil, fmt.Errorf("error parsing OrderOnly param: %s", err)
330 b.Validations, err = parseNinjaStrings(scope, params.Validations)
331 if err != nil {
332 return nil, fmt.Errorf("error parsing Validations param: %s", err)
338 value, err := parseNinjaString(scope, params.Depfile)
339 if err != nil {
340 return nil, fmt.Errorf("error parsing Depfile param: %s", err)
350 value, err := parseNinjaString(scope, params.Description)
351 if err != nil {
352 return nil, fmt.Errorf("error parsing Description param: %s", err)
372 argVar, err := argNameScope.LookupVariable(name)
373 if err != nil {
375 return nil, fmt.Errorf("argument lookup error: %s", err)
378 ninjaValue, err := parseNinjaString(scope, value)
379 if err != nil {
381 err)
408 …err := nw.Build(comment, rule, outputs, implicitOuts, explicitDeps, implicitDeps, orderOnlyDeps, v…
409 if err != nil {
410 return err
413 err = writeVariables(nw, b.Variables, pkgNames)
414 if err != nil {
415 return err
431 err = nw.ScopedAssign(pair.name, pair.value)
432 if err != nil {
433 return err
438 err = nw.Default(pkgNames, outputs...)
439 if err != nil {
440 return err
456 err := nw.ScopedAssign(name, variables[name].Value(pkgNames))
457 if err != nil {
458 return err