The Trunk: EToys-tfel.262.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: EToys-tfel.262.mcz

commits-2
Tim Felgentreff uploaded a new version of EToys to project The Trunk:
http://source.squeak.org/trunk/EToys-tfel.262.mcz

==================== Summary ====================

Name: EToys-tfel.262
Author: tfel
Time: 29 September 2016, 2:13:27.526594 pm
UUID: ec1649f4-3c03-415c-89d4-504ffe9be9a1
Ancestors: EToys-tfel.261

remove a transcript show that was triggered often during compilation of kedama scripts

=============== Diff against EToys-tfel.261 ===============

Item was changed:
  ----- Method: KedamaAttributeEvaluator>>evaluateOccurence: (in category 'private') -----
  evaluateOccurence: occurence
 
  "pick the attribute from the occurence at parseNode."
  "check the dependency for that occurence."
  "if they are not evaluated, recursively call itself with new arguments."
  "if all the values are evaluated, #perform: the registered method with these values."
 
  | ret n args realArgs |
  n := occurence node.
  args := ReadStream on: (occurence dependencies collect: [:oc | oc value]).
  realArgs := Array new: 0.
  occurence inputSizes do: [:s |
  s isCollection ifTrue: [
  realArgs := realArgs copyWith: (args next: (s at: 1)).
  ] ifFalse: [
  realArgs := realArgs copyWith: args next.
  ].
  ].
 
  (n = parseTree and: [occurence selectedRule selector = #rcvr]) ifTrue: [
  ret := receiver
  ] ifFalse: [
  ret := n perform: occurence selectedRule selector withArguments: realArgs.
  ].
  Debug == true ifTrue: [
  Transcript show: n printString, ' ', occurence selectedRule selector, ' ', args printString, ' ', realArgs printString, ' ', ret printString; cr.
  ].
- ret ifNil: [Transcript show: occurence printString; cr].
  occurence value: ret.
  !