polserver/pol-core/bscript/compiler/ast/MethodCall.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

33 lines
737 B
C++

#ifndef POLSERVER_METHODCALL_H
#define POLSERVER_METHODCALL_H
#include "bscript/compiler/ast/Expression.h"
#ifndef OBJMETHODS_H
#include "objmethods.h"
#endif
namespace Pol::Bscript::Compiler
{
class Expression;
class MethodCallArgumentList;
class MethodCall : public Expression
{
public:
MethodCall( const SourceLocation&, std::unique_ptr<Expression> lhs, std::string methodname,
std::unique_ptr<MethodCallArgumentList> );
void accept( NodeVisitor& ) override;
void describe_to( std::string& ) const override;
unsigned argument_count() const;
const std::string methodname;
const Pol::Bscript::ObjMethod* const known_method;
};
} // namespace Pol::Bscript::Compiler
#endif // POLSERVER_METHODCALL_H