Пример #1
0
        /// <summary>
        /// Adds a new module of code to the list of available modules and returns a ProjectEntry object.
        ///
        /// This method is thread safe.
        /// </summary>
        /// <param name="moduleName">The name of the module; used to associate with imports</param>
        /// <param name="filePath">The path to the file on disk</param>
        /// <param name="cookie">An application-specific identifier for the module</param>
        /// <returns></returns>
        public ProjectEntry AddModule(string filePath, IAnalysisCookie cookie = null)
        {
            var entry = new ProjectEntry(this, filePath, cookie);

            Modules.AddModule(filePath, entry);

            return(entry);
        }