Lines Matching refs:scope
13 #include "tools/gn/scope.h"
55 Value AccessorNode::Execute(Scope* scope, Err* err) const {
56 Value index_value = index_->Execute(scope, err);
62 const Value* base_value = scope->GetValue(base_.value(), true);
121 Value BinaryOpNode::Execute(Scope* scope, Err* err) const {
122 return ExecuteBinaryOperator(scope, this, left_.get(), right_.get(), err);
156 Value BlockNode::Execute(Scope* containing_scope, Err* err) const {
158 Scope our_scope(containing_scope);
163 // Check for unused vars in the scope.
191 Value BlockNode::ExecuteBlockInScope(Scope* our_scope, Err* err) const {
219 Value ConditionNode::Execute(Scope* scope, Err* err) const {
220 Value condition_result = condition_->Execute(scope, err);
232 if_true_->ExecuteBlockInScope(scope, err);
237 // need to be sure it inherits our scope.
240 if_false_block->ExecuteBlockInScope(scope, err);
242 if_false_->Execute(scope, err);
279 Value FunctionCallNode::Execute(Scope* scope, Err* err) const {
280 Value args = args_->Execute(scope, err);
283 return functions::RunFunction(scope, this, args.list_value(), block_.get(),
320 Value IdentifierNode::Execute(Scope* scope, Err* err) const {
321 const Value* result = scope->GetValue(value_.value(), true);
355 Value ListNode::Execute(Scope* scope, Err* err) const {
362 results[i] = cur->Execute(scope, err);
405 Value LiteralNode::Execute(Scope* scope, Err* err) const {
420 ExpandStringLiteral(scope, value_, &v, err);
454 Value UnaryOpNode::Execute(Scope* scope, Err* err) const {
455 Value operand_value = operand_->Execute(scope, err);
458 return ExecuteUnaryOperator(scope, this, operand_value, err);