mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibCpp: Add Parser::tokens_in_range(start, end)
This function returns the tokens that exist in the specified range.
This commit is contained in:
parent
9a31fb6673
commit
232013c05b
Notes:
sideshowbarker
2024-07-18 10:30:09 +09:00
Author: https://github.com/itamar8910
Commit: 232013c05b
Pull-request: https://github.com/SerenityOS/serenity/pull/8403
Reviewed-by: https://github.com/awesomekling
3 changed files with 15 additions and 5 deletions
|
@ -49,6 +49,7 @@ public:
|
|||
Preprocessor::DefinedValue preprocessor_value;
|
||||
};
|
||||
const Vector<TokenAndPreprocessorDefinition>& replaced_preprocessor_tokens() const { return m_replaced_preprocessor_tokens; }
|
||||
Vector<Token> tokens_in_range(Position start, Position end) const;
|
||||
|
||||
private:
|
||||
enum class DeclarationType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue