@@ -6,7 +6,7 @@ import javascript
6
6
7
7
/**
8
8
* 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, ...`.
10
10
*/
11
11
class FunctionCompositionCall extends DataFlow:: CallNode {
12
12
FunctionCompositionCall:: Range range ;
@@ -35,7 +35,7 @@ class FunctionCompositionCall extends DataFlow::CallNode {
35
35
}
36
36
37
37
/** Gets any of the functions being composed. */
38
- final DataFlow:: Node getAnOperandFunction ( ) { result = getOperandFunction ( _) }
38
+ final DataFlow:: FunctionNode getAnOperandFunction ( ) { result = getOperandFunction ( _) }
39
39
40
40
/** Gets the number of functions being composed. */
41
41
int getNumOperand ( ) { result = range .getNumOperand ( ) }
@@ -96,7 +96,7 @@ module FunctionCompositionCall {
96
96
override DataFlow:: Node getOperandNode ( int i ) { result = getEffectiveArgument ( i ) }
97
97
}
98
98
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 (...))` */
100
100
private class LeftToRight extends WithArrayOverloading {
101
101
LeftToRight ( ) {
102
102
this = DataFlow:: moduleImport ( "just-compose" ) .getACall ( )
0 commit comments