mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
JSSpecCompiler: Make TranslationUnit fields private
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.
This commit is contained in:
parent
a2f7849238
commit
3aec6952a2
Notes:
sideshowbarker
2024-07-16 21:42:29 +09:00
Author: https://github.com/DanShaders
Commit: 3aec6952a2
Pull-request: https://github.com/SerenityOS/serenity/pull/22794
Reviewed-by: https://github.com/ADKaster ✅
8 changed files with 46 additions and 24 deletions
|
@ -234,7 +234,7 @@ CppParsingStep::~CppParsingStep() = default;
|
|||
|
||||
void CppParsingStep::run(TranslationUnitRef translation_unit)
|
||||
{
|
||||
auto filename = translation_unit->filename;
|
||||
auto filename = translation_unit->filename();
|
||||
|
||||
auto file = Core::File::open_file_or_standard_stream(filename, Core::File::OpenMode::Read).release_value_but_fixme_should_propagate_errors();
|
||||
m_input = file->read_until_eof().release_value_but_fixme_should_propagate_errors();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue