Class ImplicitVariablesScope

    • Constructor Detail

      • 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 Detail

      • getSingleLocalElementByName

        protected org.eclipse.xtext.resource.IEObjectDescription getSingleLocalElementByName​(org.eclipse.xtext.naming.QualifiedName qName)
        Overrides:
        getSingleLocalElementByName 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