コード例 #1
0
        /// <summary>
        /// Gets the script for the extracted types
        /// </summary>
        /// <param name="context">The context for writing the script</param>
        /// <returns>The script text</returns>
        public string GetText(TypeWriteContext context)
        {
            _context = context;

            _imports   = ImportManager.FromTypes(_context.IncludedTypes, _context.OutputPath);
            _formatter = new TypeScriptTypeFormatter(context.TypeCollection, new ModuleTypePrefixResolver(_imports));              // Add no prefix to the types

            return(TransformText());
        }