public UserStringBuilder( GlobalSymbolContext globalSymbols) { Debug.Assert(globalSymbols != null); fHadUndisplayableStringInError = false; m_buildingInProgress = false; m_globalSymbols = globalSymbols; }
//////////////////////////////////////////////////////////////////////////////// // Construct a compiler. All the real work is done in the Init() routine. This // primary initializes all the sub-components. public LangCompiler(CController pCtrl, NameManager pNameMgr) { Debug.Assert(pCtrl != null); _pController = pCtrl; GlobalSymbolContext globalSymbolContext = new GlobalSymbolContext(pNameMgr); _errorContext = new ErrorHandling(new UserStringBuilder(globalSymbolContext), this, pCtrl.GetErrorFactory()); _symbolLoader = new SymbolLoader(globalSymbolContext, null, _errorContext); }
public SymbolLoader( GlobalSymbolContext globalSymbols, UserStringBuilder userStringBuilder, ErrorHandling errorContext ) { _nameManager = globalSymbols.GetNameManager(); PredefinedMembers = new PredefinedMembers(this); ErrorContext = errorContext; GlobalSymbolContext = globalSymbols; Debug.Assert(GlobalSymbolContext != null); }
public ExprFactory(GlobalSymbolContext globalSymbolContext) { Debug.Assert(globalSymbolContext != null); _globalSymbolContext = globalSymbolContext; _constants = new ConstValFactory(); }
public PredefinedTypes getPredefTypes() { return(GlobalSymbolContext.GetPredefTypes()); }
public MiscSymFactory GetGlobalMiscSymFactory() { return(GlobalSymbolContext.GetGlobalMiscSymFactory()); }
public ExprFactory(GlobalSymbolContext globalSymbolContext) { Debug.Assert(globalSymbolContext != null); _globalSymbolContext = globalSymbolContext; }
public BSYMMGR getBSymmgr() { return(GlobalSymbolContext.GetGlobalSymbols()); }