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);
153 Value BlockNode::Execute(Scope* containing_scope, Err* err) const {
155 Scope our_scope(containing_scope);
160 // Check for unused vars in the scope.
189 Value BlockNode::ExecuteBlockInScope(Scope* our_scope, Err* err) const {
217 Value ConditionNode::Execute(Scope* scope, Err* err) const {
218 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 return functions::RunFunction(scope, this, args_.get(), block_.get(), err);
316 Value IdentifierNode::Execute(Scope* scope, Err* err) const {
317 const Value* result = scope->GetValue(value_.value(), true);
351 Value ListNode::Execute(Scope* scope, Err* err) const {
358 results[i] = cur->Execute(scope, err);
401 Value LiteralNode::Execute(Scope* scope, Err* err) const {
417 ExpandStringLiteral(scope, value_, &v, err);
451 Value UnaryOpNode::Execute(Scope* scope, Err* err) const {
452 Value operand_value = operand_->Execute(scope, err);
455 return ExecuteUnaryOperator(scope, this, operand_value, err);