mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
AK: Rename downcast<T> => verify_cast<T>
This makes it much clearer what this cast actually does: it will VERIFY that the thing we're casting is a T (using is<T>()).
This commit is contained in:
@@ -1691,7 +1691,7 @@ NonnullRefPtr<VariableDeclaration> Parser::parse_variable_declaration(bool for_l
|
||||
|
||||
declarations.append(create_ast_node<VariableDeclarator>(
|
||||
{ m_state.current_token.filename(), rule_start.position(), position() },
|
||||
move(target).downcast<NonnullRefPtr<Identifier>, NonnullRefPtr<BindingPattern>>(),
|
||||
move(target).verify_cast<NonnullRefPtr<Identifier>, NonnullRefPtr<BindingPattern>>(),
|
||||
move(init)));
|
||||
|
||||
if (match(TokenType::Comma)) {
|
||||
|
||||
Reference in New Issue
Block a user