REPL code review
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Fri Sep 11 17:27:50 UTC 2015
On 11/09/15 18:01, Jan Lahoda wrote:
> The general intent of scopeContent is to gather all elements that are
> defined at the given place (for which the Scope was created).
> Scope.getLocalElements only returns elements that are local to the
> scope - for example for a Scope that was created for a location inside
> a method, the getLocalElements won't include the imported elements.
ah - thx for the clarification; I get that imported elements will be
missing, but I believe elements declared in enclosing scopes will still
be there? I.e. after all, a scope will have its 'next' field pointing to
the enclosing scope (which is the scope of the outer env); but I get
that there are corner cases in which this 1-1 mapping breaks.
Maurizio
More information about the kulla-dev
mailing list