mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
JSSpecCompiler: Parse lists in xspec mode
This commit is contained in:
parent
d14bb7e91e
commit
e1a1f4ed1a
9 changed files with 102 additions and 0 deletions
|
@ -146,4 +146,12 @@ String Variable::name() const
|
|||
return MUST(String::from_utf8(m_name->m_name));
|
||||
}
|
||||
|
||||
Vector<NodeSubtreePointer> List::subtrees()
|
||||
{
|
||||
Vector<NodeSubtreePointer> result;
|
||||
for (auto& element : m_elements)
|
||||
result.append({ &element });
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue