@@ -27,31 +27,31 @@ exports.source = source;
2727 * A source that returns an empty tree.
2828 */
2929function empty ( ) {
30- return ( ) => static_1 . empty ( ) ;
30+ return ( ) => ( 0 , static_1 . empty ) ( ) ;
3131}
3232exports . empty = empty ;
3333/**
3434 * Chain multiple rules into a single rule.
3535 */
3636function chain ( rules ) {
3737 return ( tree , context ) => {
38- return rules . reduce ( ( acc , curr ) => call_1 . callRule ( curr , acc , context ) , tree ) ;
38+ return rules . reduce ( ( acc , curr ) => ( 0 , call_1 . callRule ) ( curr , acc , context ) , tree ) ;
3939 } ;
4040}
4141exports . chain = chain ;
4242/**
4343 * Apply multiple rules to a source, and returns the source transformed.
4444 */
4545function apply ( source , rules ) {
46- return ( context ) => call_1 . callRule ( chain ( rules ) , call_1 . callSource ( source , context ) , context ) ;
46+ return ( context ) => ( 0 , call_1 . callRule ) ( chain ( rules ) , ( 0 , call_1 . callSource ) ( source , context ) , context ) ;
4747}
4848exports . apply = apply ;
4949/**
5050 * Merge an input tree with the source passed in.
5151 */
5252function mergeWith ( source , strategy = interface_1 . MergeStrategy . Default ) {
5353 return ( tree , context ) => {
54- return call_1 . callSource ( source , context ) . pipe ( operators_1 . map ( ( sourceTree ) => tree . merge ( sourceTree , strategy || context . strategy ) ) , operators_1 . mapTo ( tree ) ) ;
54+ return ( 0 , call_1 . callSource ) ( source , context ) . pipe ( ( 0 , operators_1 . map ) ( ( sourceTree ) => tree . merge ( sourceTree , strategy || context . strategy ) ) , ( 0 , operators_1 . mapTo ) ( tree ) ) ;
5555 } ;
5656}
5757exports . mergeWith = mergeWith ;
@@ -71,12 +71,12 @@ function filter(predicate) {
7171}
7272exports . filter = filter ;
7373function asSource ( rule ) {
74- return ( context ) => call_1 . callRule ( rule , static_1 . empty ( ) , context ) ;
74+ return ( context ) => ( 0 , call_1 . callRule ) ( rule , ( 0 , static_1 . empty ) ( ) , context ) ;
7575}
7676exports . asSource = asSource ;
7777function branchAndMerge ( rule , strategy = interface_1 . MergeStrategy . Default ) {
7878 return ( tree , context ) => {
79- return call_1 . callRule ( rule , tree . branch ( ) , context ) . pipe ( operators_1 . map ( ( branch ) => tree . merge ( branch , strategy || context . strategy ) ) , operators_1 . mapTo ( tree ) ) ;
79+ return ( 0 , call_1 . callRule ) ( rule , tree . branch ( ) , context ) . pipe ( ( 0 , operators_1 . map ) ( ( branch ) => tree . merge ( branch , strategy || context . strategy ) ) , ( 0 , operators_1 . mapTo ) ( tree ) ) ;
8080 } ;
8181}
8282exports . branchAndMerge = branchAndMerge ;
@@ -93,8 +93,8 @@ function when(predicate, operator) {
9393exports . when = when ;
9494function partitionApplyMerge ( predicate , ruleYes , ruleNo ) {
9595 return ( tree , context ) => {
96- const [ yes , no ] = static_1 . partition ( tree , predicate ) ;
97- return rxjs_1 . concat ( call_1 . callRule ( ruleYes , yes , context ) , call_1 . callRule ( ruleNo || noop ( ) , no , context ) ) . pipe ( operators_1 . toArray ( ) , operators_1 . map ( ( [ yesTree , noTree ] ) => {
96+ const [ yes , no ] = ( 0 , static_1 . partition ) ( tree , predicate ) ;
97+ return ( 0 , rxjs_1 . concat ) ( ( 0 , call_1 . callRule ) ( ruleYes , yes , context ) , ( 0 , call_1 . callRule ) ( ruleNo || noop ( ) , no , context ) ) . pipe ( ( 0 , operators_1 . toArray ) ( ) , ( 0 , operators_1 . map ) ( ( [ yesTree , noTree ] ) => {
9898 yesTree . merge ( noTree , context . strategy ) ;
9999 return yesTree ;
100100 } ) ) ;
@@ -142,7 +142,7 @@ exports.composeFileOperators = composeFileOperators;
142142function applyToSubtree ( path , rules ) {
143143 return ( tree , context ) => {
144144 const scoped = new scoped_1 . ScopedTree ( tree , path ) ;
145- return call_1 . callRule ( chain ( rules ) , scoped , context ) . pipe ( operators_1 . map ( ( result ) => {
145+ return ( 0 , call_1 . callRule ) ( chain ( rules ) , scoped , context ) . pipe ( ( 0 , operators_1 . map ) ( ( result ) => {
146146 if ( result === scoped ) {
147147 return tree ;
148148 }
0 commit comments