mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:08:10 +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
|
@ -523,6 +523,20 @@ protected:
|
|||
void dump_tree(StringBuilder& builder) override;
|
||||
};
|
||||
|
||||
class Enumerator : public Expression {
|
||||
public:
|
||||
Enumerator(Badge<TranslationUnit>, StringView value)
|
||||
: m_value(value)
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
void dump_tree(StringBuilder& builder) override;
|
||||
|
||||
private:
|
||||
StringView m_value;
|
||||
};
|
||||
|
||||
class FunctionPointer : public Expression {
|
||||
public:
|
||||
FunctionPointer(FunctionDeclarationRef declaration)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue