1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

AK: Rename Vector::append(Vector) => Vector::extend(Vector)

Let's make it a bit more clear when we're appending the elements from
one vector to the end of another vector.
This commit is contained in:
Andreas Kling 2021-06-12 13:24:45 +02:00
parent 7e1bffdeb8
commit dc65f54c06
37 changed files with 103 additions and 104 deletions

View file

@ -175,8 +175,8 @@ RefPtr<AST::Node> Parser::parse_toplevel()
if (result.entries.is_empty())
break;
sequence.append(move(result.entries));
positions.append(move(result.separator_positions));
sequence.extend(move(result.entries));
positions.extend(move(result.separator_positions));
} while (result.decision == ShouldReadMoreSequences::Yes);
if (sequence.is_empty())
@ -353,7 +353,7 @@ RefPtr<AST::Node> Parser::parse_variable_decls()
VERIFY(rest->is_variable_decls());
auto* rest_decl = static_cast<AST::VariableDeclarations*>(rest.ptr());
variables.append(rest_decl->variables());
variables.extend(rest_decl->variables());
return create<AST::VariableDeclarations>(move(variables));
}