I just realized that this method was already defined:
-=-=-=-=-=-=-=-=-=-=
FAMIXFile class>>annotation
<MSEClass: #File super: #FAMIXEntity>
<package: #FAMIX>
-=-=-=-=-=-=-=-=-=-=
Maybe we could have a look at it together
Cheers,
Alexandre
On 20 Feb 2009, at 09:35, Simon Denier wrote:
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 described.
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.
stef
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?
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
Simon
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.