Thanks!That’s work pretty well!
I have created an MSE file:
=-=-=-==-=-=-==-=-=-=
(
(FAMIX.Function (id: 1)
(name 'helloWorld')
(myGreatMetric 10))
)
=-=-=-==-=-=-==-=-=-=
Once loaded, I can do when inspecting the moose model:
self allFunctions anyOne propertyNamed: ‘myGreatMetric'
=> 10
Leonardo, I am convinced that you should do the MSE way instead of exporting your JavaScript code to JSON and then importing them within Moose. This is way too much work.
You can compute the metrics you need in JavaScript (e.g., doing the computation on the AST using Esprima), and then putting everything in the MSE file.
Let us know how it goes!
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hi Alex,
Any property that you put in MSE will be stored in a dictionary of the entity if you do not already have meta-descriptions for it.
Doru
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev