public FileParser(string fileName, ParsingParams prams, bool process, bool imported, string[] searchDirs, bool throwOnError) { FileParser._throwOnError = throwOnError; this.imported = imported; this.prams = prams; this.fileName = ResolveFile(fileName, searchDirs); this.searchDirs = searchDirs.Concat(new string[] { Path.GetDirectoryName(this.fileName) }).Distinct().ToArray(); if (process) { ProcessFile(); } }
public FileParser(string fileName, ParsingParams prams, bool process, bool imported, string[] searchDirs, bool throwOnError) { FileParser._throwOnError = throwOnError; this.imported = imported; this.prams = prams; this.searchDirs = searchDirs; this.fileName = ResolveFile(fileName, searchDirs); if (process) { ProcessFile(); } }
public FileParser(string fileName, ParsingParams prams, bool process, bool imported, string[] searchDirs, bool throwOnError) { FileParser._throwOnError = throwOnError; this.imported = imported; this.prams = prams; this.fileName = ResolveFile(fileName, searchDirs); this.searchDirs = Utils.RemovePathDuplicates(Utils.Concat(searchDirs, Path.GetDirectoryName(this.fileName))); if (process) { ProcessFile(); } }
public FileParser(string fileName, ParsingParams prams, bool process, bool imported, string[] searchDirs, bool throwOnError) { FileParser._throwOnError = throwOnError; this.imported = imported; this.prams = prams; this.searchDirs = searchDirs; this.fileName = ResolveFile(fileName, searchDirs); if (process) ProcessFile(); }
public FileParser(string fileName, ParsingParams prams, bool process, bool imported, string[] searchDirs, bool throwOnError) { FileParser._throwOnError = throwOnError; this.imported = imported; this.prams = prams; this.fileName = ResolveFile(fileName, searchDirs); this.searchDirs = Utils.RemovePathDuplicates(Utils.Concat(searchDirs, Path.GetDirectoryName(this.fileName))); if (process) ProcessFile(); }