@wavemaker/app-ng-runtime 11.5.0-next.24727 → 11.5.0-next.24729

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { Attribute, ImplicitReceiver, LiteralPrimitive, LiteralArray, LiteralMap, PropertyRead, PropertyWrite, KeyedRead, PrefixNot, Binary, Conditional, Call, Chain, BindingPipe, Parser, Lexer } from '@angular/compiler';
1
+ import { Attribute, ImplicitReceiver, PropertyRead, LiteralPrimitive, LiteralArray, LiteralMap, PropertyWrite, KeyedRead, PrefixNot, Binary, Conditional, Call, Chain, BindingPipe, Parser, Lexer } from '@angular/compiler';
2
2
  import { Subject } from 'rxjs';
3
3
  import * as i0 from '@angular/core';
4
4
  import { Injectable, NgModule } from '@angular/core';
@@ -1756,8 +1756,7 @@ class ASTCompiler {
1756
1756
  }
1757
1757
  const fn = this.build(ast.receiver, stmts);
1758
1758
  const v = this.createVar();
1759
- const isImplicitReceiver = ast.receiver instanceof ImplicitReceiver;
1760
- const exp = stmts[stmts.length - 1];
1759
+ const isImplicitReceiver = ast.receiver instanceof ImplicitReceiver || (ast.receiver instanceof PropertyRead && ast.receiver?.receiver instanceof ImplicitReceiver);
1761
1760
  const context = stmts[stmts.length - 1].split('&&')[0].split('=')[1];
1762
1761
  stmts.push(`${v}= ${fn}&&${fn}${isImplicitReceiver ? '.bind(_ctx)' : `.bind(${context})`}(${_args.join(',')})`);
1763
1762
  return v;