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

Unified Diff: tools/gn/scope.h

Issue 223783005: Add support for reading .gypi files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
Index: tools/gn/scope.h
diff --git a/tools/gn/scope.h b/tools/gn/scope.h
index 82e037fe39e101aeb9de70f5930a8351097d1f92..e25283accbeb6f4883a037187b58aa87d9da9666 100644
--- a/tools/gn/scope.h
+++ b/tools/gn/scope.h
@@ -150,9 +150,10 @@ class Scope {
// the error and returns false if they were.
bool CheckForUnusedVars(Err* err) const;
- // Returns all values set in the current scope, without going to the parent
- // scopes.
+ // Returns all key/values or just the keys set in the current scope,
+ // without going to the parent scopes.
void GetCurrentScopeValues(KeyValueMap* output) const;
+ void GetCurrentScopeKeys(std::vector<base::StringPiece>* output) const;
// Copies this scope's values into the destination. Values from the
// containing scope(s) (normally shadowed into the current one) will not be

Powered by Google App Engine
This is Rietveld 408576698