aboutsummaryrefslogtreecommitdiff
path: root/src/parse/suffixes.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-25 01:28:31 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-25 01:28:31 -0400
commit6004f8eabb1a41e735a0e28d9b9b93c516526fb7 (patch)
treec269b127f7f1db8bb7f68ce330da128661cc709d /src/parse/suffixes.c
parentfbc6b59305d8414bb1cb471ea3f85a8d926beb4f (diff)
Less public
Diffstat (limited to 'src/parse/suffixes.c')
-rw-r--r--src/parse/suffixes.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/parse/suffixes.c b/src/parse/suffixes.c
index 77c61830..cc1905b9 100644
--- a/src/parse/suffixes.c
+++ b/src/parse/suffixes.c
@@ -11,7 +11,6 @@
#include "parse.h"
#include "utils.h"
-public
ast_t *parse_field_suffix(parse_ctx_t *ctx, ast_t *lhs) {
if (!lhs) return NULL;
const char *pos = lhs->end;
@@ -26,7 +25,6 @@ ast_t *parse_field_suffix(parse_ctx_t *ctx, ast_t *lhs) {
return NewAST(ctx->file, lhs->start, pos, FieldAccess, .fielded = lhs, .field = field);
}
-public
ast_t *parse_optional_suffix(parse_ctx_t *ctx, ast_t *lhs) {
if (!lhs) return NULL;
const char *pos = lhs->end;
@@ -34,7 +32,6 @@ ast_t *parse_optional_suffix(parse_ctx_t *ctx, ast_t *lhs) {
else return NULL;
}
-public
ast_t *parse_non_optional_suffix(parse_ctx_t *ctx, ast_t *lhs) {
if (!lhs) return NULL;
const char *pos = lhs->end;
@@ -42,7 +39,6 @@ ast_t *parse_non_optional_suffix(parse_ctx_t *ctx, ast_t *lhs) {
else return NULL;
}
-public
ast_t *parse_index_suffix(parse_ctx_t *ctx, ast_t *lhs) {
if (!lhs) return NULL;
const char *start = lhs->start;
@@ -56,7 +52,6 @@ ast_t *parse_index_suffix(parse_ctx_t *ctx, ast_t *lhs) {
return NewAST(ctx->file, start, pos, Index, .indexed = lhs, .index = index, .unchecked = unchecked);
}
-public
ast_t *parse_comprehension_suffix(parse_ctx_t *ctx, ast_t *expr) {
// <expr> "for" [<index>,]<var> "in" <iter> ["if" <condition> | "unless" <condition>]
if (!expr) return NULL;
@@ -91,7 +86,6 @@ ast_t *parse_comprehension_suffix(parse_ctx_t *ctx, ast_t *expr) {
return NewAST(ctx->file, start, pos, Comprehension, .expr = expr, .vars = vars, .iter = iter, .filter = filter);
}
-public
ast_t *parse_optional_conditional_suffix(parse_ctx_t *ctx, ast_t *stmt) {
// <statement> "if" <condition> | <statement> "unless" <condition>
if (!stmt) return stmt;
@@ -109,7 +103,6 @@ ast_t *parse_optional_conditional_suffix(parse_ctx_t *ctx, ast_t *stmt) {
}
}
-public
ast_t *parse_method_call_suffix(parse_ctx_t *ctx, ast_t *self) {
if (!self) return NULL;