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.cpp | |
parent | b96c1a08cec9be6cc29f47eb151c3ad91075a819 (diff) | |
download | mrust-ba6f4df093bc8bfc330b2205279f3f0fca225e77.tar.gz |
HIR Lower - Lower impl blocks
Diffstat (limited to 'src/ast/ast.cpp')
-rw-r--r-- | src/ast/ast.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp index 84218591..c7202797 100644 --- a/src/ast/ast.cpp +++ b/src/ast/ast.cpp @@ -530,6 +530,12 @@ void Trait::add_function(::std::string name, Function fcn) { void Trait::add_static(::std::string name, Static v) {
m_items.push_back( Named<Item>(mv$(name), Item::make_Static({mv$(v)}), true) );
}
+void Trait::set_is_marker() {
+ m_is_marker = true;
+}
+bool Trait::is_marker() const {
+ return m_is_marker;
+}
bool Trait::has_named_item(const ::std::string& name, bool& out_is_fcn) const
{
for( const auto& i : m_items )
|