Change next_proto member type.
[chromium-blink-merge.git] / tools / gn / item.cc
bloba1118e8285fdb4a61efae2e45cd465166332a202
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),
12 label_(label),
13 defined_from_(NULL) {
16 Item::~Item() {
19 Config* Item::AsConfig() { return NULL; }
20 const Config* Item::AsConfig() const { return NULL; }
21 Target* Item::AsTarget() { return NULL; }
22 const Target* Item::AsTarget() const { return NULL; }
23 Toolchain* Item::AsToolchain() { return NULL; }
24 const Toolchain* Item::AsToolchain() const { return NULL; }
26 std::string Item::GetItemTypeName() const {
27 if (AsConfig())
28 return "config";
29 if (AsTarget())
30 return "target";
31 if (AsToolchain())
32 return "toolchain";
33 NOTREACHED();
34 return "this thing that I have no idea what it is";
37 bool Item::OnResolved(Err* err) {
38 return true;