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

Unified Diff: tools/gn/scope.cc

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.cc
diff --git a/tools/gn/scope.cc b/tools/gn/scope.cc
index 78612f2c64b555c241cd11979231f8e8494f4220..325d0cfde5eb2a8941e1db43d742328ba4d5ba27 100644
--- a/tools/gn/scope.cc
+++ b/tools/gn/scope.cc
@@ -192,6 +192,11 @@ void Scope::GetCurrentScopeValues(KeyValueMap* output) const {
(*output)[i->first] = i->second.value;
}
+void Scope::GetCurrentScopeKeys(std::vector<base::StringPiece>* output) const {
+ for (RecordMap::const_iterator i = values_.begin(); i != values_.end(); ++i)
+ output->push_back(i->first);
+}
+
bool Scope::NonRecursiveMergeTo(Scope* dest,
bool clobber_existing,
const ParseNode* node_for_err,

Powered by Google App Engine
This is Rietveld 408576698