Runtime AST Mixin Framework for V-Slice Mods
PolyMixin is a framework and API for V-Slice mods, built on AST manipulation. It is inspired by the mixin pattern used in projects like SpongePowered Mixin (Minecraft), and allows modders to patch or extend scripted classes without modifying their original scripts.
PolyMixin hooks into Polymod's scripting system by using the PolymodScriptClass(_abs) and modifying the _cachedFunctionDecls and _cachedFieldDecls.
It replaces or transforms the function declarations (FunctionDecl) using the function declaration from another class, which is also a PolymodScriptClass.
Think of it as "hot-swapping" functions at the AST level.
