Lines Matching refs:err
12 #include "tools/gn/err.h"
25 void FillNeedsBlockError(const FunctionCallNode* function, Err* err) {
26 *err = Err(function->function(), "This function call requires a block.",
38 Err* err) {
39 if (!EnsureNotProcessingImport(invocation, scope, err))
44 block, args, &block_scope, err))
48 block->ExecuteBlockInScope(&block_scope, err);
49 if (err->has_error())
53 rule->block()->ExecuteBlockInScope(&block_scope, err);
54 if (err->has_error())
66 Err* err) {
68 *err = Err(node, "Not valid from an import.",
81 Err* err) {
83 *err = Err(node, "Not valid from the build config.",
97 Err* err) {
99 FillNeedsBlockError(function, err);
108 "target defaults", err))
113 if (!EnsureSingleStringArg(function, args, err))
127 Err* err) {
129 *err = Err(function->function(), "Incorrect arguments.",
133 return args[0].VerifyTypeIs(Value::STRING, err);
163 Err* err) {
165 *err = Err(function->function(), "Wrong number of arguments.",
169 *err = Err(function->function(), "Assertion failed.");
184 err->AppendSubErr(Err(args[0].origin()->GetRange(), "",
201 Err* err) {
202 if (!EnsureSingleStringArg(function, args, err) ||
203 !EnsureNotProcessingImport(function, scope, err))
214 label, NULL, err);
215 if (err->has_error())
221 function->function(), input_dir, err);
223 if (err->has_error())
230 err);
244 Err* err) {
249 *err = Err(function->function(), "Duplicate call to declared_args.");
250 err->AppendSubErr(
251 Err(scope->GetValue(did_declare_args_var)->origin()->GetRange(),
259 *err = Err(function->function(), "declare_args called incorrectly."
317 Err* err) {
318 if (!EnsureSingleStringArg(function, args, err) ||
319 !EnsureNotProcessingImport(function, scope, err))
326 scope, err);
340 Err* err) {
341 if (!EnsureSingleStringArg(function, args, err))
347 *err = Err(function->function(),
357 block, args, &block_scope, err))
361 block->ExecuteBlockInScope(&block_scope, err);
362 if (err->has_error())
368 block_scope.NonRecursiveMergeTo(dest, function, "<SHOULD NOT FAIL>", err);
381 Err* err) {
383 *err = Err(function, "set_sources_assignment_filter takes one argument.");
386 f->SetFromValue(args[0], err);
387 if (!err->has_error())
415 Err* err) {
504 Err* err) {
515 return RunTemplateInvocation(scope, function, args, block, rule, err);
517 *err = Err(name, "Unknown function.");
523 FillNeedsBlockError(function, err);
527 scope, function, args, block, err);
532 FillNeedsBlockError(function, err);
537 block->ExecuteBlockInScope(&block_scope, err);
538 if (err->has_error())
541 function, args, &block_scope, err);
545 return found_function->second.no_block_runner(scope, function, args, err);