private void ImportNamespaceSymbols(SymbolStack <FrontendSymbol> symbols, ES_NamespaceData namespaceData) { foreach (var type in namespaceData.Types) { symbols.AddSymbol(type.Address->Name.TypeName, FrontendSymbol.NewType(type)); } foreach (var funcKVP in namespaceData.Functions) { symbols.AddSymbol(funcKVP.Key, FrontendSymbol.NewFunction(funcKVP.Value)); } }
public Builder( [DisallowNull] EchelonScriptEnvironment env, [DisallowNull] EchelonScriptEnvironment.Builder envBuilder, [DisallowNull] ES_NamespaceData nm ) { this.env = env; this.envBuilder = envBuilder; NamespaceData = nm; ClassBuilders = new PooledDictionary <ArrayPointer <byte>, ES_ClassData.Builder> (); StructBuilders = new PooledDictionary <ArrayPointer <byte>, ES_StructData.Builder> (); EnumBuilders = new PooledDictionary <ArrayPointer <byte>, ES_EnumData.Builder> (); }