We should promote parentScope to be container in
FAMIXFunction.
As for attaching the source anchor, take a look at FAMIXSourceAnchor and its subclasses.
You should also take care of setting the language for your entities. For this, take a
look at FAMIXSourceLanguage and its subclasses.
Ok
And a question: is the parser available as
open-source?
Sure. It is in its stabilization phase. We will soon release it.
Alexandre
On May 3, 2013, at 12:39 AM, Alexandre Bergel <alexandre.bergel(a)me.com> wrote:
Hi!
We are currently trying to analyze JavaScript code in Moose. We have a working parser to
generate .mse files. The parser extract for each JavaScript function its position in the
source code, its amount of lines of code, incoming and outgoing invocations.
We also have the nesting between functions. How can we represent this in Famix? A famix
function can have a parent scope, but a parent scope can either be a package or a
namespace, and not a function. Any hint ?
Another question. How can we link the source code to the famix model?
Help appreciated
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"Every now and then stop and ask yourself if the war you're fighting is the
right one."
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.