2020-09-06 00:13:49 -07:00
|
|
|
#ifndef POLSERVER_ARRAYINITIALIZER_H
|
|
|
|
|
#define POLSERVER_ARRAYINITIALIZER_H
|
|
|
|
|
|
2021-02-25 16:53:22 +01:00
|
|
|
#include "bscript/compiler/ast/Expression.h"
|
2020-09-06 00:13:49 -07:00
|
|
|
|
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
|
|
|
{
|
|
|
|
|
class ArrayInitializer : public Expression
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ArrayInitializer( const SourceLocation&, std::vector<std::unique_ptr<Expression>> );
|
|
|
|
|
|
|
|
|
|
void accept( NodeVisitor& ) override;
|
2024-01-12 06:51:44 +01:00
|
|
|
void describe_to( std::string& ) const override;
|
2020-09-06 00:13:49 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Pol::Bscript::Compiler
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // POLSERVER_ARRAYINITIALIZER_H
|