@@ -14,7 +14,6 @@ export class SyntaxScriptCompiler {
1414 private readonly rootDir : string ;
1515 private readonly outDir : string ;
1616 private readonly mainFileFormat : string ;
17- private readonly watchMode : boolean ;
1817
1918 public readonly exportData : Record < string , AnyExportable [ ] > = { } ;
2019
@@ -23,16 +22,14 @@ export class SyntaxScriptCompiler {
2322 * @param {string } rootDir Root dir to search for source files.
2423 * @param {string } outDir Out dir to write compiled files.
2524 * @param {string } format File format to compile.
26- * @param {boolean } watch Whether is it watch mode or not. Will affect how errors are handled.
2725 * @author efekos
28- * @version 1.0.0
26+ * @version 1.0.1
2927 * @since 0.0.1-alpha
3028 */
31- constructor ( rootDir : string , outDir : string , format : string , watch : boolean = false ) {
29+ constructor ( rootDir : string , outDir : string , format : string ) {
3230 this . rootDir = join ( process . cwd ( ) , rootDir ) ;
3331 this . outDir = join ( process . cwd ( ) , outDir ) ;
3432 this . mainFileFormat = format ;
35- this . watchMode = watch ;
3633 }
3734
3835 /**
@@ -72,7 +69,7 @@ export class SyntaxScriptCompiler {
7269 * @since 0.0.1-alpha
7370 */
7471 public compileSyx ( file : string ) {
75- const ast = syxparser . parseTokens ( tokenizeSyx ( readFileSync ( file ) . toString ( ) , this . watchMode ) , this . watchMode ) ;
72+ const ast = syxparser . parseTokens ( tokenizeSyx ( readFileSync ( file ) . toString ( ) ) ) ;
7673 const out : AnyExportable [ ] = [ ] ;
7774
7875 ast . body . forEach ( statement => {
@@ -200,7 +197,7 @@ export class SyntaxScriptCompiler {
200197 * @version 1.0.2
201198 */
202199 public compileSys ( file : string ) {
203- const ast = sysparser . parseTokens ( tokenizeSys ( readFileSync ( file ) . toString ( ) ) , this . watchMode ) ;
200+ const ast = sysparser . parseTokens ( tokenizeSys ( readFileSync ( file ) . toString ( ) ) ) ;
204201
205202 //# Handle import statements
206203 var imported : AnyExportable [ ] = [ ] ;
0 commit comments