mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00
JSSpecCompiler: Parse enumerators in xspec mode
This commit is contained in:
parent
3d365326af
commit
990e30f458
13 changed files with 69 additions and 0 deletions
|
@ -30,12 +30,15 @@ public:
|
|||
DiagnosticEngine& diag() { return m_diagnostic_engine; }
|
||||
Vector<FunctionDefinitionRef> functions_to_compile() const { return m_functions_to_compile; }
|
||||
|
||||
EnumeratorRef get_node_for_enumerator_value(StringView value);
|
||||
|
||||
private:
|
||||
StringView m_filename;
|
||||
DiagnosticEngine m_diagnostic_engine;
|
||||
Vector<FunctionDefinitionRef> m_functions_to_compile;
|
||||
Vector<NonnullRefPtr<FunctionDeclaration>> m_declarations_owner;
|
||||
HashMap<StringView, FunctionDeclarationRef> m_function_index;
|
||||
HashMap<StringView, EnumeratorRef> m_enumerator_nodes;
|
||||
};
|
||||
|
||||
struct FunctionArgument {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue