Re: GOBO ET_UNIVERSE question
Eric Bezault <ericb-D6Qt/9opevxWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.lang.eiffel.gobo.general |
|---|---|
| Organization | Gobo |
| Message-ID | <[email protected]> |
mrscannetto wrote: > I currently work with ET_LACE_PARSER and ET_UNIVERSE to generate a few > statistics of various projects. Now i have two question, with > ET_UNIVERSE i can get the number of classes,... but is there a way to > get the number of lines of code ? No, this information is not available in the current implementation of Gobo. The best you can get so far is the number of features per class (either just in the class, or also inherited from ancestors). From there you could also get the number of assertions and instructions, but there is no guarantee that there is only one instruction or assertion per line. So this won't give you an accurate number of lines of code. > My other questions is about the process_all function of the universe > which parse all source code files defined in the universe. There is no `process_all' in ET_UNIVERSE. I guess you meant `parse_all'. > I'm > interested only in the clusters that are in my project subdirectory > and not in all clusters that are imported in my project, is there a > way to exclude external clusters from the parsing ? You can just parse the clusters that you are interested in. You can do: my_universe.eiffel_parser.parse_clusters (my_clusters) or: my_universe.eiffel_parser.parse_cluster (my_cluster) These clusters should be located somewhere in the cluster hierarchy of 'my_universe.clusters'. One way to identify the third-party clusters from the others can be to use the Xace option: <option name="read_only" value="true"/> or ISE's LACE keyword 'library', and then inspect on the value of ET_CLUSTER.is_read_only. If it's not marked as read_only, then it is one of your clusters. -- Eric Bezault mailto:ericb-D6Qt/9opevxWk0Htik3J/[email protected] http://www.gobosoft.com To Post a message, send it to: [email protected] To Unsubscribe, send a blank message to: [email protected] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/gobo-eiffel/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/