Hi,
You should look in the Moose-SmalltalkImporter package at the following classes:
- SmalltalkImporter: responsible for creating the Famix model out of Smalltalk code.
- SmalltalkMethodVisitor: a helper class that visits the AST of each method and creates the corresponding entities.
If you want to get an idea of how to AST looks like for a specific method, you can use the GTInspector. For example, in a Moose image:
- execute: (MooseModel>>#setRootFolder) parseTree explore
- choose the tree tab
See the result in the attached screenshot.
Cheers,
Doru