Home | History | Annotate | Download | only in gn

Lines Matching refs:Defined

131     "  assert(defined(sources), \"Sources must be defined\")\n";
305 // defined ---------------------------------------------------------------------
307 const char kDefined[] = "defined";
309 "defined: Returns whether an identifier is defined.";
311 "defined: Returns whether an identifier is defined.\n"
313 " Returns true if the given argument is defined. This is most useful in\n"
317 " defined(foo)\n"
318 " which will return true or false depending on whether foo is defined in\n"
322 " defined(foo.bar)\n"
323 " which returns true if both foo is defined and bar is defined on the\n"
324 " named scope foo. It will throw an error if foo is defined but is not\n"
331 " assert(defined(invoker.sources), \"Sources must be defined\")\n"
334 " # want to dereference something that may not be defined.\n"
335 " if (defined(invoker.values)) {\n"
348 *err = Err(function, "Wrong number of arguments to defined().",
355 // Passed an identifier "defined(foo)".
363 // Passed an accessor "defined(foo.bar)".
365 // The base of the accessor must be a scope if it's defined.
372 // Check the member inside the scope to see if its defined.
380 *err = Err(function, "Bad thing passed to defined().",
381 "It should be of the form defined(foo) or defined(foo.bar).");
658 INSERT_FUNCTION(Defined, false)