Package com._1c.g5.v8.dt.bsl.scoping
Class ImplicitVariablesScope
java.lang.Object
com._1c.g5.modeling.xtext.scoping.LightAbstractScope
com._1c.g5.v8.dt.bsl.scoping.ImplicitVariablesScope
- All Implemented Interfaces:
org.eclipse.xtext.scoping.IScope
Gets
ImplicitVariable
scope-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Collector for implicit variables in Bsl moduleNested classes/interfaces inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScope
LightAbstractScope.EObjectFilterPredicate, LightAbstractScope.ParentIterable
-
Field Summary
Fields inherited from interface org.eclipse.xtext.scoping.IScope
NULLSCOPE
-
Constructor Summary
ConstructorsConstructorDescriptionImplicitVariablesScope
(org.eclipse.xtext.scoping.IScope parent, Block block, Statement lastStatement, Environments envs) Initialize -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.xtext.util.Pair<ImplicitVariable,
Integer> findByQName
(org.eclipse.xtext.naming.QualifiedName qName) Gets variable by its name from scopeprotected Iterable<org.eclipse.xtext.resource.IEObjectDescription>
protected Iterable<org.eclipse.xtext.resource.IEObjectDescription>
getLocalElementsByName
(org.eclipse.xtext.naming.QualifiedName qName) protected org.eclipse.xtext.resource.IEObjectDescription
getSingleLocalElementByName
(org.eclipse.xtext.naming.QualifiedName qName) protected boolean
isShadowed
(org.eclipse.xtext.resource.IEObjectDescription input) Returnstrue
if the given descriptioninput
from the parent scope is shadowed by local elements.Methods inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScope
getAllElements, getElements, getElements, getLocalElementsByEObject, getParent, getParentElements, getSingleElement, getSingleElement, isIgnoreCase, toString
-
Constructor Details
-
ImplicitVariablesScope
public ImplicitVariablesScope(org.eclipse.xtext.scoping.IScope parent, Block block, Statement lastStatement, Environments envs) Initialize- Parameters:
parent
- parent scopeeblock
-Block
of Bsl module. Can't benull
lastStatement
- lastStatement
, can benull
envs
- correspondingEnvironments
, can benull
if no environments filter
-
-
Method Details
-
getLocalElementsByName
protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName qName) - Overrides:
getLocalElementsByName
in classLightAbstractScope
-
getSingleLocalElementByName
protected org.eclipse.xtext.resource.IEObjectDescription getSingleLocalElementByName(org.eclipse.xtext.naming.QualifiedName qName) - Overrides:
getSingleLocalElementByName
in classLightAbstractScope
-
getAllLocalElements
- Specified by:
getAllLocalElements
in classLightAbstractScope
-
isShadowed
protected boolean isShadowed(org.eclipse.xtext.resource.IEObjectDescription input) Description copied from class:LightAbstractScope
Returnstrue
if the given descriptioninput
from the parent scope is shadowed by local elements.- Overrides:
isShadowed
in classLightAbstractScope
- Returns:
true
if the given descriptioninput
from the parent scope is shadowed by local elements.
-
findByQName
protected org.eclipse.xtext.util.Pair<ImplicitVariable,Integer> findByQName(org.eclipse.xtext.naming.QualifiedName qName) Gets variable by its name from scope- Parameters:
qName
- name of the variable, can't benull
- Returns:
- variable with it initialization offset, can be
null
if there is no variable with the name
-