2020-09-05 20:41:58 -07:00
|
|
|
#include "CaseDispatchSelectors.h"
|
|
|
|
|
|
|
|
|
|
|
2021-02-25 16:53:22 +01:00
|
|
|
#include "bscript/compiler/ast/NodeVisitor.h"
|
2020-09-05 20:41:58 -07:00
|
|
|
|
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
|
|
|
{
|
|
|
|
|
CaseDispatchSelectors::CaseDispatchSelectors( const SourceLocation& source_location,
|
|
|
|
|
NodeVector children )
|
|
|
|
|
: Node( source_location, std::move( children ) )
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CaseDispatchSelectors::accept( NodeVisitor& visitor )
|
|
|
|
|
{
|
|
|
|
|
visitor.visit_case_dispatch_selectors( *this );
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-12 06:51:44 +01:00
|
|
|
void CaseDispatchSelectors::describe_to( std::string& w ) const
|
2020-09-05 20:41:58 -07:00
|
|
|
{
|
2024-01-12 06:51:44 +01:00
|
|
|
w += "case-dispatch-selectors";
|
2020-09-05 20:41:58 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Pol::Bscript::Compiler
|