File tree Expand file tree Collapse file tree
src/compiler/transformers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -695,6 +695,7 @@ function runTestsAndWriteOutput(file) {
695695 cleanTestDirs ( ) ;
696696 var tests = process . env . test || process . env . tests || process . env . t ;
697697 var light = process . env . light || false ;
698+ var beep = process . env . beep ;
698699 var testConfigFile = 'test.config' ;
699700 if ( fs . existsSync ( testConfigFile ) ) {
700701 fs . unlinkSync ( testConfigFile ) ;
@@ -790,6 +791,8 @@ function runTestsAndWriteOutput(file) {
790791 console . log ( comments . join ( os . EOL ) ) ;
791792 deleteTemporaryProjectOutput ( ) ;
792793 complete ( ) ;
794+
795+ if ( beep ) process . stdout . write ( "\u0007" ) ;
793796 } ) ;
794797 ex . addListener ( "error" , function ( e , status ) {
795798 if ( progress . visible ) {
@@ -804,6 +807,7 @@ function runTestsAndWriteOutput(file) {
804807 }
805808
806809 deleteTemporaryProjectOutput ( ) ;
810+ if ( beep ) process . stdout . write ( "\u0007" ) ;
807811 fail ( "Process exited with code " + status ) ;
808812 } ) ;
809813 ex . run ( ) ;
Original file line number Diff line number Diff line change @@ -1793,11 +1793,14 @@ namespace ts {
17931793 return undefined ;
17941794 }
17951795
1796- return createMethod (
1797- visitNodes ( node . modifiers , visitor , isModifier ) ,
1798- visitPropertyNameOfClassElement ( node ) ,
1799- visitNodes ( node . parameters , visitor , isParameter ) ,
1800- transformFunctionBody ( node ) ,
1796+ return setOriginalNode (
1797+ createMethod (
1798+ visitNodes ( node . modifiers , visitor , isModifier ) ,
1799+ visitPropertyNameOfClassElement ( node ) ,
1800+ visitNodes ( node . parameters , visitor , isParameter ) ,
1801+ transformFunctionBody ( node ) ,
1802+ node
1803+ ) ,
18011804 node
18021805 ) ;
18031806 }
You can’t perform that action at this time.
0 commit comments