@@ -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 ( ) }
@@ -96,7 +96,7 @@ module FunctionCompositionCall {
9696 override DataFlow:: Node getOperandNode ( int i ) { result = getEffectiveArgument ( i ) }
9797 }
9898
99- /** A call whose arguments are functions `f,g,h` which are composed into `f (g(h (...))` */
99+ /** A call whose arguments are functions `f,g,h` which are composed into `h (g(f (...))` */
100100 private class LeftToRight extends WithArrayOverloading {
101101 LeftToRight ( ) {
102102 this = DataFlow:: moduleImport ( "just-compose" ) .getACall ( )
0 commit comments