示例#1
0
        public DocGenerator(DocProject project)
        {
            _project = project;

            _templatePath = project.TemplateName;

            _outputPath = Path.Combine(project.TargetPath, "data/");

            if (_project.ClearBeforeRebuild) {
                Directory.Delete(_outputPath, true);
            }

            Directory.CreateDirectory(_outputPath);
        }
示例#2
0
 /// <summary>
 /// 初始化 <see cref="DocPlus.DocParser.Javascript.DocAstVistor"/> 的新实例。
 /// </summary>
 public DocAstVistor(DocProject project)
 {
     _project = project;
 }
示例#3
0
文件: DocParser.cs 项目: xuld/DocPlus
 /// <summary>
 /// 初始化 <see cref="DocPlus.Javascript.DocParser"/> 类的新实例。
 /// </summary>
 /// <param name="project">一个 <see cref="DocProject"/> 对象,包含用于解析的全部配置。</param>
 public DocParser(DocProject project)
 {
     _project = project;
     _parser = new Parser(this, new ErrorReporter(this));
     _parser.IsStrictMode = project.UseStrictMode;
     _docCommentParser = new JavaCommentParser(this);
     _docAstVistor = new DocAstVistor(_project);
     _docMerger = new DocMerger(this);
     Data = new DocData();
     Ignores = new List<string>();
 }