mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* use new formatter for ERROR_PRINT, added ERROR_PRINTLN * remove old log define * fix comments
24 lines
616 B
C++
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
|