@@ -370,7 +370,7 @@ class Parser extends Tapable {
370370 const param = this . evaluateExpression ( expr . callee . object ) ;
371371 if ( ! param ) return ;
372372 const property = expr . callee . property . name || expr . callee . property . value ;
373- return this . applyPluginsBailResult ( "evaluate CallExpression ." + property , expr , param ) ;
373+ return this . applyPluginsBailResult2 ( "evaluate CallExpression ." + property , expr , param ) ;
374374 } ) ;
375375 this . plugin ( "evaluate CallExpression .replace" , function ( expr , param ) {
376376 if ( ! param . isString ( ) ) return ;
@@ -733,20 +733,20 @@ class Parser extends Tapable {
733733
734734 prewalkImportDeclaration ( statement ) {
735735 const source = statement . source . value ;
736- this . applyPluginsBailResult ( "import" , statement , source ) ;
736+ this . applyPluginsBailResult2 ( "import" , statement , source ) ;
737737 statement . specifiers . forEach ( function ( specifier ) {
738738 const name = specifier . local . name ;
739739 this . scope . renames . set ( name , null ) ;
740740 this . scope . definitions . add ( name ) ;
741741 switch ( specifier . type ) {
742742 case "ImportDefaultSpecifier" :
743- this . applyPluginsBailResult ( "import specifier" , statement , source , "default" , name ) ;
743+ this . applyPluginsBailResult4 ( "import specifier" , statement , source , "default" , name ) ;
744744 break ;
745745 case "ImportSpecifier" :
746- this . applyPluginsBailResult ( "import specifier" , statement , source , specifier . imported . name , name ) ;
746+ this . applyPluginsBailResult4 ( "import specifier" , statement , source , specifier . imported . name , name ) ;
747747 break ;
748748 case "ImportNamespaceSpecifier" :
749- this . applyPluginsBailResult ( "import specifier" , statement , source , null , name ) ;
749+ this . applyPluginsBailResult4 ( "import specifier" , statement , source , null , name ) ;
750750 break ;
751751 }
752752 } , this ) ;
@@ -756,15 +756,15 @@ class Parser extends Tapable {
756756 let source ;
757757 if ( statement . source ) {
758758 source = statement . source . value ;
759- this . applyPluginsBailResult ( "export import" , statement , source ) ;
759+ this . applyPluginsBailResult2 ( "export import" , statement , source ) ;
760760 } else {
761761 this . applyPluginsBailResult1 ( "export" , statement ) ;
762762 }
763763 if ( statement . declaration ) {
764764 if ( / E x p r e s s i o n $ / . test ( statement . declaration . type ) ) {
765765 throw new Error ( "Doesn't occur?" ) ;
766766 } else {
767- if ( ! this . applyPluginsBailResult ( "export declaration" , statement , statement . declaration ) ) {
767+ if ( ! this . applyPluginsBailResult2 ( "export declaration" , statement , statement . declaration ) ) {
768768 const originalDefinitions = this . scope . definitions ;
769769 const tracker = new TrackingSet ( this . scope . definitions ) ;
770770 this . scope . definitions = tracker ;
@@ -773,7 +773,7 @@ class Parser extends Tapable {
773773 this . scope . definitions = originalDefinitions ;
774774 for ( let index = newDefs . length - 1 ; index >= 0 ; index -- ) {
775775 const def = newDefs [ index ] ;
776- this . applyPluginsBailResult ( "export specifier" , statement , def , def , index ) ;
776+ this . applyPluginsBailResult4 ( "export specifier" , statement , def , def , index ) ;
777777 }
778778 }
779779 }
@@ -786,9 +786,9 @@ class Parser extends Tapable {
786786 {
787787 const name = specifier . exported . name ;
788788 if ( source )
789- this . applyPluginsBailResult ( "export import specifier" , statement , source , specifier . local . name , name , specifierIndex ) ;
789+ this . applyPluginsBailResult5 ( "export import specifier" , statement , source , specifier . local . name , name , specifierIndex ) ;
790790 else
791- this . applyPluginsBailResult ( "export specifier" , statement , specifier . local . name , name , specifierIndex ) ;
791+ this . applyPluginsBailResult4 ( "export specifier" , statement , specifier . local . name , name , specifierIndex ) ;
792792 break ;
793793 }
794794 }
@@ -812,29 +812,29 @@ class Parser extends Tapable {
812812 this . scope . definitions = originalDefinitions ;
813813 for ( let index = 0 , len = newDefs . length ; index < len ; index ++ ) {
814814 const def = newDefs [ index ] ;
815- this . applyPluginsBailResult ( "export specifier" , statement , def , "default" ) ;
815+ this . applyPluginsBailResult3 ( "export specifier" , statement , def , "default" ) ;
816816 }
817817 }
818818 }
819819
820820 walkExportDefaultDeclaration ( statement ) {
821821 this . applyPluginsBailResult1 ( "export" , statement ) ;
822822 if ( / D e c l a r a t i o n $ / . test ( statement . declaration . type ) ) {
823- if ( ! this . applyPluginsBailResult ( "export declaration" , statement , statement . declaration ) ) {
823+ if ( ! this . applyPluginsBailResult2 ( "export declaration" , statement , statement . declaration ) ) {
824824 this . walkStatement ( statement . declaration ) ;
825825 }
826826 } else {
827827 this . walkExpression ( statement . declaration ) ;
828- if ( ! this . applyPluginsBailResult ( "export expression" , statement , statement . declaration ) ) {
829- this . applyPluginsBailResult ( "export specifier" , statement , statement . declaration , "default" ) ;
828+ if ( ! this . applyPluginsBailResult2 ( "export expression" , statement , statement . declaration ) ) {
829+ this . applyPluginsBailResult3 ( "export specifier" , statement , statement . declaration , "default" ) ;
830830 }
831831 }
832832 }
833833
834834 prewalkExportAllDeclaration ( statement ) {
835835 const source = statement . source . value ;
836- this . applyPluginsBailResult ( "export import" , statement , source ) ;
837- this . applyPluginsBailResult ( "export import specifier" , statement , source , null , null , 0 ) ;
836+ this . applyPluginsBailResult2 ( "export import" , statement , source ) ;
837+ this . applyPluginsBailResult5 ( "export import specifier" , statement , source , null , null , 0 ) ;
838838 }
839839
840840 prewalkVariableDeclaration ( statement ) {
@@ -1438,7 +1438,7 @@ class Parser extends Tapable {
14381438 } ;
14391439 const state = this . state = initialState || { } ;
14401440 this . comments = comments ;
1441- if ( this . applyPluginsBailResult ( "program" , ast , comments ) === undefined ) {
1441+ if ( this . applyPluginsBailResult2 ( "program" , ast , comments ) === undefined ) {
14421442 this . prewalkStatements ( ast . body ) ;
14431443 this . walkStatements ( ast . body ) ;
14441444 }
0 commit comments