mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-08 01:27:31 +00:00
Shell: Use NonnullRefPtr to simplify some things in the parser/AST
This commit is contained in:
@@ -72,7 +72,7 @@ bool Parser::expect(const StringView& expected)
|
||||
}
|
||||
|
||||
template<typename A, typename... Args>
|
||||
RefPtr<A> Parser::create(Args... args)
|
||||
NonnullRefPtr<A> Parser::create(Args... args)
|
||||
{
|
||||
return adopt(*new A(AST::Position { m_rule_start_offsets.last(), m_offset }, args...));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user