mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
LibCpp: Remove node_span_size, add index_of_node_at
This commit is contained in:
parent
26d9485562
commit
97f2cd596b
Notes:
sideshowbarker
2024-07-18 21:25:47 +09:00
Author: https://github.com/itamar8910
Commit: 97f2cd596b
Pull-request: https://github.com/SerenityOS/serenity/pull/5755
2 changed files with 24 additions and 22 deletions
|
@ -45,6 +45,7 @@ public:
|
|||
|
||||
RefPtr<ASTNode> eof_node() const;
|
||||
RefPtr<ASTNode> node_at(Position) const;
|
||||
Optional<size_t> index_of_node_at(Position) const;
|
||||
Optional<Token> token_at(Position) const;
|
||||
RefPtr<const TranslationUnit> root_node() const { return m_root_node; }
|
||||
StringView text_of_node(const ASTNode&) const;
|
||||
|
@ -135,8 +136,6 @@ private:
|
|||
|
||||
void error(StringView message = {});
|
||||
|
||||
size_t node_span_size(const ASTNode& node) const;
|
||||
|
||||
template<class T, class... Args>
|
||||
NonnullRefPtr<T>
|
||||
create_ast_node(ASTNode& parent, const Position& start, Optional<Position> end, Args&&... args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue