diff --git a/v0/parser.c b/v0/parser.c index 76b1aa7..3b42985 100644 --- a/v0/parser.c +++ b/v0/parser.c @@ -136,11 +136,10 @@ static bool parse_import_declaration(Parser* p, Module* module, bool is_public) } /** - * Parses an import declaration. + * Parses a primitive type expression. * * @param p The parser state. - * @param module The module to add the import to. - * @param is_public Whether the import is public. + * @param expr The type expression to populate. * @return true if successful, false otherwise. */ static bool parse_primitive_type_expression(Parser* p, TypeExpression* expr) { @@ -191,11 +190,10 @@ static bool parse_primitive_type_expression(Parser* p, TypeExpression* expr) { } /** - * Parses an import declaration. + * Parses an array type expression. * * @param p The parser state. - * @param module The module to add the import to. - * @param is_public Whether the import is public. + * @param expr The type expression to populate. * @return true if successful, false otherwise. */ static bool parse_array_type_expression(Parser* p, TypeExpression* expr) { @@ -220,11 +218,10 @@ static bool parse_array_type_expression(Parser* p, TypeExpression* expr) { } /** - * Parses an import declaration. + * Parses a type expression. * * @param p The parser state. - * @param module The module to add the import to. - * @param is_public Whether the import is public. + * @param expr The type expression to populate. * @return true if successful, false otherwise. */ static bool parse_type_expression(Parser* p, TypeExpression* expr) { @@ -232,11 +229,11 @@ static bool parse_type_expression(Parser* p, TypeExpression* expr) { } /** - * Parses an import declaration. + * Parses an alias declaration. * * @param p The parser state. - * @param module The module to add the import to. - * @param is_public Whether the import is public. + * @param module The module to add the alias to. + * @param is_public Whether the alias is public. * @return true if successful, false otherwise. */ static bool parse_alias_declaration(Parser* p, Module* module, bool is_public) {