CompileReader() private method

private CompileReader ( Scriptable scope, TextReader @in, string sourceName, int lineno, object securityDomain ) : System.Script
scope Scriptable
@in System.IO.TextReader
sourceName string
lineno int
securityDomain object
return System.Script
		/// <exception cref="System.Exception"></exception>
		public virtual ModuleScript GetModuleScript(Context cx, string moduleId, Uri moduleUri, Uri baseUri, Scriptable paths)
		{
			CachingModuleScriptProviderBase.CachedModuleScript cachedModule1 = GetLoadedModule(moduleId);
			object validator1 = GetValidator(cachedModule1);
			ModuleSource moduleSource = (moduleUri == null) ? moduleSourceProvider.LoadSource(moduleId, paths, validator1) : moduleSourceProvider.LoadSource(moduleUri, baseUri, validator1);
			if (moduleSource == ModuleSourceProviderConstants.NOT_MODIFIED)
			{
				return cachedModule1.GetModule();
			}
			if (moduleSource == null)
			{
				return null;
			}
			TextReader reader = moduleSource.GetReader();
			try
			{
				int idHash = moduleId.GetHashCode();
				lock (loadLocks[((int)(((uint)idHash) >> loadLockShift)) & loadLockMask])
				{
					CachingModuleScriptProviderBase.CachedModuleScript cachedModule2 = GetLoadedModule(moduleId);
					if (cachedModule2 != null)
					{
						if (!Equal(validator1, GetValidator(cachedModule2)))
						{
							return cachedModule2.GetModule();
						}
					}
					Uri sourceUri = moduleSource.GetUri();
					ModuleScript moduleScript = new ModuleScript(cx.CompileReader(reader, sourceUri.ToString(), 1, moduleSource.GetSecurityDomain()), sourceUri, moduleSource.GetBase());
					PutLoadedModule(moduleId, moduleScript, moduleSource.GetValidator());
					return moduleScript;
				}
			}
			finally
			{
				reader.Close();
			}
		}