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:
Dan Klishch 2024-03-07 23:29:43 -05:00 committed by Andrew Kaster
parent 7ea2138b6c
commit 211d20d389
Notes: sideshowbarker 2024-07-17 02:55:44 +09:00
5 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -65,7 +65,7 @@ class SpecificationParsingContext;
class AlgorithmStep;
class AlgorithmStepList;
class Algorithm;
class SpecFunction;
class SpecificationFunction;
class SpecificationClause;
class Specification;

View file

@ -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))
{
}

View file

@ -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))

View file

@ -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)));
}