mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +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
5 changed files with 7 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue