Lines Matching refs:scope
9 #include "tools/gn/scope.h"
19 // the toolchain property on a scope.
22 // Reads the given string from the scope (if present) and puts the result into
24 bool ReadString(Scope& scope, const char* var, std::string* dest, Err* err) {
25 const Value* v = scope.GetValue(var, true);
89 Value RunToolchain(Scope* scope,
94 if (!EnsureNotProcessingImport(function, scope, err) ||
95 !EnsureNotProcessingBuildConfig(function, scope, err))
101 const SourceDir& input_dir = scope->GetSourceDir();
108 scoped_ptr<Toolchain> toolchain(new Toolchain(scope->settings(), label));
112 Scope block_scope(scope);
123 Scope::ItemVector* collector = scope->GetItemCollector();
187 Value RunTool(Scope* scope,
195 scope->GetProperty(&kToolchainPropertyKey, NULL));
213 Scope block_scope(scope);
280 Value RunToolchainArgs(Scope* scope,
288 scope->GetProperty(&kToolchainPropertyKey, NULL));
302 // This function makes a new scope with various variable sets on it, which
304 Scope block_scope(scope);
309 Scope::KeyValueMap values;