On 20 févr. 09, at 08:40, Stéphane Ducasse wrote:
I'm not sure but may be this is file and co are not fame
Exactly, the FAMIXFile and co is not described in Fame right now.
It's not very difficult to do:
- define a FAMIXFile class>>annotation method with a MSE pragmas( see
other famix classes)
- for each method which computes a property, declare a pragma like
that <MSEProperty: #TLOT type: #Number>
then the symbolic lookup will work.
On Feb 19, 2009, at 11:54 PM, Alexandre Bergel wrote:
> Dear SqMoose Crew,
> I have a question about properties.
> In FileImportTest>>testFiles, there are accesses to properties, e.g.,
> self assert: (file propertyNamed: #TLOT) = 1.
> self assert: (file propertyNamed: #NOCh) = 0.
> (file propertyNamed: #TLOT) returns nil. It seems that the
> computing is not done. However, if I manually trigger the
> computation, getting the property returns the expected value as in:
> self assert: (file totalNumberOfLinesOfText = 1). "If I remove
> this line, the next one return nil"
> self assert: (file propertyNamed: #TLOT) = 1
> Any idea ? It seems that the meta stuff is not able to retrieve the
> method that contains the property. Any idea why?
> Alexandre Bergel http://www.bergel.eu
> Moose-dev mailing list
Moose-dev mailing list