mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
JSSpecCompiler: Rename SpecFunction to SpecificationFunction
Over time, I converged on not abbreviating "specification". But this class (and SpecParsingStep) predated the decision.
This commit is contained in:
parent
7ea2138b6c
commit
211d20d389
Notes:
sideshowbarker
2024-07-17 02:55:44 +09:00
Author: https://github.com/DanShaders Commit: https://github.com/SerenityOS/serenity/commit/211d20d389 Pull-request: https://github.com/SerenityOS/serenity/pull/23522 Reviewed-by: https://github.com/ADKaster ✅
5 changed files with 7 additions and 7 deletions
|
@ -15,9 +15,9 @@ set(SOURCES
|
|||
Parser/AlgorithmStepList.cpp
|
||||
Parser/CppASTConverter.cpp
|
||||
Parser/Lexer.cpp
|
||||
Parser/SpecFunction.cpp
|
||||
Parser/Specification.cpp
|
||||
Parser/SpecificationClause.cpp
|
||||
Parser/SpecificationFunction.cpp
|
||||
Parser/SpecificationParsingContext.cpp
|
||||
Parser/SpecParsingStep.cpp
|
||||
Parser/TextParser.cpp
|
||||
|
|
|
@ -65,7 +65,7 @@ class SpecificationParsingContext;
|
|||
class AlgorithmStep;
|
||||
class AlgorithmStepList;
|
||||
class Algorithm;
|
||||
class SpecFunction;
|
||||
class SpecificationFunction;
|
||||
class SpecificationClause;
|
||||
class Specification;
|
||||
|
||||
|
|
|
@ -132,9 +132,9 @@ private:
|
|||
Vector<NonnullOwnPtr<SpecificationClause>> m_subclauses;
|
||||
};
|
||||
|
||||
class SpecFunction : public SpecificationClause {
|
||||
class SpecificationFunction : public SpecificationClause {
|
||||
public:
|
||||
SpecFunction(SpecificationClause&& clause)
|
||||
SpecificationFunction(SpecificationClause&& clause)
|
||||
: SpecificationClause(move(clause))
|
||||
{
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ NonnullOwnPtr<SpecificationClause> SpecificationClause::create(SpecificationPars
|
|||
result = make<SpecificationClause>(move(specification_clause));
|
||||
},
|
||||
[&](OneOf<ClauseHeader::AbstractOperation, ClauseHeader::Accessor, ClauseHeader::Method> auto const&) {
|
||||
result = make<SpecFunction>(move(specification_clause));
|
||||
result = make<SpecificationFunction>(move(specification_clause));
|
||||
});
|
||||
|
||||
if (!result->post_initialize(element))
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
namespace JSSpecCompiler {
|
||||
|
||||
bool SpecFunction::post_initialize(XML::Node const* element)
|
||||
bool SpecificationFunction::post_initialize(XML::Node const* element)
|
||||
{
|
||||
VERIFY(element->as_element().name == tag_emu_clause);
|
||||
|
||||
|
@ -84,7 +84,7 @@ bool SpecFunction::post_initialize(XML::Node const* element)
|
|||
}
|
||||
}
|
||||
|
||||
void SpecFunction::do_collect(TranslationUnitRef translation_unit)
|
||||
void SpecificationFunction::do_collect(TranslationUnitRef translation_unit)
|
||||
{
|
||||
translation_unit->adopt_function(make_ref_counted<FunctionDefinition>(m_name, m_algorithm.tree(), move(m_arguments)));
|
||||
}
|
Loading…
Reference in a new issue