1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "tools/gn/item.h"
7 #include "base/logging.h"
8 #include "tools/gn/settings.h"
10 Item::Item(const Settings
* settings
, const Label
& label
)
11 : settings_(settings
), label_(label
), defined_from_(nullptr) {
17 Config
* Item::AsConfig() {
20 const Config
* Item::AsConfig() const {
23 Target
* Item::AsTarget() {
26 const Target
* Item::AsTarget() const {
29 Toolchain
* Item::AsToolchain() {
32 const Toolchain
* Item::AsToolchain() const {
36 std::string
Item::GetItemTypeName() const {
44 return "this thing that I have no idea what it is";
47 bool Item::OnResolved(Err
* err
) {