Home | History | Annotate | Download | only in gn

Lines Matching refs:Scope

5 #include "tools/gn/scope.h"
13 // FLags set in the mode_flags_ of a scope. If a bit is set, it applies
21 Scope::Scope(const Settings* settings)
28 Scope::Scope(Scope* parent)
35 Scope::Scope(const Scope* parent)
42 Scope::~Scope() {
47 const Value* Scope::GetValue(const base::StringPiece& ident,
64 // Search in the parent scope.
72 Value* Scope::GetValueForcedToCurrentScope(const base::StringPiece& ident,
76 return &found->second.value; // Already have in the current scope.
78 // Search in the parent scope.
82 // Promote to current scope.
89 const Value* Scope::GetValue(const base::StringPiece& ident) const {
98 Value* Scope::SetValue(const base::StringPiece& ident,
107 bool Scope::AddTemplate(const std::string& name, const FunctionCallNode* decl) {
114 const FunctionCallNode* Scope::GetTemplate(const std::string& name) const {
123 void Scope::MarkUsed(const base::StringPiece& ident) {
132 void Scope::MarkUnused(const base::StringPiece& ident) {
141 bool Scope::IsSetButUnused(const base::StringPiece& ident) const {
151 bool Scope::CheckForUnusedVars(Err* err) const {
156 "\" here and it was unused before it went\nout of scope.";
173 void Scope::GetCurrentScopeValues(KeyValueVector* output) const {
180 bool Scope::NonRecursiveMergeTo(Scope* dest,
193 "Which would clobber the one in your current scope"));
213 "same target type in your current scope. It's unfortunate that I'm "
219 Scope* s = new Scope(settings_);
231 "would clobber the one in your current scope.");
248 "Which would clobber the one in your current scope"));
260 Scope* Scope::MakeTargetDefaults(const std::string& target_type) {
264 Scope** dest = &target_defaults_[target_type];
269 *dest = new Scope(settings_);
273 const Scope* Scope::GetTargetDefaults(const std::string& target_type) const {
282 const PatternList* Scope::GetSourcesAssignmentFilter() const {
290 void Scope::SetProcessingBuildConfig() {
295 void Scope::ClearProcessingBuildConfig() {
300 bool Scope::IsProcessingBuildConfig() const {
308 void Scope::SetProcessingDefaultBuildConfig() {
313 void Scope::ClearProcessingDefaultBuildConfig() {
318 bool Scope::IsProcessingDefaultBuildConfig() const {
326 void Scope::SetProcessingImport() {
331 void Scope::ClearProcessingImport() {
336 bool Scope::IsProcessingImport() const {
344 void Scope::SetProperty(const void* key, void* value) {
353 void* Scope::GetProperty(const void* key, const Scope** found_on_scope) const {
365 void Scope::AddProvider(ProgrammaticProvider* p) {
369 void Scope::RemoveProvider(ProgrammaticProvider* p) {