@@ -6,7 +6,7 @@ import javascript
66
77/**
88 * A call to a function that constructs a function composition `f(g(h(...)))` from a
9- * series functions `f, g, h, ...`.
9+ * series of functions `f, g, h, ...`.
1010 */
1111class FunctionCompositionCall extends DataFlow:: CallNode {
1212 FunctionCompositionCall:: Range range ;
@@ -35,7 +35,7 @@ class FunctionCompositionCall extends DataFlow::CallNode {
3535 }
3636
3737 /** Gets any of the functions being composed. */
38- final DataFlow:: Node getAnOperandFunction ( ) { result = getOperandFunction ( _) }
38+ final DataFlow:: FunctionNode getAnOperandFunction ( ) { result = getOperandFunction ( _) }
3939
4040 /** Gets the number of functions being composed. */
4141 int getNumOperand ( ) { result = range .getNumOperand ( ) }
@@ -88,15 +88,17 @@ module FunctionCompositionCall {
8888 RightToLeft ( ) {
8989 this = DataFlow:: moduleImport ( [ "compose-function" ] ) .getACall ( )
9090 or
91- this = DataFlow:: moduleMember ( [ "redux" , "ramda" , "@reduxjs/toolkit" ] , "compose" ) .getACall ( )
91+ this =
92+ DataFlow:: moduleMember ( [ "redux" , "ramda" , "@reduxjs/toolkit" , "recompose" ] , "compose" )
93+ .getACall ( )
9294 or
9395 this = LodashUnderscore:: member ( "flowRight" ) .getACall ( )
9496 }
9597
9698 override DataFlow:: Node getOperandNode ( int i ) { result = getEffectiveArgument ( i ) }
9799 }
98100
99- /** A call whose arguments are functions `f,g,h` which are composed into `f (g(h (...))` */
101+ /** A call whose arguments are functions `f,g,h` which are composed into `h (g(f (...))` */
100102 private class LeftToRight extends WithArrayOverloading {
101103 LeftToRight ( ) {
102104 this = DataFlow:: moduleImport ( "just-compose" ) .getACall ( )
0 commit comments