1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00:00

JSSpecCompiler: Push ParseError out of AlgorithmStepList

This commit is contained in:
Dan Klishch 2024-01-16 21:49:33 -05:00 committed by Andrew Kaster
parent c7369f2f93
commit 1bd1187c92
2 changed files with 46 additions and 32 deletions

View file

@ -43,7 +43,7 @@ private:
class AlgorithmStepList {
public:
static ParseErrorOr<AlgorithmStepList> create(XML::Node::Element const& element);
static Optional<AlgorithmStepList> create(SpecificationParsingContext& ctx, XML::Node const* element);
Vector<AlgorithmStep> m_steps;
Tree m_expression = error_tree;
@ -51,7 +51,7 @@ public:
class AlgorithmStep {
public:
static ParseErrorOr<AlgorithmStep> create(XML::Node const* node);
static ParseErrorOr<AlgorithmStep> create(SpecificationParsingContext& ctx, XML::Node const* node);
ParseErrorOr<Tree> parse();