On 4 mai 2011, at 22:22, Alexandre Bergel wrote:
Hi!
Having a proper list of candidates when importing Smalltalk code is crucial. Without this, it is not possible to seriously analyze Smalltalk code. How to use the Roel Typer? I guess I have to tick "Compute type of attributes" in the wizard. But which strategy to compute invocation candidates should I use? I tried when I get an error from the typer.
These are two different things: the strategy to compute candidates is selected in the last combo box in the wizard (below importing context). Currently there are different strategies, from no candidate to sure candidates and some more which are not clearly defined (they lack tests).
'Compute type of attributes' is clearly different since it will compute the FAMIXAttribute>>declaredType property (which is often nil in our Smalltalk models). Now, using the inferred type to refine candidates is of course the next step. They were some tentative in this direction but I don't think we went very far (because tests are seriously needed in this area to gain confidence: we try to do some heuristics on top of other heuristics).
Could you review AbstractCandidateListOperator and its subclasses and tell what direction would be good?
We absolutely need to fix this. Cyrille, did you manage to get this to work?
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Simon Denier