Class MapBasedScope

    • Constructor Detail

      • MapBasedScope

        public MapBasedScope​(java.util.Map<java.lang.String,​? extends JSType> namesToTypes)
    • Method Detail

      • getSlot

        public StaticSlot<JSType> getSlot​(java.lang.String name)
        Description copied from interface: StaticScope
        Returns any defined slot within this scope for this name. This call continues searching through parent scopes if a slot with this name is not found in the current scope.
        Specified by:
        getSlot in interface StaticScope<JSType>
        Specified by:
        getSlot in class AbstractStaticScope<JSType>
        Parameters:
        name - The name of the variable slot to look up.
        Returns:
        The defined slot for the variable, or null if no definition exists.