mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 17:16:04 +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
|
@ -182,6 +182,7 @@ public:
|
|||
virtual ~Parameter() override = default;
|
||||
virtual const char* class_name() const override { return "Parameter"; }
|
||||
virtual void dump(FILE* = stdout, size_t indent = 0) const override;
|
||||
virtual bool is_parameter() const override { return true; }
|
||||
|
||||
Parameter(ASTNode* parent, Optional<Position> start, Optional<Position> end, const String& filename, StringView name)
|
||||
: VariableOrParameterDeclaration(parent, start, end, filename)
|
||||
|
@ -189,8 +190,6 @@ public:
|
|||
m_name = name;
|
||||
}
|
||||
|
||||
virtual bool is_parameter() const override { return true; }
|
||||
|
||||
bool m_is_ellipsis { false };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue