OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | |
5 #include "tools/gn/item.h" | 4 #include "tools/gn/item.h" |
6 | 5 |
7 #include "base/logging.h" | 6 #include "base/logging.h" |
8 #include "tools/gn/settings.h" | 7 #include "tools/gn/settings.h" |
9 | 8 |
10 Item::Item(const Settings* settings, const Label& label) | 9 Item::Item(const Settings* settings, |
11 : settings_(settings), label_(label), defined_from_(nullptr) { | 10 const Label& label, |
12 } | 11 const InputFileSet& input_files) |
| 12 : settings_(settings), |
| 13 label_(label), |
| 14 defined_from_(nullptr), |
| 15 input_files_(input_files) {} |
13 | 16 |
14 Item::~Item() { | 17 Item::~Item() { |
15 } | 18 } |
16 | 19 |
17 Config* Item::AsConfig() { | 20 Config* Item::AsConfig() { |
18 return nullptr; | 21 return nullptr; |
19 } | 22 } |
20 const Config* Item::AsConfig() const { | 23 const Config* Item::AsConfig() const { |
21 return nullptr; | 24 return nullptr; |
22 } | 25 } |
(...skipping 25 matching lines...) Expand all Loading... |
48 return "toolchain"; | 51 return "toolchain"; |
49 if (AsPool()) | 52 if (AsPool()) |
50 return "pool"; | 53 return "pool"; |
51 NOTREACHED(); | 54 NOTREACHED(); |
52 return "this thing that I have no idea what it is"; | 55 return "this thing that I have no idea what it is"; |
53 } | 56 } |
54 | 57 |
55 bool Item::OnResolved(Err* err) { | 58 bool Item::OnResolved(Err* err) { |
56 return true; | 59 return true; |
57 } | 60 } |
OLD | NEW |