Re: How to find note items associated with a ET_FUNCTION

Eric Bezault <[email protected]> Sun, 17 Feb 2013 13:48:36 +0100
Newsgroups gmane.comp.lang.eiffel.gobo.devel
Message-ID <[email protected]>
On 2/16/2013 8:39 PM, Colin Adams wrote:
> Having parsed an ECF file to flat degree 3, how can I find which note
> items are associated with a function?

It's available in ET_FEATURE.first_indexing.
In order to make sure that it is populated by the parser,
you have to make sure that it uses an instance of
ET_DECORARED_AST_FACTORY, instead of a ET_AST_FACTORY:

	l_ast_factory: ET_DECORARED_AST_FACTORY
	...
	create l_ast_factory.make
	l_system.set_ast_factory (l_ast_factory)

-- 
Eric Bezault
mailto:[email protected]
http://www.gobosoft.com

------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/