Home | History | Annotate | Download | only in gn

Lines Matching defs:Scope

5 #include "tools/gn/scope.h"
13 // FLags set in the mode_flags_ of a scope. If a bit is set, it applies
20 Scope::Scope(const Settings* settings)
27 Scope::Scope(Scope* parent)
34 Scope::Scope(const Scope* parent)
41 Scope::~Scope() {
46 const Value* Scope::GetValue(const base::StringPiece& ident,
63 // Search in the parent scope.
71 Value* Scope::GetValueForcedToCurrentScope(const base::StringPiece& ident,
75 return &found->second.value; // Already have in the current scope.
77 // Search in the parent scope.
81 // Promote to current scope.
88 const Value* Scope::GetValue(const base::StringPiece& ident) const {
97 Value* Scope::SetValue(const base::StringPiece& ident,
106 bool Scope::AddTemplate(const std::string& name, const FunctionCallNode* decl) {
113 const FunctionCallNode* Scope::GetTemplate(const std::string& name) const {
122 void Scope::MarkUsed(const base::StringPiece& ident) {
131 void Scope::MarkUnused(const base::StringPiece& ident) {
140 bool Scope::IsSetButUnused(const base::StringPiece& ident) const {
150 bool Scope::CheckForUnusedVars(Err* err) const {
155 "\" here and it was unused before it went\nout of scope.";
172 void Scope::GetCurrentScopeValues(KeyValueMap* output) const {
177 bool Scope::NonRecursiveMergeTo(Scope* dest,
191 "Which would clobber the one in your current scope"));
211 "same target type in your current scope. It's unfortunate that I'm "
217 Scope* s = new Scope(settings_);
229 "would clobber the one in your current scope.");
246 "Which would clobber the one in your current scope"));
258 Scope* Scope::MakeTargetDefaults(const std::string& target_type) {
262 Scope** dest = &target_defaults_[target_type];
267 *dest = new Scope(settings_);
271 const Scope* Scope::GetTargetDefaults(const std::string& target_type) const {
280 const PatternList* Scope::GetSourcesAssignmentFilter() const {
288 void Scope::SetProcessingBuildConfig() {
293 void Scope::ClearProcessingBuildConfig() {
298 bool Scope::IsProcessingBuildConfig() const {
306 void Scope::SetProcessingImport() {
311 void Scope::ClearProcessingImport() {
316 bool Scope::IsProcessingImport() const {
324 const SourceDir& Scope::GetSourceDir() const {
332 void Scope::SetProperty(const void* key, void* value) {
341 void* Scope::GetProperty(const void* key, const Scope** found_on_scope) const {
353 void Scope::AddProvider(ProgrammaticProvider* p) {
357 void Scope::RemoveProvider(ProgrammaticProvider* p) {