mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:02:43 +00:00 
			
		
		
		
	 3aec6952a2
			
		
	
	
		3aec6952a2
		
	
	
	
	
		
			
			For some reason I was afraid to add trivial accessors to classes in earlier PRs, so we now have dozens of classes with public fields. I'm not exactly looking forward to refactoring them all at once but I'll do so gradually.
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			388 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			388 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * 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->functions_to_compile()) {
 | |
|         m_function = function;
 | |
|         process_function();
 | |
|     }
 | |
| }
 | |
| 
 | |
| }
 |