Class GlobalScope

    • Constructor Detail

      • GlobalScope

        public GlobalScope()
        This should ideally only be called once. It constructs a new global scope, which is not associated to any AST node. However, depending on the language, a language frontend can explicitly set the ast node using ScopeManager.resetToGlobal(TranslationUnitDeclaration) if the language needs a global scope that is restricted to a translation unit, i.e. C++ while still maintaing a unique list of global variables.