File tree Expand file tree Collapse file tree 8 files changed +211
-33
lines changed Expand file tree Collapse file tree 8 files changed +211
-33
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,10 @@ module.exports = function () {
5050 // This behavior is in need of fixing https://github.com/documentationjs/documentation/issues/351
5151 findKind ( path . node . declarations [ 0 ] . init ) ;
5252 }
53- } else if ( t . isExportNamedDeclaration ( path ) ) {
53+ } else if ( t . isExportNamedDeclaration ( path ) && path . node . declaration ) {
54+ // && makes sure that
55+ // export { foo } from bar;
56+ // doesn't check for a non-existent declaration type
5457 if ( path . node . declaration . kind === 'const' ) {
5558 comment . kind = 'constant' ;
5659 }
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ This function returns the number one.
5050
5151Returns ** [ Number] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number ) ** numberone
5252
53+ # execute
54+
55+ This is re-exported
56+
5357# foo
5458
5559This is an async method
Original file line number Diff line number Diff line change 865865 }
866866 ]
867867 },
868+ {
869+ "depth" : 1 ,
870+ "type" : " heading" ,
871+ "children" : [
872+ {
873+ "type" : " text" ,
874+ "value" : " execute"
875+ }
876+ ]
877+ },
878+ {
879+ "type" : " paragraph" ,
880+ "children" : [
881+ {
882+ "type" : " text" ,
883+ "value" : " This is re-exported" ,
884+ "position" : {
885+ "start" : {
886+ "line" : 1 ,
887+ "column" : 1 ,
888+ "offset" : 0
889+ },
890+ "end" : {
891+ "line" : 1 ,
892+ "column" : 20 ,
893+ "offset" : 19
894+ },
895+ "indent" : []
896+ }
897+ }
898+ ],
899+ "position" : {
900+ "start" : {
901+ "line" : 1 ,
902+ "column" : 1 ,
903+ "offset" : 0
904+ },
905+ "end" : {
906+ "line" : 1 ,
907+ "column" : 20 ,
908+ "offset" : 19
909+ },
910+ "indent" : []
911+ }
912+ },
868913 {
869914 "depth" : 1 ,
870915 "type" : " heading" ,
Original file line number Diff line number Diff line change @@ -117,3 +117,8 @@ function iAmPublic() { }
117117 * @access private
118118 */
119119function iAmAccessPrivate ( ) { }
120+
121+ /**
122+ * This is re-exported
123+ */
124+ export { execute } from 'external-module' ;
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ This function returns the number one.
5050
5151Returns ** [ Number] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number ) ** numberone
5252
53+ # execute
54+
55+ This is re-exported
56+
5357# foo
5458
5559This is an async method
Original file line number Diff line number Diff line change 865865 }
866866 ]
867867 },
868+ {
869+ "depth" : 1 ,
870+ "type" : " heading" ,
871+ "children" : [
872+ {
873+ "type" : " text" ,
874+ "value" : " execute"
875+ }
876+ ]
877+ },
878+ {
879+ "type" : " paragraph" ,
880+ "children" : [
881+ {
882+ "type" : " text" ,
883+ "value" : " This is re-exported" ,
884+ "position" : {
885+ "start" : {
886+ "line" : 1 ,
887+ "column" : 1 ,
888+ "offset" : 0
889+ },
890+ "end" : {
891+ "line" : 1 ,
892+ "column" : 20 ,
893+ "offset" : 19
894+ },
895+ "indent" : []
896+ }
897+ }
898+ ],
899+ "position" : {
900+ "start" : {
901+ "line" : 1 ,
902+ "column" : 1 ,
903+ "offset" : 0
904+ },
905+ "end" : {
906+ "line" : 1 ,
907+ "column" : 20 ,
908+ "offset" : 19
909+ },
910+ "indent" : []
911+ }
912+ },
868913 {
869914 "depth" : 1 ,
870915 "type" : " heading" ,
You can’t perform that action at this time.
0 commit comments