Class CachedScopeProvider

    • Constructor Detail

      • CachedScopeProvider

        public CachedScopeProvider()
    • Method Detail

      • getCachedScope

        public org.eclipse.xtext.scoping.IScope getCachedScope​(org.eclipse.emf.ecore.EObject context,
                                                               org.eclipse.emf.ecore.EReference reference)
        Gets caching IScope by context and reference
        Parameters:
        context - actual context object for getting scope, can't be null
        reference - actial reference object for getting scope, can't be null
        Returns:
        available caching IScope, can be null if there is no corresponding scope for context and reference
      • addCachedScope

        public void addCachedScope​(org.eclipse.emf.ecore.EObject context,
                                   org.eclipse.emf.ecore.EReference reference,
                                   org.eclipse.xtext.scoping.IScope scope)
        Adds IScope for temporary caching
        Parameters:
        context - actual context object of IScope, can't be null
        reference - actual reference object of IScope, can't be null
        scope - caching IScope, can't be null