diff options
author | John Hodge <tpg@mutabah.net> | 2016-05-24 13:34:01 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-05-24 13:34:01 +0800 |
commit | ba6f4df093bc8bfc330b2205279f3f0fca225e77 (patch) | |
tree | 685633cde5f8ccc24675a18564cc818cc7e2dec9 /src/ast/ast.hpp | |
parent | b96c1a08cec9be6cc29f47eb151c3ad91075a819 (diff) | |
download | mrust-ba6f4df093bc8bfc330b2205279f3f0fca225e77.tar.gz |
HIR Lower - Lower impl blocks
Diffstat (limited to 'src/ast/ast.hpp')
-rw-r--r-- | src/ast/ast.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ast/ast.hpp b/src/ast/ast.hpp index d1e8c6a2..8b42c0bb 100644 --- a/src/ast/ast.hpp +++ b/src/ast/ast.hpp @@ -202,6 +202,7 @@ class Trait: GenericParams m_params;
::std::vector<AST::Path> m_supertraits;
+ bool m_is_marker;
NamedList<Item> m_items;
public:
Trait() {}
@@ -223,6 +224,9 @@ public: void add_function(::std::string name, Function fcn);
void add_static(::std::string name, Static v);
+ void set_is_marker();
+ bool is_marker() const;
+
bool has_named_item(const ::std::string& name, bool& out_is_fcn) const;
SERIALISABLE_PROTOTYPES();
|