@@ -4,7 +4,7 @@ const reduceToken = require('./src/reduceToken');
44const tokenConverter = require ( './src/tokenConverter.js' ) ;
55const tokenExporter = require ( './src/tokenExporter.js' ) ;
66
7- const doxyjs = ( input_data , encoding , linebreak ) => {
7+ const doxyjs = ( input_data , encoding , linebreak , ts ) => {
88 const input_lines = input_data . split ( linebreak ) . filter ( line => line . length ) ;
99 const input_file_tokens = input_lines . reduce ( extractToken , [ ] ) ;
1010 const input_file_structure = input_file_tokens . reduce ( reduceToken , {
@@ -24,14 +24,14 @@ const doxyjs = (input_data, encoding, linebreak) => {
2424 . map ( tokenConverter . convertClass ) ;
2525
2626 const exported_variables = global_variables . map ( v =>
27- tokenExporter . exportGlobalVariable ( v , linebreak )
27+ tokenExporter . exportGlobalVariable ( v , linebreak , ts )
2828 ) ;
2929 const exported_functions = global_functions . map ( f =>
30- tokenExporter . exportGlobalFunction ( f , linebreak )
30+ tokenExporter . exportGlobalFunction ( f , linebreak , ts )
3131 ) ;
3232
3333 const exported_classes = classes . map ( c =>
34- tokenExporter . exportClass ( c , linebreak )
34+ tokenExporter . exportClass ( c , linebreak , ts )
3535 ) ;
3636
3737 process . stdout . write (
@@ -42,13 +42,13 @@ const doxyjs = (input_data, encoding, linebreak) => {
4242 ) ;
4343} ;
4444
45- module . exports = ( filename , encoding , linebreak ) => {
45+ module . exports = ( filename , encoding , linebreak , ts ) => {
4646 fs . readFile ( filename , encoding , ( error , data ) => {
4747 if ( error ) {
4848 console . error ( `doxyjs: can't read file ${ filename } , aborting` ) ;
4949 process . exit ( 1 ) ;
5050 }
5151
52- doxyjs ( data , encoding , linebreak ) ;
52+ doxyjs ( data , encoding , linebreak , ts ) ;
5353 } ) ;
5454} ;
0 commit comments