1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:47:45 +00:00

LibCpp: Support parsing templatized function calls

This commit is contained in:
Itamar 2021-03-31 18:19:58 +03:00 committed by Andreas Kling
parent fe4122bbae
commit 646aaa111b
4 changed files with 84 additions and 19 deletions

View file

@ -78,7 +78,6 @@ private:
bool match_whitespace();
bool match_variable_declaration();
bool match_expression();
bool match_function_call();
bool match_secondary_expression();
bool match_enum_declaration();
bool match_struct_declaration();
@ -91,12 +90,13 @@ private:
bool match_template_arguments();
bool match_name();
enum class MatchTypeResult {
enum class TemplatizedMatchResult {
NoMatch,
Regular,
Templatized,
};
MatchTypeResult match_type();
TemplatizedMatchResult match_type();
TemplatizedMatchResult match_function_call();
Optional<NonnullRefPtrVector<Parameter>> parse_parameter_list(ASTNode& parent);
Optional<Token> consume_whitespace();