mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +00:00
JSSpecCompiler: Create FunctionDeclaration
s for all external functions
This commit is contained in:
parent
5338cdd153
commit
7f47340c82
8 changed files with 32 additions and 35 deletions
|
@ -497,17 +497,12 @@ protected:
|
|||
|
||||
class FunctionPointer : public Expression {
|
||||
public:
|
||||
FunctionPointer(StringView function_name)
|
||||
: m_function(function_name)
|
||||
FunctionPointer(FunctionDeclarationRef declaration)
|
||||
: m_declaration(declaration)
|
||||
{
|
||||
}
|
||||
|
||||
FunctionPointer(FunctionDefinitionRef function_definition)
|
||||
: m_function(function_definition)
|
||||
{
|
||||
}
|
||||
|
||||
Variant<StringView, FunctionDefinitionRef> m_function;
|
||||
FunctionDeclarationRef m_declaration;
|
||||
|
||||
protected:
|
||||
void dump_tree(StringBuilder& builder) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue