diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-19 14:29:58 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-19 14:29:58 -0400 |
| commit | 934b843b1ce4744f8f21b7c590f0e1f31c94f604 (patch) | |
| tree | 5ca8d6f2a6c1055b8c2aa6e01f45b8e1e435aeff /typecheck.c | |
| parent | ea6f9797be2b6c1f65cf3b5594f8fb062ba92e9e (diff) | |
Add .text_content as a field on DSLs instead of a method
Diffstat (limited to 'typecheck.c')
| -rw-r--r-- | typecheck.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/typecheck.c b/typecheck.c index 3d40da3c..e74396c1 100644 --- a/typecheck.c +++ b/typecheck.c @@ -361,9 +361,6 @@ void bind_statement(env_t *env, ast_t *statement) set_binding(ns_env, "from_unsafe_text", new(binding_t, .type=Type(FunctionType, .args=new(arg_t, .name="text", .type=TEXT_TYPE), .ret=type), .code=CORD_all("(", namespace_prefix(env->libname, env->namespace), def->name, "_t)"))); - set_binding(ns_env, "text_content", - new(binding_t, .type=Type(FunctionType, .args=new(arg_t, .name="text", .type=type), .ret=TEXT_TYPE), - .code="(Text_t)")); for (ast_list_t *stmt = def->namespace ? Match(def->namespace, Block)->statements : NULL; stmt; stmt = stmt->next) bind_statement(ns_env, stmt->ast); |
