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

Unified Diff: tools/gn/import_manager.cc

Issue 126033006: GN: Attach the scope provider to imported files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/import_manager.cc
diff --git a/tools/gn/import_manager.cc b/tools/gn/import_manager.cc
index e9e942556661cf29f7ad67e181dbfe557247e8f2..0d87942e1803ab1e8ec803de96971fd1a350d686 100644
--- a/tools/gn/import_manager.cc
+++ b/tools/gn/import_manager.cc
@@ -8,6 +8,7 @@
#include "base/stl_util.h"
#include "tools/gn/parse_tree.h"
#include "tools/gn/scheduler.h"
+#include "tools/gn/scope_per_file_provider.h"
namespace {
@@ -24,6 +25,7 @@ Scope* UncachedImport(const Settings* settings,
CHECK(block);
scoped_ptr<Scope> scope(new Scope(settings->base_config()));
+ ScopePerFileProvider per_file_provider(scope.get());
scope->set_source_dir(file.GetDir());
scope->SetProcessingImport();
block->ExecuteBlockInScope(scope.get(), err);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698