From 73ba6d77ab3cc45bb19736ad6226c283e453a3d0 Mon Sep 17 00:00:00 2001 From: Dan Klishch Date: Thu, 7 Mar 2024 23:33:36 -0500 Subject: [PATCH] JSSpecCompiler: Rename SpecParser.h to SpecificationParsing.h --- .../Tools/CodeGenerators/JSSpecCompiler/CMakeLists.txt | 2 +- .../CodeGenerators/JSSpecCompiler/Parser/Algorithm.cpp | 2 +- .../JSSpecCompiler/Parser/AlgorithmStep.cpp | 2 +- .../JSSpecCompiler/Parser/AlgorithmStepList.cpp | 2 +- .../JSSpecCompiler/Parser/CppASTConverter.cpp | 2 +- .../Tools/CodeGenerators/JSSpecCompiler/Parser/Lexer.cpp | 2 +- .../JSSpecCompiler/Parser/Specification.cpp | 2 +- .../JSSpecCompiler/Parser/SpecificationClause.cpp | 2 +- .../JSSpecCompiler/Parser/SpecificationFunction.cpp | 2 +- .../Parser/{SpecParser.h => SpecificationParsing.h} | 6 +++--- .../JSSpecCompiler/Parser/SpecificationParsingContext.cpp | 2 +- .../{SpecParsingStep.cpp => SpecificationParsingStep.cpp} | 8 ++++---- .../CodeGenerators/JSSpecCompiler/Parser/TextParser.cpp | 2 +- Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/main.cpp | 4 ++-- 14 files changed, 20 insertions(+), 20 deletions(-) rename Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/{SpecParser.h => SpecificationParsing.h} (97%) rename Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/{SpecParsingStep.cpp => SpecificationParsingStep.cpp} (89%) diff --git a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/CMakeLists.txt b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/CMakeLists.txt index 8a83728460..f8e228e3a6 100644 --- a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/CMakeLists.txt +++ b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/CMakeLists.txt @@ -19,7 +19,7 @@ set(SOURCES Parser/SpecificationClause.cpp Parser/SpecificationFunction.cpp Parser/SpecificationParsingContext.cpp - Parser/SpecParsingStep.cpp + Parser/SpecificationParsingStep.cpp Parser/TextParser.cpp Parser/XMLUtils.cpp DiagnosticEngine.cpp diff --git a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/Algorithm.cpp b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/Algorithm.cpp index e0d4fda5b6..fff0a7a9f1 100644 --- a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/Algorithm.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/Algorithm.cpp @@ -5,7 +5,7 @@ */ #include "Parser/Lexer.h" -#include "Parser/SpecParser.h" +#include "Parser/SpecificationParsing.h" #include "Parser/XMLUtils.h" namespace JSSpecCompiler { diff --git a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/AlgorithmStep.cpp b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/AlgorithmStep.cpp index dac83dfd4d..4a4590c031 100644 --- a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/AlgorithmStep.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/AlgorithmStep.cpp @@ -5,7 +5,7 @@ */ #include "Parser/Lexer.h" -#include "Parser/SpecParser.h" +#include "Parser/SpecificationParsing.h" namespace JSSpecCompiler { diff --git a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/AlgorithmStepList.cpp b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/AlgorithmStepList.cpp index d7df3322a4..59f8c5b284 100644 --- a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/AlgorithmStepList.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/AlgorithmStepList.cpp @@ -5,7 +5,7 @@ */ #include "Parser/Lexer.h" -#include "Parser/SpecParser.h" +#include "Parser/SpecificationParsing.h" #include "Parser/XMLUtils.h" namespace JSSpecCompiler { diff --git a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/CppASTConverter.cpp b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/CppASTConverter.cpp index 5a46c8db65..63d59b247d 100644 --- a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/CppASTConverter.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/CppASTConverter.cpp @@ -8,7 +8,7 @@ #include "Function.h" #include "Parser/CppASTConverter.h" -#include "Parser/SpecParser.h" +#include "Parser/SpecificationParsing.h" namespace JSSpecCompiler { diff --git a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/Lexer.cpp b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/Lexer.cpp index 96cef0055f..afd27449f4 100644 --- a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/Lexer.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/Lexer.cpp @@ -8,7 +8,7 @@ #include #include "Parser/Lexer.h" -#include "Parser/SpecParser.h" +#include "Parser/SpecificationParsing.h" #include "Parser/XMLUtils.h" namespace JSSpecCompiler { diff --git a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/Specification.cpp b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/Specification.cpp index e79645f82f..7dad575bfe 100644 --- a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/Specification.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/Specification.cpp @@ -5,7 +5,7 @@ */ #include "Parser/Lexer.h" -#include "Parser/SpecParser.h" +#include "Parser/SpecificationParsing.h" #include "Parser/XMLUtils.h" namespace JSSpecCompiler { diff --git a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationClause.cpp b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationClause.cpp index 37bcf5aa63..f9b3a92736 100644 --- a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationClause.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationClause.cpp @@ -5,7 +5,7 @@ */ #include "Parser/Lexer.h" -#include "Parser/SpecParser.h" +#include "Parser/SpecificationParsing.h" #include "Parser/XMLUtils.h" namespace JSSpecCompiler { diff --git a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationFunction.cpp b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationFunction.cpp index 915809a254..26d6a51f4b 100644 --- a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationFunction.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationFunction.cpp @@ -5,7 +5,7 @@ */ #include "Parser/Lexer.h" -#include "Parser/SpecParser.h" +#include "Parser/SpecificationParsing.h" #include "Parser/XMLUtils.h" namespace JSSpecCompiler { diff --git a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecParser.h b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationParsing.h similarity index 97% rename from Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecParser.h rename to Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationParsing.h index dca68851ab..3bd8c0036d 100644 --- a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecParser.h +++ b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationParsing.h @@ -163,10 +163,10 @@ private: Vector> m_clauses; }; -class SpecParsingStep : public CompilationStep { +class SpecificationParsingStep : public CompilationStep { public: - SpecParsingStep(); - ~SpecParsingStep(); + SpecificationParsingStep(); + ~SpecificationParsingStep(); void run(TranslationUnitRef translation_unit) override; diff --git a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationParsingContext.cpp b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationParsingContext.cpp index cb233b377a..c8e9382dbf 100644 --- a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationParsingContext.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationParsingContext.cpp @@ -4,7 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include "Parser/SpecParser.h" +#include "Parser/SpecificationParsing.h" namespace JSSpecCompiler { diff --git a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecParsingStep.cpp b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationParsingStep.cpp similarity index 89% rename from Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecParsingStep.cpp rename to Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationParsingStep.cpp index 969f23c192..92743e5998 100644 --- a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecParsingStep.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/SpecificationParsingStep.cpp @@ -10,20 +10,20 @@ #include "Function.h" #include "Parser/Lexer.h" -#include "Parser/SpecParser.h" +#include "Parser/SpecificationParsing.h" #include "Parser/TextParser.h" #include "Parser/XMLUtils.h" namespace JSSpecCompiler { -SpecParsingStep::SpecParsingStep() +SpecificationParsingStep::SpecificationParsingStep() : CompilationStep("parser"sv) { } -SpecParsingStep::~SpecParsingStep() = default; +SpecificationParsingStep::~SpecificationParsingStep() = default; -void SpecParsingStep::run(TranslationUnitRef translation_unit) +void SpecificationParsingStep::run(TranslationUnitRef translation_unit) { SpecificationParsingContext ctx(translation_unit); auto filename = translation_unit->filename(); diff --git a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/TextParser.cpp b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/TextParser.cpp index f6aa00f22c..9eee3541cf 100644 --- a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/TextParser.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/TextParser.cpp @@ -6,7 +6,7 @@ #include -#include "Parser/SpecParser.h" +#include "Parser/SpecificationParsing.h" #include "Parser/TextParser.h" namespace JSSpecCompiler { diff --git a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/main.cpp b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/main.cpp index 9e86e6e2a2..87b2e85a96 100644 --- a/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/main.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/main.cpp @@ -16,7 +16,7 @@ #include "Compiler/Passes/SSABuildingPass.h" #include "Function.h" #include "Parser/CppASTConverter.h" -#include "Parser/SpecParser.h" +#include "Parser/SpecificationParsing.h" using namespace JSSpecCompiler; @@ -122,7 +122,7 @@ ErrorOr serenity_main(Main::Arguments arguments) if (language == language_cpp) pipeline.add_step(adopt_own_if_nonnull(new CppParsingStep())); else - pipeline.add_step(adopt_own_if_nonnull(new SpecParsingStep())); + pipeline.add_step(adopt_own_if_nonnull(new SpecificationParsingStep())); pipeline.add_compilation_pass(); pipeline.add_compilation_pass(); pipeline.add_compilation_pass();