From 3425b95cb654f8e1adc98365a4b370aa1fff8b4d Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 06:02:21 +0000 Subject: feat(classes): support ordinary member methods and this references Co-Authored-By: Claude Fable 5.1 --- include/cps/CodeGen.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/cps/CodeGen.h') diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h index 94aacb7..1c80434 100644 --- a/include/cps/CodeGen.h +++ b/include/cps/CodeGen.h @@ -32,6 +32,10 @@ class CodeGen { std::unique_ptr> Builder; int DiagnosticLine = 0; IdentifierMap Symbols; + IdentifierMap> ClassMethods; + std::string CurrentClass; + const PrototypeAST *findMethod(const std::string &Class, const std::string &Name) const; + llvm::Value *emitMemberCall(MemberCallExprAST *Call); struct ConstantScope { unsigned ID; IdentifierMap> Saved; -- cgit v1.3.1-4-g156e