// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "tools/gn/template.h" #include "tools/gn/err.h" #include "tools/gn/functions.h" #include "tools/gn/parse_tree.h" #include "tools/gn/scope.h" #include "tools/gn/value.h" Template::Template(const Scope* scope, const FunctionCallNode* def) : closure_(scope->MakeClosure()), definition_(def) { } Template::Template(scoped_ptr scope, const FunctionCallNode* def) : closure_(scope.Pass()), definition_(def) { } Template::~Template() { } scoped_ptr