• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2025 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.
4 
5 #ifndef MODULE_H_
6 #define MODULE_H_
7 
8 #include "gn/graph/include/node.h"
9 #include "gn/item.h"
10 
11 class Item;
12 
13 class Module : public Node {
14 public:
15 
16     Module(const std::string& name, const std::string& path, const Item* item);
17     ~Module();
18 
19     const Item* GetItem() const;
20     bool operator==(const Module& other) const {
21         return this->GetName() == other.GetName();
22     }
23 
24 private:
25     const Item* item_;
26 };
27 
28 #endif // MODULE_H_
29