sourceCode is the best way to do it. It answers the original sources if
available, and the decompiled sources if not available.

2016-03-10 11:22 GMT+01:00 Cyril Ferlicot <cyril.ferli...@gmail.com>:

> Hi,
>
> Do you really need to decompile the method? A CompiledMethod know his
> source code.
>
> See: Object methods first sourceCode
>
> But you can get the decompiled code with:
>
> Object methods first codeForNoSource
>
> I hope this help you
>
> On Thu, Mar 10, 2016 at 11:14 AM, Guillaume Ongenae <
> guillaume.onge...@gmail.com> wrote:
>
>> Hello,
>>
>> I'm a student at Lille 1 university, so I'm still a beginner in Pharo
>>
>> I'm working on Artefact to create a more understable and complete
>> demonstration.
>> To do that I would like to print the code of a given method. However I
>> can find how to decompiled the given method.
>> Any help is welcome.
>>
>> --
>>
>>
>> [image: --]
>>
>> Guillaume Ongenae
>> [image: https://]about.me/guillaume.ongenae
>>
>> <https://about.me/guillaume.ongenae?promo=email_sig&utm_source=email_sig&utm_medium=email_sig&utm_campaign=external_links>
>>
>
>
>
> --
> Cheers
> Cyril Ferlicot
>

Reply via email to