mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +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
|
@ -16,11 +16,13 @@
|
|||
namespace JSSpecCompiler {
|
||||
|
||||
struct TranslationUnit {
|
||||
FunctionDefinitionRef adopt_function(NonnullRefPtr<FunctionDefinition>&& function);
|
||||
void adopt_declaration(NonnullRefPtr<FunctionDeclaration>&& declaration);
|
||||
FunctionDefinitionRef adopt_function(NonnullRefPtr<FunctionDefinition>&& definition);
|
||||
|
||||
StringView filename;
|
||||
Vector<NonnullRefPtr<FunctionDefinition>> function_definitions;
|
||||
HashMap<StringView, FunctionPointerRef> function_index;
|
||||
Vector<FunctionDefinitionRef> functions_to_compile;
|
||||
Vector<NonnullRefPtr<FunctionDeclaration>> declarations_owner;
|
||||
HashMap<StringView, FunctionDeclarationRef> function_index;
|
||||
};
|
||||
|
||||
class FunctionDeclaration : public RefCounted<FunctionDeclaration> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue