mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 16:07:45 +00:00
LibCpp: Remove node_span_size, add index_of_node_at
This commit is contained in:
parent
26d9485562
commit
97f2cd596b
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