Code::is_valid rection

This commit is contained in:
2024-12-02 00:41:41 -05:00
parent 2b24511f7d
commit f9b5029e64
4 changed files with 7 additions and 151 deletions

View File

@ -133,6 +133,12 @@ bool is_equal( Code self, Code other )
return is_equal( self.ast, other.ast );
}
inline
bool is_valid(Code self)
{
return self.ast != nullptr && self.ast->Type != CodeT::Invalid;
}
inline
Code& Code::operator ++()
{