On May 2, 2009, at 4:56 PM, Alexandre Bergel wrote:
I am writing a Monticello Importer. This means that
the model is a
Smalltalk model. And no compiled method may be associated to a
FAMIXMethod since the code will not be loaded. However, a
MCMethodDefinition may be associated, but I do not see a reason
why it should.
I did one MSE exporter (but I loaded code so this is not the same).
How will you compute instance variable and method invocation
without compiling the code?
Using the compiler or RB may be one solution. I will think about it.
so this is the same below
>>>>>>>> [self mooseModel
isSmalltalk
>>>>>>>> ifTrue:
>>>>>>>> [| parser |
>>>>>>>> parser := VisualWorksParseTreeMetricCalculator new.
>>>>>>>> parser processMethod: self usingImporter: nil
inModel:
>>>>>>>> nil.
>>>>>>>> parser numberOfLinesOfCode]
Just that here you can avoid to use the parser by counting the cr or
lf in the source code.
So your remark was valid.
Stef