Hi,
FAMIXType>>numberOfStatements is derived, but the screenshot shows FAMIXMethod>>numberOfStatements which is not :).
In most cases, those values are needed. However, for non-default cases, we can use a filter at the Fame level to specify which properties we are interested in.
Cheers, Doru
On 29 May 2012, at 08:32, Martin Dias wrote:
I have a question about the screenshot:
FAMIXType >> numberOfStatements <MSEProperty: #numberOfStatements type: #Number>
<derived> <MSEComment: 'The number of statements in a class'> ^self lookUpPropertyNamed: #numberOfStatements computedAs: [self methodsGroup sum: #numberOfStatements]
is *derived*, so (look at the in the code in the bottom of the picture):
self shouldIgnore: 'numberOfStatements' withAll: values
will return false, and thus "values" (which was so expensive to calculate) will be discarded (not encoded).
I mean, our code could be optimized. Right?
MartÃn
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"We are all great at making mistakes."