Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: tools/gn/function_foreach.cc

Issue 420443003: GN foreach should mark the list identifier as used. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/BUILD.gn ('k') | tools/gn/function_foreach_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/function_foreach.cc
diff --git a/tools/gn/function_foreach.cc b/tools/gn/function_foreach.cc
index 40f389234cf6a4bbf95f0d44f1fc210fb56e9174..06a2dc17c156abac86ddb983defe7e88f2683d78 100644
--- a/tools/gn/function_foreach.cc
+++ b/tools/gn/function_foreach.cc
@@ -70,7 +70,7 @@ Value RunForEach(Scope* scope,
const Value* list_value = NULL;
const IdentifierNode* list_identifier = args_vector[1]->AsIdentifier();
if (list_identifier) {
- list_value = scope->GetValue(list_identifier->value().value());
+ list_value = scope->GetValue(list_identifier->value().value(), true);
if (!list_value) {
*err = Err(args_vector[1], "Undefined identifier.");
return Value();
« no previous file with comments | « tools/gn/BUILD.gn ('k') | tools/gn/function_foreach_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698