Lines Matching refs:scope
25 Value RunTemplateInvocation(Scope* scope, in RunTemplateInvocation() argument
31 if (!EnsureNotProcessingImport(invocation, scope, err)) in RunTemplateInvocation()
34 Scope block_scope(scope); in RunTemplateInvocation()
35 if (!FillTargetBlockScope(scope, invocation, in RunTemplateInvocation()
59 const Scope* scope, in EnsureNotProcessingImport() argument
61 if (scope->IsProcessingImport()) { in EnsureNotProcessingImport()
72 const Scope* scope, in EnsureNotProcessingBuildConfig() argument
74 if (scope->IsProcessingBuildConfig()) { in EnsureNotProcessingBuildConfig()
83 bool FillTargetBlockScope(const Scope* scope, in FillTargetBlockScope() argument
97 const Scope* default_scope = scope->GetTargetDefaults(target_type); in FillTargetBlockScope()
134 const Label& ToolchainLabelForScope(const Scope* scope) { in ToolchainLabelForScope() argument
135 return scope->settings()->toolchain_label(); in ToolchainLabelForScope()
138 Label MakeLabelForScope(const Scope* scope, in MakeLabelForScope() argument
141 const Label& toolchain_label = ToolchainLabelForScope(scope); in MakeLabelForScope()
142 return Label(scope->GetSourceDir(), name, toolchain_label.dir(), in MakeLabelForScope()
164 Value RunAssert(Scope* scope, in RunAssert() argument
253 Scope* scope, in RunConfig() argument
256 !EnsureNotProcessingImport(function, scope, err)) in RunConfig()
259 Label label(MakeLabelForScope(scope, function, args[0].string_value())); in RunConfig()
265 scoped_ptr<Config> config(new Config(scope->settings(), label)); in RunConfig()
269 const SourceDir& input_dir = scope->GetSourceDir(); in RunConfig()
270 ConfigValuesGenerator gen(&config->config_values(), scope, input_dir, err); in RunConfig()
276 scope->settings()->build_settings()->ItemDefined(config.PassAs<Item>()); in RunConfig()
304 Value RunDeclareArgs(Scope* scope, in RunDeclareArgs() argument
309 Scope block_scope(scope); in RunDeclareArgs()
319 scope->settings()->build_settings()->build_args().DeclareArgs( in RunDeclareArgs()
320 values, scope, err); in RunDeclareArgs()
346 Value RunDefined(Scope* scope, in RunDefined() argument
359 if (scope->GetValue(identifier->value().value())) in RunDefined()
397 Value RunImport(Scope* scope, in RunImport() argument
404 const SourceDir& input_dir = scope->GetSourceDir(); in RunImport()
407 scope->settings()->import_manager().DoImport(import_file, function, in RunImport()
408 scope, err); in RunImport()
439 Value RunSetSourcesAssignmentFilter(Scope* scope, in RunSetSourcesAssignmentFilter() argument
449 scope->set_sources_assignment_filter(f.Pass()); in RunSetSourcesAssignmentFilter()
473 Value RunPrint(Scope* scope, in RunPrint() argument
577 Value RunFunction(Scope* scope, in RunFunction() argument
590 scope->GetTemplate(function->function().value().as_string()); in RunFunction()
592 Value args = args_list->Execute(scope, err); in RunFunction()
595 return RunTemplateInvocation(scope, function, args.list_value(), block, in RunFunction()
605 scope, function, args_list, err); in RunFunction()
609 Value args = args_list->Execute(scope, err); in RunFunction()
619 scope, function, args.list_value(), block, err); in RunFunction()
628 Scope block_scope(scope); in RunFunction()
637 return found_function->second.no_block_runner(scope, function, in RunFunction()