2010/1/6 Simon Denier <Simon.Denier(a)inria.fr>
On 6 janv. 2010, at 16:19, Cyrille Delaunay wrote:
Hi,
I would like to retrieve the number of lines of code of a file when
importing C
code in moose. Here is what I do once the code loaded in moose:
Isn't there a numberOfLinesOfCode on CAImplementation?
And it's easy to define a redirection from FamixFile to CAImplementation
(there is a 1-1 relationship)
Yes, it is what I do , but it doesn't return me what I expect (see below,
the end of the mail)
- I inspect a FAMIXFile from the MooseFinder
-> when printing 'self numberOfLinesOfText' , it returns '0'
(while the corresponding file is not empty). This is my first problem,
- Then, I try to retrieve the object
CAImplementation (from CAnalyzer)
correspondind by inspecting 'self entities
first' (is it the good way?)
-> when printing 'self
numberOfLinesOfText', it returns '-1'
(-> even if I inspect directly a CAImplementation object from the
moose
finder, it returns -1)
So is there somethings wrong or is the problem coming from the xml files
generated
bu srcml?
_______________________________________________
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