polserver/pol-core/bscript/compiler/ast/StructMemberInitializer.h
turleypol 0e675c516a
use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595)
* use new formatter for ERROR_PRINT, added ERROR_PRINTLN

* remove old log define

* fix comments
2024-01-12 06:51:44 +01:00

24 lines
616 B
C++

#ifndef POLSERVER_STRUCTMEMBERINITIALIZER_H
#define POLSERVER_STRUCTMEMBERINITIALIZER_H
#include "bscript/compiler/ast/Node.h"
namespace Pol::Bscript::Compiler
{
class Expression;
class StructMemberInitializer : public Node
{
public:
StructMemberInitializer( const SourceLocation&, std::string name );
StructMemberInitializer( const SourceLocation&, std::string name, std::unique_ptr<Expression> );
void accept( NodeVisitor& ) override;
void describe_to( std::string& ) const override;
const std::string name;
};
} // namespace Pol::Bscript::Compiler
#endif // POLSERVER_STRUCTMEMBERINITIALIZER_H