mark-christiaens/xtext — Issue #30: Don't cache Resources, cache IParseResults instead
Author: mark-christiaens
Created: 2012-01-20 14:02:21+00:00
State: open

I'm concerned with the API of the ICache / ISerializationService, e.g. it does not play well with the DerivedStateAwareResource. Instead of passing the XtextResource around, I'd rather use an IParseResult and the resource URI explicitly when writing the resource cache. #load should return a newly constructed IParseResult or null if no cache entry was available. This would allow easier reuse of the cache, e.g. for the TypeResource.