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

public class ImplicitVariablesScope extends LightAbstractScope
Gets ImplicitVariable scope
  • Constructor Details

    • ImplicitVariablesScope

      public ImplicitVariablesScope(org.eclipse.xtext.scoping.IScope parent, Block block, Statement lastStatement, Environments envs)
      Initialize
      Parameters:
      parent - parent scopee
      block - Block of Bsl module. Can't be null
      lastStatement - last Statement, can be null
      envs - corresponding Environments, can be null if no environments filter
  • Method Details

    • getLocalElementsByName

      protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName qName)
      Overrides:
      getLocalElementsByName in class LightAbstractScope
    • getSingleLocalElementByName

      protected org.eclipse.xtext.resource.IEObjectDescription getSingleLocalElementByName(org.eclipse.xtext.naming.QualifiedName qName)
      Overrides:
      getSingleLocalElementByName in class LightAbstractScope
    • getAllLocalElements

      protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()
      Specified by:
      getAllLocalElements in class LightAbstractScope
    • isShadowed

      protected boolean isShadowed(org.eclipse.xtext.resource.IEObjectDescription input)
      Description copied from class: LightAbstractScope
      Returns true if the given description input from the parent scope is shadowed by local elements.
      Overrides:
      isShadowed in class LightAbstractScope
      Returns:
      true if the given description input 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 be null
      Returns:
      variable with it initialization offset, can be null if there is no variable with the name