On Sat, Mar 31, 2012 at 1:40 PM, Bert Freudenberg <bert@freudenbergs.de> wrote:
We certainly do not want a hard dependency on Monticello classes in the System package, right?  So asMethodDefinition needs to go back into MC.

Oops!
 

- Bert -

On 31.03.2012, at 21:38, commits@source.squeak.org wrote:

> Eliot Miranda uploaded a new version of System to project The Trunk:
> http://source.squeak.org/trunk/System-eem.478.mcz
>
> ==================== Summary ====================
>
> Name: System-eem.478
> Author: eem
> Time: 31 March 2012, 11:15:25.476 am
> UUID: 5c37a198-3967-401c-a501-57ffd35ad706
> Ancestors: System-ul.477
>
> Move generally useful parts of MethodReference into base
> System.
>
> =============== Diff against System-ul.477 ===============
>
> Item was added:
> + ----- Method: ChangeRecord>>asMethodDefinition (in category 'converting') -----
> + asMethodDefinition
> +    ^ MCMethodDefinition
> +        className: class
> +        classIsMeta: meta
> +        selector: self methodSelector
> +        category: category
> +        timeStamp: stamp
> +        source: self string!
>
> Item was added:
> + ----- Method: MethodReference>>asMethodDefinition (in category 'converting') -----
> + asMethodDefinition
> +    ^ MCMethodDefinition forMethodReference: self!
>
> Item was added:
> + ----- Method: MethodReference>>compiledMethod (in category 'accessing') -----
> + compiledMethod
> +    ^ self actualClass compiledMethodAt: methodSymbol!
>
> Item was added:
> + ----- Method: MethodReference>>source (in category 'accessing') -----
> + source
> +    ^ (self actualClass sourceCodeAt: methodSymbol) asString withSqueakLineEndings!
>
> Item was added:
> + ----- Method: MethodReference>>sourceCode (in category 'accessing') -----
> + sourceCode
> +    ^ self actualClass sourceCodeAt: methodSymbol!
>
> Item was added:
> + ----- Method: MethodReference>>timeStamp (in category 'accessing') -----
> + timeStamp
> +    ^ self compiledMethod timeStamp!
>
>




--
best,
Eliot