mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* all except pol * pol and includes under defines * something weird has happened * remove own folder from include searchpath * fixed remaining, adapted include style for external headers * missing include
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
#ifndef POLSERVER_MEMBERASSIGNMENTBYOPERATOR_H
|
|
#define POLSERVER_MEMBERASSIGNMENTBYOPERATOR_H
|
|
|
|
#include "bscript/compiler/ast/Expression.h"
|
|
|
|
#ifndef OBJMEMBERS_H
|
|
#include "bscript/objmembers.h"
|
|
#endif
|
|
|
|
#ifndef __TOKENS_H
|
|
#include "bscript/tokens.h"
|
|
#endif
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
class MemberAssignmentByOperator : public Expression
|
|
{
|
|
public:
|
|
MemberAssignmentByOperator( const SourceLocation&, bool consume,
|
|
std::unique_ptr<Expression> entity, std::string name, BTokenId,
|
|
std::unique_ptr<Expression> rhs, const Pol::Bscript::ObjMember& );
|
|
MemberAssignmentByOperator( const SourceLocation&, bool consume,
|
|
std::unique_ptr<Expression> entity, std::string name, BTokenId,
|
|
const Pol::Bscript::ObjMember& );
|
|
|
|
void accept( NodeVisitor& ) override;
|
|
void describe_to( std::string& ) const override;
|
|
|
|
const bool consume;
|
|
const std::string name;
|
|
const BTokenId token_id;
|
|
// does the semantic analyze known enough to know something is being assigned to?
|
|
const Pol::Bscript::ObjMember& known_member;
|
|
};
|
|
|
|
} // namespace Pol::Bscript::Compiler
|
|
|
|
#endif // POLSERVER_MEMBERASSIGNMENTBYOPERATOR_H
|