mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
32 lines
891 B
C++
32 lines
891 B
C++
#ifndef POLSERVER_FUNCTIONPARAMETERDECLARATION_H
|
|
#define POLSERVER_FUNCTIONPARAMETERDECLARATION_H
|
|
|
|
#include "bscript/compiler/ast/Node.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
class NodeVisitor;
|
|
class Expression;
|
|
|
|
class FunctionParameterDeclaration : public Node
|
|
{
|
|
public:
|
|
FunctionParameterDeclaration( const SourceLocation& source_location, std::string name, bool byref,
|
|
bool unused, std::unique_ptr<Expression> default_value );
|
|
FunctionParameterDeclaration( const SourceLocation& source_location, std::string name, bool byref,
|
|
bool unused );
|
|
|
|
void accept( NodeVisitor& visitor ) override;
|
|
void describe_to( fmt::Writer& ) const override;
|
|
|
|
Expression* default_value();
|
|
|
|
const std::string name;
|
|
const bool byref;
|
|
const bool unused;
|
|
};
|
|
|
|
} // namespace Pol::Bscript::Compiler
|
|
|
|
|
|
#endif // POLSERVER_FUNCTIONPARAMETERDECLARATION_H
|