mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +00:00
JSSpecCompiler: Introduce Function and ExecutionContext classes
Currently, they are not extremely useful, but the plan is to store all function-local state in JSSpecCompiler::Function and all "translation unit" state in ExecutionContext.
This commit is contained in:
parent
f05d291b41
commit
cd8f4aaa7d
9 changed files with 74 additions and 9 deletions
|
@ -40,13 +40,13 @@ public:
|
|||
Tree m_tree = error_tree;
|
||||
};
|
||||
|
||||
class Function {
|
||||
class SpecFunction {
|
||||
public:
|
||||
struct Argument {
|
||||
StringView name;
|
||||
};
|
||||
|
||||
static ParseErrorOr<Function> create(XML::Node const* element);
|
||||
static ParseErrorOr<SpecFunction> create(XML::Node const* element);
|
||||
|
||||
ParseErrorOr<void> parse_definition(XML::Node const* element);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue