Hi

to prepare some code for students I want to convert methods into a
kind of method skeleton
ie

printOn: aStream
    "super nice comment"
lk;lk;
    kl;;kl
    k;lkl;k
    ^ 42

into

printOn: aStream
    "super nice comment"
    ^ self

any idea?

In the past I know that we could access the method comment but I do
not find how to access the method signature (selector + variables).

So I'm trying at the AST level.

((ObjSkeletonMock >> #methodToSkeletonize2) ast body:
(ObjSkeletonMock >> #returnSelf) ast body).

But I do not get how I can recompile this.

Stef

Reply via email to