- jus t be clear:
FAMIXLocalVariable represents a local variable in the scope of a
behavioural entity.
it means the local variable must be in a function or something like
that, not local to a package
- currently there are no associations far what you want
the 4 associations are:
- inheritance, from type to type
- access, from behavioural (function, method) to variable
- invocation, from behavioural to behavioural
- reference, from container (package, class, behavioural) to container
so, no way to create a link from a variable to a container with current
FAMIX
2 solutions:
- you create a new association
- you use reference and put the link from the owner of the variable to
the package
we can discuss more if you need help
nicolas
On 28/01/2015 14:48, Damien Cassou wrote:
Hi,
I'm working on analyzing Python source-code with Moose. In Python, one
can write:
import re as regex
and this means "declare a local variable named 'regex' and put a
reference to the PyModule named 're' inside". How can I model that in
the mse file please?
Thanks