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:
parent
c7369f2f93
commit
1bd1187c92
2 changed files with 46 additions and 32 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue