1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:48:14 +00:00

JSSpecCompiler: Refactor CompilerPass to accept TranslationUnitRef

This commit is contained in:
Dan Klishch 2023-09-29 19:43:19 -04:00 committed by Andrew Kaster
parent 24682f5dcf
commit 61fa00d46c
8 changed files with 48 additions and 13 deletions

View file

@ -0,0 +1,20 @@
/*
* Copyright (c) 2023, Dan Klishch <danilklishch@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "Compiler/CompilerPass.h"
#include "Function.h"
namespace JSSpecCompiler {
void IntraproceduralCompilerPass::run()
{
for (auto const& function : m_translation_unit->function_definitions) {
m_function = function;
process_function();
}
}
}