public Module(string id, IVirtualPath virtualPath, Module parent, IModuleLoader loader) { Evaluator = loader.Evaluator; Id = id; Parent = parent; Loader = loader; VirtualPath = virtualPath; parent?.Children?.Add(this); Loaded = false; Children = new List<Module>(); RequireFunction = new RequireFunction(Evaluator, loader, this); }
public Module(string id, IVirtualPath virtualPath, Module parent, IModuleLoader loader) { Evaluator = loader.Evaluator; Id = id; Parent = parent; Loader = loader; VirtualPath = virtualPath; parent?.Children?.Add(this); Loaded = false; Children = new List <Module>(); RequireFunction = new RequireFunction(Evaluator, loader, this); }