Class Symbol


  • @Beta
    public class Symbol
    extends Object
    • Method Detail

      • setExternal

        public Symbol setExternal​(boolean external)
      • scope

        public Scope scope()
      • external

        public boolean external()
        Returns:
        true if symbol is coming from global project context and/or is created implicitly by interpreter (e.g. "window" for browser environment or "arguments" for each function scope)
      • addTypes

        public void addTypes​(Set<Type> type)
      • addType

        public void addType​(Type type)
      • isVariable

        public boolean isVariable()
        Returns:
        true if symbol created with var, let or const keywords or implicitly