Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }