Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Scope of validity for IResourcescopeCache
Scope of validity for IResourcescopeCache [message #636920] Wed, 03 November 2010 11:28 Go to next message
Jérôme Fouletier is currently offline Jérôme FouletierFriend
Messages: 39
Registered: September 2010
Location: France
Member
For our scoping, we use the default IResourceScopeCache to store lists of references as seen in certain places in the AST. It would be convenient to re-use the cache's contents during validation, in order to look for duplicated local names. Is it feasible? Or should ithe cache's usage be limited to scoping?

[Updated on: Wed, 03 November 2010 11:28]

Report message to a moderator

Re: Validity of IResourcescopeCache [message #637056 is a reply to message #636920] Wed, 03 November 2010 23:08 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Jerome,

you are free to use the cache everywhere as you like. It will be
discarded transparently whenever a significant change happens in the
resource thus you cached values have to be re-computable during the
validation phase without any loss of information.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 03.11.10 12:28, schrieb Jerome:
> For our scoping, we use the default IResourceScopeCache to store lists
> of references as seen in certain places in the AST. It would be
> convenient to re-use the cache's contents during validation, in order to
> look for duplicated local names. Is it feasible? Or should ithe cache's
> usage be limited to scoping?
Previous Topic:createURI() problem on import rule.
Next Topic:examples of ecore post processing
Goto Forum:
  


Current Time: Fri Apr 26 03:38:36 GMT 2024

Powered by FUDForum. Page generated in 0.03062 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top