Lines Matching refs:scope
10 #include "tools/gn/scope.h"
18 // Applies the sources assignment filter from the given scope to each element
21 void AppendFilteredSourcesToValue(const Scope* scope,
24 const PatternList* filter = scope->GetSourcesAssignmentFilter();
95 Value ExecuteEquals(Scope* scope,
100 const Value* old_value = scope->GetValue(left.value(), false);
102 if (scope->IsSetButUnused(left.value())) {
112 err->AppendSubErr(Err(*scope->GetValue(left.value()),
147 Value* set_value = scope->SetValue(left.value(),
150 AppendFilteredSourcesToValue(scope, right, set_value);
153 scope->SetValue(left.value(), right, op_node->right());
160 void ValuePlusEquals(const Scope* scope,
210 AppendFilteredSourcesToValue(scope, right, left);
218 AppendFilteredSourcesToValue(scope, right, left);
239 Value ExecutePlusEquals(Scope* scope,
247 scope->GetValueForcedToCurrentScope(left.value(), op_node);
250 "I don't have something with this name in scope now.");
253 ValuePlusEquals(scope, op_node, left, left_value, right, false, err);
255 scope->MarkUnused(left.value());
295 Value ExecuteMinusEquals(Scope* scope,
301 scope->GetValueForcedToCurrentScope(left.value(), op_node);
304 "I don't have something with this name in scope now.");
309 scope->MarkUnused(left.value());
315 Value ExecutePlus(Scope* scope,
321 ValuePlusEquals(scope, op_node, Token(), &ret, right, true, err);
326 Value ExecuteMinus(Scope* scope,
339 Value ExecuteEqualsEquals(Scope* scope,
349 Value ExecuteNotEquals(Scope* scope,
355 Value result = ExecuteEqualsEquals(scope, op_node, left, right, err);
371 Value ExecuteLessEquals(Scope* scope,
381 Value ExecuteGreaterEquals(Scope* scope,
391 Value ExecuteGreater(Scope* scope,
401 Value ExecuteLess(Scope* scope,
413 Value ExecuteOr(Scope* scope,
422 Value ExecuteAnd(Scope* scope,
475 Value ExecuteUnaryOperator(Scope* scope,
483 Value ExecuteBinaryOperator(Scope* scope,
503 Value right_value = right->Execute(scope, err);
514 return ExecuteEquals(scope, op_node, dest, right_value, err);
516 return ExecutePlusEquals(scope, op_node, dest, right_value, err);
518 return ExecuteMinusEquals(scope, op_node, dest, right_value, err);
524 Value left_value = left->Execute(scope, err);
536 Value right_value = right->Execute(scope, err);
548 return ExecuteMinus(scope, op_node, left_value, right_value, err);
550 return ExecutePlus(scope, op_node, left_value, right_value, err);
554 return ExecuteEqualsEquals(scope, op_node, left_value, right_value, err);
556 return ExecuteNotEquals(scope, op_node, left_value, right_value, err);
558 return ExecuteGreaterEquals(scope, op_node, left_value, right_value, err);
560 return ExecuteLessEquals(scope, op_node, left_value, right_value, err);
562 return ExecuteGreater(scope, op_node, left_value, right_value, err);
564 return ExecuteLess(scope, op_node, left_value, right_value, err);
568 return ExecuteOr(scope, op_node, left_value, right_value, err);
570 return ExecuteAnd(scope, op_node, left_value, right_value, err);