diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 990c8e9a03..d5f7be1838 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -1,4 +1,4 @@ -# Created with package:mono_repo v6.5.7 +# Created with package:mono_repo v6.6.1 name: Dart CI on: push: @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable" @@ -30,44 +30,44 @@ jobs: os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: sdk: stable - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: mono_repo self validate - run: dart pub global activate mono_repo 6.5.7 + run: dart pub global activate mono_repo 6.6.1 - name: mono_repo self validate run: dart pub global run mono_repo generate --validate job_002: - name: "analyze; Dart 2.18.0; PKGS: ngast, ngcompiler; `dart analyze --fatal-infos`" + name: "analyze; Dart 3.1.0; PKGS: ngast, ngcompiler, ngdart, ngforms, ngrouter, ngtest; `dart analyze --fatal-infos .`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngast-ngcompiler;commands:analyze_0" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngast-ngcompiler-ngdart-ngforms-ngrouter-ngtest;commands:analyze" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngast-ngcompiler - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngast-ngcompiler-ngdart-ngforms-ngrouter-ngtest + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.18.0" + sdk: "3.1.0" - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngast_pub_upgrade name: ngast; dart pub upgrade run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: ngast - - name: "ngast; dart analyze --fatal-infos" - run: dart analyze --fatal-infos + - name: "ngast; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . if: "always() && steps.ngast_pub_upgrade.conclusion == 'success'" working-directory: ngast - id: ngcompiler_pub_upgrade @@ -75,33 +75,69 @@ jobs: run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: ngcompiler - - name: "ngcompiler; dart analyze --fatal-infos" - run: dart analyze --fatal-infos + - name: "ngcompiler; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . if: "always() && steps.ngcompiler_pub_upgrade.conclusion == 'success'" working-directory: ngcompiler + - id: ngdart_pub_upgrade + name: ngdart; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: ngdart + - name: "ngdart; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . + if: "always() && steps.ngdart_pub_upgrade.conclusion == 'success'" + working-directory: ngdart + - id: ngforms_pub_upgrade + name: ngforms; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: ngforms + - name: "ngforms; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . + if: "always() && steps.ngforms_pub_upgrade.conclusion == 'success'" + working-directory: ngforms + - id: ngrouter_pub_upgrade + name: ngrouter; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: ngrouter + - name: "ngrouter; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . + if: "always() && steps.ngrouter_pub_upgrade.conclusion == 'success'" + working-directory: ngrouter + - id: ngtest_pub_upgrade + name: ngtest; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: ngtest + - name: "ngtest; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . + if: "always() && steps.ngtest_pub_upgrade.conclusion == 'success'" + working-directory: ngtest needs: - job_001 job_003: - name: "analyze; Dart 2.18.0; PKGS: ngast, ngcompiler, ngdart; `dart format --output=none --set-exit-if-changed .`" + name: "analyze; Dart 3.1.0; PKGS: ngast, ngcompiler, ngdart, ngforms, ngrouter, ngtest; `dart format --output=none --set-exit-if-changed .`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngast-ngcompiler-ngdart;commands:format" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngast-ngcompiler-ngdart-ngforms-ngrouter-ngtest;commands:format" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngast-ngcompiler-ngdart - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngast-ngcompiler-ngdart-ngforms-ngrouter-ngtest + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.18.0" + sdk: "3.1.0" - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngast_pub_upgrade name: ngast; dart pub upgrade run: dart pub upgrade @@ -129,109 +165,63 @@ jobs: run: "dart format --output=none --set-exit-if-changed ." if: "always() && steps.ngdart_pub_upgrade.conclusion == 'success'" working-directory: ngdart - needs: - - job_001 - job_004: - name: "analyze; Dart 2.18.0; PKG: ngdart; `dart analyze`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngdart;commands:analyze_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngdart - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0 - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: "2.18.0" - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: ngdart_pub_upgrade - name: ngdart; dart pub upgrade + - id: ngforms_pub_upgrade + name: ngforms; dart pub upgrade run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" - working-directory: ngdart - - name: ngdart; dart analyze - run: dart analyze - if: "always() && steps.ngdart_pub_upgrade.conclusion == 'success'" - working-directory: ngdart - needs: - - job_001 - job_005: - name: "analyze; Dart 2.19.6; PKGS: ngast, ngcompiler; `dart analyze --fatal-infos`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngast-ngcompiler;commands:analyze_0" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngast-ngcompiler - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6 - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: "2.19.6" - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: ngast_pub_upgrade - name: ngast; dart pub upgrade + working-directory: ngforms + - name: "ngforms; dart format --output=none --set-exit-if-changed ." + run: "dart format --output=none --set-exit-if-changed ." + if: "always() && steps.ngforms_pub_upgrade.conclusion == 'success'" + working-directory: ngforms + - id: ngrouter_pub_upgrade + name: ngrouter; dart pub upgrade run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" - working-directory: ngast - - name: "ngast; dart analyze --fatal-infos" - run: dart analyze --fatal-infos - if: "always() && steps.ngast_pub_upgrade.conclusion == 'success'" - working-directory: ngast - - id: ngcompiler_pub_upgrade - name: ngcompiler; dart pub upgrade + working-directory: ngrouter + - name: "ngrouter; dart format --output=none --set-exit-if-changed ." + run: "dart format --output=none --set-exit-if-changed ." + if: "always() && steps.ngrouter_pub_upgrade.conclusion == 'success'" + working-directory: ngrouter + - id: ngtest_pub_upgrade + name: ngtest; dart pub upgrade run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" - working-directory: ngcompiler - - name: "ngcompiler; dart analyze --fatal-infos" - run: dart analyze --fatal-infos - if: "always() && steps.ngcompiler_pub_upgrade.conclusion == 'success'" - working-directory: ngcompiler + working-directory: ngtest + - name: "ngtest; dart format --output=none --set-exit-if-changed ." + run: "dart format --output=none --set-exit-if-changed ." + if: "always() && steps.ngtest_pub_upgrade.conclusion == 'success'" + working-directory: ngtest needs: - job_001 - job_006: - name: "analyze; Dart 2.19.6; PKGS: ngast, ngcompiler, ngdart; `dart format --output=none --set-exit-if-changed .`" + job_004: + name: "analyze; Dart dev; PKGS: ngast, ngcompiler, ngdart, ngforms, ngrouter, ngtest; `dart analyze --fatal-infos .`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngast-ngcompiler-ngdart;commands:format" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngast-ngcompiler-ngdart-ngforms-ngrouter-ngtest;commands:analyze" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngast-ngcompiler-ngdart - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6 + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngast-ngcompiler-ngdart-ngforms-ngrouter-ngtest + os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.19.6" + sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngast_pub_upgrade name: ngast; dart pub upgrade run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: ngast - - name: "ngast; dart format --output=none --set-exit-if-changed ." - run: "dart format --output=none --set-exit-if-changed ." + - name: "ngast; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . if: "always() && steps.ngast_pub_upgrade.conclusion == 'success'" working-directory: ngast - id: ngcompiler_pub_upgrade @@ -239,8 +229,8 @@ jobs: run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: ngcompiler - - name: "ngcompiler; dart format --output=none --set-exit-if-changed ." - run: "dart format --output=none --set-exit-if-changed ." + - name: "ngcompiler; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . if: "always() && steps.ngcompiler_pub_upgrade.conclusion == 'success'" working-directory: ngcompiler - id: ngdart_pub_upgrade @@ -248,65 +238,60 @@ jobs: run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: ngdart - - name: "ngdart; dart format --output=none --set-exit-if-changed ." - run: "dart format --output=none --set-exit-if-changed ." + - name: "ngdart; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . if: "always() && steps.ngdart_pub_upgrade.conclusion == 'success'" working-directory: ngdart - needs: - - job_001 - job_007: - name: "analyze; Dart 2.19.6; PKG: ngdart; `dart analyze`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngdart;commands:analyze_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngdart - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6 - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: "2.19.6" - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: ngdart_pub_upgrade - name: ngdart; dart pub upgrade + - id: ngforms_pub_upgrade + name: ngforms; dart pub upgrade run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" - working-directory: ngdart - - name: ngdart; dart analyze - run: dart analyze - if: "always() && steps.ngdart_pub_upgrade.conclusion == 'success'" - working-directory: ngdart + working-directory: ngforms + - name: "ngforms; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . + if: "always() && steps.ngforms_pub_upgrade.conclusion == 'success'" + working-directory: ngforms + - id: ngrouter_pub_upgrade + name: ngrouter; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: ngrouter + - name: "ngrouter; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . + if: "always() && steps.ngrouter_pub_upgrade.conclusion == 'success'" + working-directory: ngrouter + - id: ngtest_pub_upgrade + name: ngtest; dart pub upgrade + run: dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: ngtest + - name: "ngtest; dart analyze --fatal-infos ." + run: dart analyze --fatal-infos . + if: "always() && steps.ngtest_pub_upgrade.conclusion == 'success'" + working-directory: ngtest needs: - job_001 - job_008: - name: "build; Dart 2.18.0; PKG: _tests; `dart run build_runner build --fail-on-severe`" + job_005: + name: "build; Dart 3.1.0; PKG: _tests; `dart run build_runner build --fail-on-severe`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:_tests;commands:command_0" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:_tests;commands:command_0" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:_tests - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:_tests + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.18.0" + sdk: "3.1.0" - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: _tests_pub_upgrade name: _tests; dart pub upgrade run: dart pub upgrade @@ -321,30 +306,27 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - - job_007 - job_009: - name: "build; Dart 2.18.0; PKG: ngforms; `dart run build_runner build --fail-on-severe`" + job_006: + name: "build; Dart 3.1.0; PKG: ngforms; `dart run build_runner build --fail-on-severe`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngforms;commands:command_0" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngforms;commands:command_0" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngforms - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngforms + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.18.0" + sdk: "3.1.0" - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngforms_pub_upgrade name: ngforms; dart pub upgrade run: dart pub upgrade @@ -359,30 +341,27 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - - job_007 - job_010: - name: "build; Dart 2.18.0; PKG: ngrouter; `dart run build_runner build --fail-on-severe`" + job_007: + name: "build; Dart 3.1.0; PKG: ngrouter; `dart run build_runner build --fail-on-severe`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngrouter;commands:command_0" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngrouter;commands:command_0" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngrouter - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngrouter + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.18.0" + sdk: "3.1.0" - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngrouter_pub_upgrade name: ngrouter; dart pub upgrade run: dart pub upgrade @@ -397,30 +376,27 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - - job_007 - job_011: - name: "build; Dart 2.18.0; PKG: ngtest; `dart run build_runner build --fail-on-severe`" + job_008: + name: "build; Dart 3.1.0; PKG: ngtest; `dart run build_runner build --fail-on-severe`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngtest;commands:command_0" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngtest;commands:command_0" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngtest - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngtest + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.18.0" + sdk: "3.1.0" - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngtest_pub_upgrade name: ngtest; dart pub upgrade run: dart pub upgrade @@ -435,30 +411,27 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - - job_007 - job_012: - name: "build; Dart 2.19.6; PKG: _tests; `dart run build_runner build --fail-on-severe`" + job_009: + name: "build; Dart dev; PKG: _tests; `dart run build_runner build --fail-on-severe`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:_tests;commands:command_0" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:_tests;commands:command_0" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:_tests - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6 + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:_tests + os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.19.6" + sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: _tests_pub_upgrade name: _tests; dart pub upgrade run: dart pub upgrade @@ -473,30 +446,27 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - - job_007 - job_013: - name: "build; Dart 2.19.6; PKG: ngforms; `dart run build_runner build --fail-on-severe`" + job_010: + name: "build; Dart dev; PKG: ngforms; `dart run build_runner build --fail-on-severe`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngforms;commands:command_0" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngforms;commands:command_0" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngforms - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6 + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngforms + os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.19.6" + sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngforms_pub_upgrade name: ngforms; dart pub upgrade run: dart pub upgrade @@ -511,30 +481,27 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - - job_007 - job_014: - name: "build; Dart 2.19.6; PKG: ngrouter; `dart run build_runner build --fail-on-severe`" + job_011: + name: "build; Dart dev; PKG: ngrouter; `dart run build_runner build --fail-on-severe`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngrouter;commands:command_0" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngrouter;commands:command_0" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngrouter - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6 + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngrouter + os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.19.6" + sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngrouter_pub_upgrade name: ngrouter; dart pub upgrade run: dart pub upgrade @@ -549,30 +516,27 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - - job_007 - job_015: - name: "build; Dart 2.19.6; PKG: ngtest; `dart run build_runner build --fail-on-severe`" + job_012: + name: "build; Dart dev; PKG: ngtest; `dart run build_runner build --fail-on-severe`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngtest;commands:command_0" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngtest;commands:command_0" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngtest - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6 + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngtest + os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.19.6" + sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngtest_pub_upgrade name: ngtest; dart pub upgrade run: dart pub upgrade @@ -587,30 +551,27 @@ jobs: - job_002 - job_003 - job_004 - - job_005 - - job_006 - - job_007 - job_016: - name: "unit_test; Dart 2.18.0; PKG: _tests; `dart run build_runner test --fail-on-severe -- -P browser`" + job_013: + name: "unit_test; Dart 3.1.0; PKG: _tests; `dart run build_runner test --fail-on-severe -- -P browser`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:_tests;commands:command_2" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:_tests;commands:command_2" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:_tests - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:_tests + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.18.0" + sdk: "3.1.0" - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: _tests_pub_upgrade name: _tests; dart pub upgrade run: dart pub upgrade @@ -633,37 +594,34 @@ jobs: - job_010 - job_011 - job_012 - - job_013 - - job_014 - - job_015 - job_017: - name: "unit_test; Dart 2.18.0; PKG: _tests; `dart run test -P vm`" + job_014: + name: "unit_test; Dart 3.1.0; PKG: _tests; `dart test -P vm`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:_tests;commands:command_1" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:_tests;commands:command_1" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:_tests - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:_tests + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.18.0" + sdk: "3.1.0" - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: _tests_pub_upgrade name: _tests; dart pub upgrade run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: _tests - - name: "_tests; dart run test -P vm" - run: dart run test -P vm + - name: "_tests; dart test -P vm" + run: dart test -P vm if: "always() && steps._tests_pub_upgrade.conclusion == 'success'" working-directory: _tests needs: @@ -679,30 +637,27 @@ jobs: - job_010 - job_011 - job_012 - - job_013 - - job_014 - - job_015 - job_018: - name: "unit_test; Dart 2.18.0; PKG: ngast; `dart test -P ci`" + job_015: + name: "unit_test; Dart 3.1.0; PKG: ngast; `dart test -P ci`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngast;commands:command_3" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngast;commands:test" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngast - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngast + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.18.0" + sdk: "3.1.0" - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngast_pub_upgrade name: ngast; dart pub upgrade run: dart pub upgrade @@ -725,30 +680,27 @@ jobs: - job_010 - job_011 - job_012 - - job_013 - - job_014 - - job_015 - job_019: - name: "unit_test; Dart 2.18.0; PKG: ngcompiler; `dart test -P ci`" + job_016: + name: "unit_test; Dart 3.1.0; PKG: ngcompiler; `dart test -P ci`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngcompiler;commands:command_3" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngcompiler;commands:test" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngcompiler - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngcompiler + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.18.0" + sdk: "3.1.0" - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngcompiler_pub_upgrade name: ngcompiler; dart pub upgrade run: dart pub upgrade @@ -771,30 +723,27 @@ jobs: - job_010 - job_011 - job_012 - - job_013 - - job_014 - - job_015 - job_020: - name: "unit_test; Dart 2.18.0; PKG: ngforms; `dart run build_runner test --fail-on-severe -- -P ci`" + job_017: + name: "unit_test; Dart 3.1.0; PKG: ngforms; `dart run build_runner test --fail-on-severe -- -P ci`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngforms;commands:command_4" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngforms;commands:command_3" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngforms - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngforms + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.18.0" + sdk: "3.1.0" - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngforms_pub_upgrade name: ngforms; dart pub upgrade run: dart pub upgrade @@ -817,30 +766,27 @@ jobs: - job_010 - job_011 - job_012 - - job_013 - - job_014 - - job_015 - job_021: - name: "unit_test; Dart 2.18.0; PKG: ngrouter; `dart run build_runner test --fail-on-severe -- -P ci`" + job_018: + name: "unit_test; Dart 3.1.0; PKG: ngrouter; `dart run build_runner test --fail-on-severe -- -P ci`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngrouter;commands:command_4" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngrouter;commands:command_3" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngrouter - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngrouter + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.18.0" + sdk: "3.1.0" - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngrouter_pub_upgrade name: ngrouter; dart pub upgrade run: dart pub upgrade @@ -863,30 +809,27 @@ jobs: - job_010 - job_011 - job_012 - - job_013 - - job_014 - - job_015 - job_022: - name: "unit_test; Dart 2.18.0; PKG: ngtest; `dart run build_runner test --fail-on-severe -- -P ci`" + job_019: + name: "unit_test; Dart 3.1.0; PKG: ngtest; `dart run build_runner test --fail-on-severe -- -P ci`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngtest;commands:command_4" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngtest;commands:command_3" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:ngtest - os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:ngtest + os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.18.0" + sdk: "3.1.0" - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngtest_pub_upgrade name: ngtest; dart pub upgrade run: dart pub upgrade @@ -909,30 +852,27 @@ jobs: - job_010 - job_011 - job_012 - - job_013 - - job_014 - - job_015 - job_023: - name: "unit_test; Dart 2.19.6; PKG: _tests; `dart run build_runner test --fail-on-severe -- -P browser`" + job_020: + name: "unit_test; Dart dev; PKG: _tests; `dart run build_runner test --fail-on-severe -- -P browser`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:_tests;commands:command_2" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:_tests;commands:command_2" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:_tests - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6 + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:_tests + os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.19.6" + sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: _tests_pub_upgrade name: _tests; dart pub upgrade run: dart pub upgrade @@ -955,37 +895,34 @@ jobs: - job_010 - job_011 - job_012 - - job_013 - - job_014 - - job_015 - job_024: - name: "unit_test; Dart 2.19.6; PKG: _tests; `dart run test -P vm`" + job_021: + name: "unit_test; Dart dev; PKG: _tests; `dart test -P vm`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:_tests;commands:command_1" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:_tests;commands:command_1" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:_tests - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6 + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:_tests + os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.19.6" + sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: _tests_pub_upgrade name: _tests; dart pub upgrade run: dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" working-directory: _tests - - name: "_tests; dart run test -P vm" - run: dart run test -P vm + - name: "_tests; dart test -P vm" + run: dart test -P vm if: "always() && steps._tests_pub_upgrade.conclusion == 'success'" working-directory: _tests needs: @@ -1001,30 +938,27 @@ jobs: - job_010 - job_011 - job_012 - - job_013 - - job_014 - - job_015 - job_025: - name: "unit_test; Dart 2.19.6; PKG: ngast; `dart test -P ci`" + job_022: + name: "unit_test; Dart dev; PKG: ngast; `dart test -P ci`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngast;commands:command_3" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngast;commands:test" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngast - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6 + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngast + os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.19.6" + sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngast_pub_upgrade name: ngast; dart pub upgrade run: dart pub upgrade @@ -1047,30 +981,27 @@ jobs: - job_010 - job_011 - job_012 - - job_013 - - job_014 - - job_015 - job_026: - name: "unit_test; Dart 2.19.6; PKG: ngcompiler; `dart test -P ci`" + job_023: + name: "unit_test; Dart dev; PKG: ngcompiler; `dart test -P ci`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngcompiler;commands:command_3" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngcompiler;commands:test" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngcompiler - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6 + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngcompiler + os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.19.6" + sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngcompiler_pub_upgrade name: ngcompiler; dart pub upgrade run: dart pub upgrade @@ -1093,30 +1024,27 @@ jobs: - job_010 - job_011 - job_012 - - job_013 - - job_014 - - job_015 - job_027: - name: "unit_test; Dart 2.19.6; PKG: ngforms; `dart run build_runner test --fail-on-severe -- -P ci`" + job_024: + name: "unit_test; Dart dev; PKG: ngforms; `dart run build_runner test --fail-on-severe -- -P ci`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngforms;commands:command_4" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngforms;commands:command_3" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngforms - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6 + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngforms + os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.19.6" + sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngforms_pub_upgrade name: ngforms; dart pub upgrade run: dart pub upgrade @@ -1139,30 +1067,27 @@ jobs: - job_010 - job_011 - job_012 - - job_013 - - job_014 - - job_015 - job_028: - name: "unit_test; Dart 2.19.6; PKG: ngrouter; `dart run build_runner test --fail-on-severe -- -P ci`" + job_025: + name: "unit_test; Dart dev; PKG: ngrouter; `dart run build_runner test --fail-on-severe -- -P ci`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngrouter;commands:command_4" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngrouter;commands:command_3" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngrouter - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6 + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngrouter + os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.19.6" + sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngrouter_pub_upgrade name: ngrouter; dart pub upgrade run: dart pub upgrade @@ -1185,30 +1110,27 @@ jobs: - job_010 - job_011 - job_012 - - job_013 - - job_014 - - job_015 - job_029: - name: "unit_test; Dart 2.19.6; PKG: ngtest; `dart run build_runner test --fail-on-severe -- -P ci`" + job_026: + name: "unit_test; Dart dev; PKG: ngtest; `dart run build_runner test --fail-on-severe -- -P ci`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngtest;commands:command_4" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngtest;commands:command_3" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6;packages:ngtest - os:ubuntu-latest;pub-cache-hosted;sdk:2.19.6 + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:ngtest + os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f + uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d with: - sdk: "2.19.6" + sdk: dev - id: checkout name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - id: ngtest_pub_upgrade name: ngtest; dart pub upgrade run: dart pub upgrade @@ -1231,6 +1153,3 @@ jobs: - job_010 - job_011 - job_012 - - job_013 - - job_014 - - job_015 diff --git a/.gitignore b/.gitignore index 2f470c27b6..d47caf80b4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,6 @@ # Ignore artifacts generated by "pub". -**/build/ .packages pubspec.lock -*.log # Ignore artifacts generated by "firebase" .firebase/ @@ -10,6 +8,9 @@ pubspec.lock # Files generated by dart tools. **/.dart_tool/ **/doc/api/ +**/build/ +*.log # melos # pubspec_overrides.yaml + diff --git a/.idea/modules.xml b/.idea/modules.xml index 44792c3454..d692883f72 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,7 +2,6 @@ - diff --git a/_tests/analysis_options.yaml b/_tests/analysis_options.yaml index 40758997f2..2cf8c282fd 100644 --- a/_tests/analysis_options.yaml +++ b/_tests/analysis_options.yaml @@ -2,8 +2,11 @@ include: ../analysis_options.yaml analyzer: errors: + implementation_imports: ignore + # False positives related to missing .template.dart files + # Comment this rules while developing. argument_type_not_assignable: ignore invalid_assignment: ignore - return_of_invalid_type: ignore non_bool_condition: ignore + return_of_invalid_type: ignore diff --git a/_tests/dart_test.yaml b/_tests/dart_test.yaml index 3d2c7bc644..df4d34ee01 100644 --- a/_tests/dart_test.yaml +++ b/_tests/dart_test.yaml @@ -26,4 +26,5 @@ presets: paths: - test/compiler - test/compiler_integration + - test/source_gen add_presets: [ci] diff --git a/_tests/lib/compiler.dart b/_tests/lib/compiler.dart index f5130a127f..e011bf78a6 100644 --- a/_tests/lib/compiler.dart +++ b/_tests/lib/compiler.dart @@ -6,9 +6,9 @@ import 'package:build_resolvers/build_resolvers.dart'; import 'package:build_test/build_test.dart' hide testBuilder; import 'package:glob/glob.dart'; import 'package:logging/logging.dart'; -import 'package:test/test.dart'; -import 'package:ngdart/src/build.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:ngdart/src/build.dart'; +import 'package:test/test.dart'; /// A 'test' build process (similar to the normal one). final Builder _testAngularBuilder = MultiplexingBuilder([ @@ -150,9 +150,7 @@ Future compilesExpecting( include ??= const {}; // Complete list of input sources. - final sources = { - inputSource: input, - }..addAll(include); + final sources = {inputSource: input, ...include}; // Run the builder. final records = >{}; @@ -168,21 +166,24 @@ Future compilesExpecting( expectLogRecords(records[Level.SEVERE], errors, 'Errors'); expectLogRecords(records[Level.WARNING], warnings, 'Warnings'); expectLogRecords(records[Level.INFO], notices, 'Notices'); - - if (outputs != null) { - // TODO: Add an output verification or consider a golden file mechanism. - throw UnimplementedError(); - } } -void expectLogRecords(List? logs, matcher, String reasonPrefix) { +void expectLogRecords( + List? logs, + Object? matcher, + String reasonPrefix, +) { if (matcher == null) { return; } logs ??= []; - expect(logs.map(formattedLogMessage), matcher, - reason: - '$reasonPrefix: \n${logs.map((l) => '${formattedLogMessage(l)} at:\n ${l.stackTrace}')}'); + expect( + logs.map(formattedLogMessage), + matcher is Iterable ? containsAllInOrder(matcher) : matcher, + reason: '$reasonPrefix: \n${logs.map((l) { + return '${formattedLogMessage(l)} at:\n ${l.stackTrace}'; + })}', + ); } String formattedLogMessage(LogRecord record) { @@ -201,17 +202,17 @@ Future compilesNormally( String? inputSource, Map? include, Set? runBuilderOn, -}) => - compilesExpecting( - input, - inputSource: inputSource, - runBuilderOn: runBuilderOn, - include: include, - errors: isEmpty, - warnings: isEmpty, - ); +}) { + return compilesExpecting( + input, + inputSource: inputSource, + runBuilderOn: runBuilderOn, + include: include, + ); +} /// Match for a source location, but don't require tests to manage package /// names. -Matcher containsSourceLocation(int line, int column) => - contains('line $line, column $column of '); +Matcher containsSourceLocation(int line, int column) { + return contains('line $line, column $column of '); +} diff --git a/_tests/lib/matchers.dart b/_tests/lib/matchers.dart index 2c02dd85d2..9309be769f 100644 --- a/_tests/lib/matchers.dart +++ b/_tests/lib/matchers.dart @@ -1,7 +1,7 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; +import 'package:test/test.dart'; /// Matches textual content of an element including children. Matcher hasTextContent(String expected) => _HasTextContent(expected); diff --git a/_tests/lib/query_tests.dart b/_tests/lib/query_tests.dart index 5a4274657d..edf7a9ebc4 100644 --- a/_tests/lib/query_tests.dart +++ b/_tests/lib/query_tests.dart @@ -3,9 +3,9 @@ // element that is assigned by the framework. import 'package:collection/collection.dart'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; /// A mixin for components that receive a list of child elements/directives. abstract class HasChildren { diff --git a/_tests/mono_pkg.yaml b/_tests/mono_pkg.yaml index 89c94a6fac..c409a8461a 100644 --- a/_tests/mono_pkg.yaml +++ b/_tests/mono_pkg.yaml @@ -1,10 +1,10 @@ sdk: - - 2.19.6 - pubspec + - dev stages: - build: - command: dart run build_runner build --fail-on-severe - unit_test: - - command: dart run test -P vm + - command: dart test -P vm - command: dart run build_runner test --fail-on-severe -- -P browser diff --git a/_tests/pubspec.yaml b/_tests/pubspec.yaml index 65f4aa6d50..5b7b081430 100644 --- a/_tests/pubspec.yaml +++ b/_tests/pubspec.yaml @@ -3,24 +3,30 @@ description: Tests for AngularDart. publish_to: none environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=3.1.0 <4.0.0" dependencies: - build_resolvers: ^2.1.0 - build_test: ^2.1.6 - collection: ^1.17.0 - ngdart: ^8.0.0-dev.1 - ngtest: ^5.0.0-dev.1 - test: ^1.22.2 + build: ^2.4.1 + build_resolvers: ^2.4.1 + build_test: ^2.2.1 + collection: ^1.18.0 + glob: ^2.1.2 + js: ^0.6.7 + logging: ^1.2.0 + ngcompiler: ^3.0.0-dev.2 + ngdart: ^8.0.0-dev.3 + ngtest: ^5.0.0-dev.2 + source_gen: ^1.4.0 + test: ^1.24.4 dev_dependencies: - analyzer: ^5.4.0 - build_runner: ^2.3.3 - build_web_compilers: ^3.2.7 - csslib: 0.17.2 - lints: ^2.0.1 - meta: ^1.8.0 - mockito: ^5.3.2 + analyzer: ^6.0.0 + build_runner: ^2.4.6 + build_web_compilers: ^4.0.4 + csslib: ^1.0.0 + lints: ^2.1.0 + meta: ^1.11.0 + mockito: ^5.4.3 package_config: ^2.1.0 - source_span: ^1.9.1 + source_span: ^1.10.0 term_glyph: ^1.2.1 diff --git a/_tests/test/bootstrap/run_app_test.dart b/_tests/test/bootstrap/run_app_test.dart index 13dae79e2f..fcee2b14f2 100644 --- a/_tests/test/bootstrap/run_app_test.dart +++ b/_tests/test/bootstrap/run_app_test.dart @@ -5,8 +5,8 @@ import 'dart:async'; import 'dart:html'; import 'package:js/js.dart'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; +import 'package:test/test.dart'; import 'run_app_test.template.dart' as ng; diff --git a/_tests/test/common/directives/for_test.dart b/_tests/test/common/directives/for_test.dart index 2038336721..b881721920 100644 --- a/_tests/test/common/directives/for_test.dart +++ b/_tests/test/common/directives/for_test.dart @@ -2,10 +2,10 @@ library angular2.test.common.directives.for_test; import 'dart:async'; -import 'package:test/test.dart'; import 'package:_tests/matchers.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'for_test.template.dart' as ng; diff --git a/_tests/test/common/directives/if_test.dart b/_tests/test/common/directives/if_test.dart index ade00025f8..956a8b7028 100644 --- a/_tests/test/common/directives/if_test.dart +++ b/_tests/test/common/directives/if_test.dart @@ -1,7 +1,7 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngdart/src/runtime/check_binding.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'if_test.template.dart' as ng; diff --git a/_tests/test/common/directives/ng_class_test.dart b/_tests/test/common/directives/ng_class_test.dart index 3eac36f00d..1692a5753b 100644 --- a/_tests/test/common/directives/ng_class_test.dart +++ b/_tests/test/common/directives/ng_class_test.dart @@ -1,8 +1,8 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'ng_class_test.template.dart' as ng; diff --git a/_tests/test/common/directives/ng_style_test.dart b/_tests/test/common/directives/ng_style_test.dart index bc8ead94de..756dff719b 100644 --- a/_tests/test/common/directives/ng_style_test.dart +++ b/_tests/test/common/directives/ng_style_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'ng_style_test.template.dart' as ng; diff --git a/_tests/test/common/directives/ng_switch_test.dart b/_tests/test/common/directives/ng_switch_test.dart index 938756be9a..8d44c4427a 100644 --- a/_tests/test/common/directives/ng_switch_test.dart +++ b/_tests/test/common/directives/ng_switch_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'ng_switch_test.template.dart' as ng; diff --git a/_tests/test/common/directives/ng_template_outlet_test.dart b/_tests/test/common/directives/ng_template_outlet_test.dart index bee9579c75..d24ecef68f 100644 --- a/_tests/test/common/directives/ng_template_outlet_test.dart +++ b/_tests/test/common/directives/ng_template_outlet_test.dart @@ -1,7 +1,7 @@ -import 'package:test/test.dart'; import 'package:_tests/matchers.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'ng_template_outlet_test.template.dart' as ng; diff --git a/_tests/test/common/pipes/date_pipe_test.dart b/_tests/test/common/pipes/date_pipe_test.dart index 46fb4dd4c9..18b7218bfa 100644 --- a/_tests/test/common/pipes/date_pipe_test.dart +++ b/_tests/test/common/pipes/date_pipe_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; +import 'package:test/test.dart'; void main() { group('DatePipe', () { diff --git a/_tests/test/common/pipes/lowercase_pipe_test.dart b/_tests/test/common/pipes/lowercase_pipe_test.dart index 78458f7e5d..d6425a6ca0 100644 --- a/_tests/test/common/pipes/lowercase_pipe_test.dart +++ b/_tests/test/common/pipes/lowercase_pipe_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngdart/src/common/pipes/lowercase_pipe.dart'; +import 'package:test/test.dart'; void main() { group('LowerCasePipe', () { diff --git a/_tests/test/common/pipes/number_pipe_test.dart b/_tests/test/common/pipes/number_pipe_test.dart index 1e5f730df1..5dd10e0c77 100644 --- a/_tests/test/common/pipes/number_pipe_test.dart +++ b/_tests/test/common/pipes/number_pipe_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngdart/src/common/pipes/number_pipe.dart'; +import 'package:test/test.dart'; void main() { group('Number pipes', () { diff --git a/_tests/test/common/pipes/replace_pipe_test.dart b/_tests/test/common/pipes/replace_pipe_test.dart index db452f3a8f..91405b66c6 100644 --- a/_tests/test/common/pipes/replace_pipe_test.dart +++ b/_tests/test/common/pipes/replace_pipe_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/src/common/pipes/invalid_pipe_argument_exception.dart'; import 'package:ngdart/src/common/pipes/replace_pipe.dart'; +import 'package:test/test.dart'; final someNumber = 42; final str = 'Douglas Adams'; diff --git a/_tests/test/common/pipes/slice_pipe_test.dart b/_tests/test/common/pipes/slice_pipe_test.dart index 993699b9d2..38c8d7f254 100644 --- a/_tests/test/common/pipes/slice_pipe_test.dart +++ b/_tests/test/common/pipes/slice_pipe_test.dart @@ -1,7 +1,7 @@ -import 'package:test/test.dart'; import 'package:_tests/matchers.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'slice_pipe_test.template.dart' as ng; diff --git a/_tests/test/common/pipes/uppercase_pipe_test.dart b/_tests/test/common/pipes/uppercase_pipe_test.dart index 0527e4f701..5e4d85a318 100644 --- a/_tests/test/common/pipes/uppercase_pipe_test.dart +++ b/_tests/test/common/pipes/uppercase_pipe_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngdart/src/common/pipes/uppercase_pipe.dart'; +import 'package:test/test.dart'; void main() { group('UpperCasePipe', () { diff --git a/_tests/test/compiler/analyzed_class_test.dart b/_tests/test/compiler/analyzed_class_test.dart index 909fdb66bd..bdddb4c68b 100644 --- a/_tests/test/compiler/analyzed_class_test.dart +++ b/_tests/test/compiler/analyzed_class_test.dart @@ -1,10 +1,8 @@ -// @dart=2.9 - import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/visitor.dart'; -import 'package:test/test.dart'; import 'package:ngcompiler/v1/src/compiler/analyzed_class.dart'; import 'package:ngcompiler/v1/src/compiler/expression_parser/ast.dart'; +import 'package:test/test.dart'; import '../resolve_util.dart'; @@ -84,7 +82,7 @@ void main() { final int eight = 8; } '''); - var analyzedClass = AnalyzedClass(library.getClass('SubComponent')); + var analyzedClass = AnalyzedClass(library.getClass('SubComponent')!); final sevenExpr = PropertyRead(ImplicitReceiver(), 'seven'); final eightExpr = PropertyRead(ImplicitReceiver(), 'eight'); final someNumberExpr = PropertyRead(ImplicitReceiver(), 'someNumber'); @@ -98,26 +96,26 @@ void main() { Future analyzeClass(String source) async { final library = await resolve(source); final visitor = AnalyzedClassVisitor(); - return library.accept(visitor); + return library.accept(visitor)!; } class AnalyzedClassVisitor extends RecursiveElementVisitor { @override - AnalyzedClass visitClassElement(ClassElement element) { + AnalyzedClass? visitClassElement(ClassElement element) { return AnalyzedClass(element); } @override - AnalyzedClass visitCompilationUnitElement(CompilationUnitElement element) { + AnalyzedClass? visitCompilationUnitElement(CompilationUnitElement element) { return _visitAll(element.classes); } @override - AnalyzedClass visitLibraryElement(LibraryElement element) { + AnalyzedClass? visitLibraryElement(LibraryElement element) { return _visitAll(element.units); } - AnalyzedClass _visitAll(List elements) { + AnalyzedClass? _visitAll(List elements) { for (var element in elements) { final analyzedClass = element.accept(this); if (analyzedClass != null) return analyzedClass; diff --git a/_tests/test/compiler/ast_directive_normalizer_test.dart b/_tests/test/compiler/ast_directive_normalizer_test.dart index d1a7d19835..2ca5d674e3 100644 --- a/_tests/test/compiler/ast_directive_normalizer_test.dart +++ b/_tests/test/compiler/ast_directive_normalizer_test.dart @@ -1,13 +1,11 @@ -// @dart=2.9 - import 'package:build_test/build_test.dart'; import 'package:logging/logging.dart'; -import 'package:test/test.dart'; -import 'package:ngdart/src/meta.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; import 'package:ngcompiler/v1/src/compiler/ast_directive_normalizer.dart'; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:ngdart/src/meta.dart'; +import 'package:test/test.dart'; void main() { CompileDirectiveMetadata metadata; @@ -18,6 +16,7 @@ void main() { reader = const FakeAssetReader(); normalizer = AstDirectiveNormalizer(reader); metadata = CompileDirectiveMetadata( + type: CompileTypeMetadata(name: 'test-type'), metadataType: CompileDirectiveMetadataType.directive, ); @@ -108,7 +107,7 @@ void main() { ), ); metadata = await normalizer.normalizeDirective(metadata); - expect(metadata.template.ngContentSelectors, [ + expect(metadata.template?.ngContentSelectors, [ '*', '.left', '.right', @@ -154,7 +153,7 @@ void main() { ); metadata = await normalizer.normalizeDirective(metadata); expect( - metadata.template.styleUrls, + metadata.template?.styleUrls, orderedEquals([ 'package:a/1.css', 'package:a/2.css', @@ -174,7 +173,7 @@ void main() { ), ); metadata = await normalizer.normalizeDirective(metadata); - expect(metadata.template.encapsulation, ViewEncapsulation.none); + expect(metadata.template?.encapsulation, ViewEncapsulation.none); }); test('should resolve inline stylesheets', () async { @@ -205,9 +204,9 @@ void main() { ), ); metadata = await normalizer.normalizeDirective(metadata); - expect(metadata.template.encapsulation, ViewEncapsulation.emulated); + expect(metadata.template?.encapsulation, ViewEncapsulation.emulated); expect( - metadata.template.styles, + metadata.template?.styles, [ contains(':host { margin: 10px; }'), ], diff --git a/_tests/test/compiler/ast_template_optimize_test.dart b/_tests/test/compiler/ast_template_optimize_test.dart index 81311843fc..1e98c819ef 100644 --- a/_tests/test/compiler/ast_template_optimize_test.dart +++ b/_tests/test/compiler/ast_template_optimize_test.dart @@ -1,6 +1,3 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:ngcompiler/v1/cli.dart'; import 'package:ngcompiler/v1/src/compiler/expression_parser/parser.dart'; import 'package:ngcompiler/v1/src/compiler/schema/dom_element_schema_registry.dart'; @@ -8,6 +5,7 @@ import 'package:ngcompiler/v1/src/compiler/template_ast.dart'; import 'package:ngcompiler/v1/src/compiler/template_compiler.dart'; import 'package:ngcompiler/v1/src/compiler/template_parser/ast_template_parser.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; import '../resolve_util.dart'; import 'template_humanizer_util.dart'; @@ -23,17 +21,17 @@ void main() { CompilerFlags(), ); - List getHumanizedTemplate( + List getHumanizedTemplate( NormalizedComponentWithViewDirectives component, ) { final componentMetadata = component.component; final templateAsts = templateParser.parse( componentMetadata, - componentMetadata.template.template, + componentMetadata.template!.template ?? '', component.directives, [], - null, - componentMetadata.template.templateUrl, + '', + componentMetadata.template!.templateUrl ?? '', ); return humanizeTplAst(templateAsts); } diff --git a/_tests/test/compiler/ast_template_parser_test.dart b/_tests/test/compiler/ast_template_parser_test.dart index afac5c786e..9dcecb053e 100644 --- a/_tests/test/compiler/ast_template_parser_test.dart +++ b/_tests/test/compiler/ast_template_parser_test.dart @@ -1,13 +1,8 @@ -// @dart=2.9 - import 'dart:async'; -import 'package:logging/logging.dart'; -import 'package:term_glyph/term_glyph.dart' as term_glyph; -import 'package:test/test.dart'; import 'package:_tests/test_util.dart'; +import 'package:logging/logging.dart'; import 'package:ngcompiler/v1/cli.dart'; -import 'package:ngcompiler/v1/src/compiler/analyzed_class.dart'; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart'; import 'package:ngcompiler/v1/src/compiler/expression_parser/parser.dart'; import 'package:ngcompiler/v1/src/compiler/identifiers.dart' @@ -20,6 +15,8 @@ import 'package:ngcompiler/v1/src/compiler/schema/element_schema_registry.dart' import 'package:ngcompiler/v1/src/compiler/template_ast.dart'; import 'package:ngcompiler/v1/src/compiler/template_parser/ast_template_parser.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:term_glyph/term_glyph.dart' as term_glyph; +import 'package:test/test.dart'; import 'schema_registry_mock.dart' show MockSchemaRegistry; import 'template_humanizer_util.dart'; @@ -28,8 +25,8 @@ const someModuleUrl = 'package:someModule'; typedef ParseTemplate = List Function( String template, - List directives, [ - List pipes, + List? directives, [ + List? pipes, ]); class ArrayConsole { @@ -62,10 +59,7 @@ class ArrayConsole { void main() { CompileContext.overrideForTesting(); - - setUpAll(() { - term_glyph.ascii = true; - }); + term_glyph.ascii = true; final console = ArrayConsole(); final ngIf = createCompileDirectiveMetadata( @@ -77,12 +71,12 @@ void main() { type: CompileTypeMetadata(moduleUrl: someModuleUrl, name: 'Root'), metadataType: CompileDirectiveMetadataType.component); - ParseTemplate parseTemplate; + late ParseTemplate parseTemplate; List parse( String template, [ - List directive, - List pipes, + List? directive, + List? pipes, ]) { return runZoned(() => parseTemplate(template, directive, pipes), zoneValues: { @@ -91,8 +85,8 @@ void main() { } void setUpParser({ - ElementSchemaRegistry elementSchemaRegistry, - CompilerFlags compilerFlags, + ElementSchemaRegistry? elementSchemaRegistry, + CompilerFlags? compilerFlags, }) { elementSchemaRegistry ??= MockSchemaRegistry( {'invalidProp': false}, @@ -607,7 +601,7 @@ void main() { }); group('providers', () { - int nextProviderId; + late int nextProviderId; CompileTokenMetadata createToken(String value) { CompileTokenMetadata token; if (value.startsWith('type:')) { @@ -663,8 +657,8 @@ void main() { } CompileDirectiveMetadata createDir(String selector, - {List providers, - List viewProviders, + {List providers = const [], + List viewProviders = const [], List deps = const [], List queries = const []}) { var isComponent = !selector.startsWith('['); @@ -905,8 +899,8 @@ void main() { test('should change missing @Self() that are optional to nulls', () { var dirA = createDir('[dirA]', deps: ['optional:self:provider0']); var elAst = parse('
', [dirA])[0] as ElementAst; - expect(elAst.providers[0].providers[0].deps[0].isValue, true); - expect(elAst.providers[0].providers[0].deps[0].value, isNull); + expect(elAst.providers[0].providers[0].deps?[0]?.isValue, true); + expect(elAst.providers[0].providers[0].deps?[0]?.value, isNull); }); test('should report missing @Host() deps as errors', () { @@ -924,8 +918,8 @@ void main() { test('should change missing @Host() that are optional to nulls', () { var dirA = createDir('[dirA]', deps: ['optional:host:provider0']); var elAst = parse('
', [dirA])[0] as ElementAst; - expect(elAst.providers[0].providers[0].deps[0].isValue, true); - expect(elAst.providers[0].providers[0].deps[0].value, isNull); + expect(elAst.providers[0].providers[0].deps?[0]?.isValue, true); + expect(elAst.providers[0].providers[0].deps?[0]?.value, isNull); }); test('should report cyclic dependencies as errors', () { @@ -1343,6 +1337,7 @@ void main() { test('should internationalize directive property', () { final directive = createCompileDirectiveMetadata( + type: CompileTypeMetadata(moduleUrl: someModuleUrl, name: 'Comp'), selector: 'test', inputs: ['input'], ); @@ -1734,7 +1729,7 @@ void main() { }); group('content projection', () { - int compCounter; + late int compCounter; setUp(() { compCounter = 0; }); @@ -2317,6 +2312,7 @@ void main() { test('should report error for invalid internationalized expression', () { final directive = createCompileDirectiveMetadata( + type: CompileTypeMetadata(moduleUrl: someModuleUrl, name: 'Comp'), selector: 'test', inputs: ['input'], ); @@ -2622,17 +2618,17 @@ void main() { } CompileDirectiveMetadata createCompileDirectiveMetadata({ - CompileTypeMetadata type, + required CompileTypeMetadata type, CompileDirectiveMetadataType metadataType = CompileDirectiveMetadataType.directive, - String selector, - String exportAs, - List inputs, - List outputs, + String? selector, + String? exportAs, + List? inputs, + List? outputs, List providers = const [], List viewProviders = const [], List queries = const [], - CompileTemplateMetadata template, + CompileTemplateMetadata? template, }) { final inputsMap = {}; final inputTypeMap = {}; @@ -2667,7 +2663,6 @@ CompileDirectiveMetadata createCompileDirectiveMetadata({ viewProviders: viewProviders, queries: queries, template: template ?? CompileTemplateMetadata(), - analyzedClass: AnalyzedClass(null), ); } diff --git a/_tests/test/compiler/expression_parser/analyzer_test.dart b/_tests/test/compiler/expression_parser/analyzer_test.dart index 0ee6d72e1e..0a26291b16 100644 --- a/_tests/test/compiler/expression_parser/analyzer_test.dart +++ b/_tests/test/compiler/expression_parser/analyzer_test.dart @@ -1,9 +1,7 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:ngcompiler/v1/src/compiler/expression_parser/analyzer_parser.dart'; import 'package:ngcompiler/v1/src/compiler/expression_parser/ast.dart' as ast; import 'package:ngcompiler/v1/src/compiler/expression_parser/parser.dart'; +import 'package:test/test.dart'; import 'unparser.dart'; @@ -14,7 +12,7 @@ void main() { final parser = AnalyzerExpressionParser(); final unparser = Unparser(); - String parse(String input, {bool allowAssignments}) { + String parse(String input, {bool? allowAssignments}) { final wrapped = ast.ASTWithSource( parser.parseExpression( input, diff --git a/_tests/test/compiler/expression_parser/parser_test.dart b/_tests/test/compiler/expression_parser/parser_test.dart index 3231574a29..b9d70334ee 100644 --- a/_tests/test/compiler/expression_parser/parser_test.dart +++ b/_tests/test/compiler/expression_parser/parser_test.dart @@ -1,6 +1,3 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/test_util.dart'; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart' show CompileIdentifierMetadata; @@ -9,6 +6,7 @@ import 'package:ngcompiler/v1/src/compiler/expression_parser/ast.dart' import 'package:ngcompiler/v1/src/compiler/expression_parser/parser.dart' show ParseException, ExpressionParser; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; import 'unparser.dart' show Unparser; @@ -26,15 +24,15 @@ void main() { } void _runTests(ExpressionParser Function() createParser) { - ASTWithSource parseAction(String text, [String location]) { + ASTWithSource parseAction(String? text, [String location = '']) { return createParser().parseAction(text, location, []); } - ASTWithSource parseBinding(String text, [String location]) { + ASTWithSource parseBinding(String text, [String location = '']) { return createParser().parseBinding(text, location, []); } - ASTWithSource parseInterpolation(String text, [String location]) { + ASTWithSource? parseInterpolation(String text, [String location = '']) { return createParser().parseInterpolation(text, location, []); } @@ -42,19 +40,19 @@ void _runTests(ExpressionParser Function() createParser) { return Unparser().unparse(ast); } - void checkInterpolation(String exp, [String expected]) { - var ast = parseInterpolation(exp); + void checkInterpolation(String exp, [String? expected]) { + var ast = parseInterpolation(exp)!; expected ??= exp; expect(unparse(ast), expected); } - void checkBinding(String exp, [String expected]) { + void checkBinding(String exp, [String? expected]) { var ast = parseBinding(exp); expected ??= exp; expect(unparse(ast), expected); } - void checkAction(String exp, [String expected]) { + void checkAction(String exp, [String? expected]) { var ast = parseAction(exp); expected ??= exp; expect(unparse(ast), expected); @@ -64,7 +62,7 @@ void _runTests(ExpressionParser Function() createParser) { expect(() => parseInterpolation(text), matcher); } - void expectActionError(String text, Object matcher) { + void expectActionError(String? text, Object matcher) { expect(() => parseAction(text), matcher); } @@ -169,7 +167,7 @@ void _runTests(ExpressionParser Function() createParser) { final parser = createParser(); final text = 'fn(a: 1)'; final export = CompileIdentifierMetadata(name: 'a'); - final ast = parser.parseAction(text, null, [export]); + final ast = parser.parseAction(text, '', [export]); expect(unparse(ast), text); }); }); @@ -308,14 +306,14 @@ void _runTests(ExpressionParser Function() createParser) { expect(parseInterpolation('nothing'), isNull); }); test('should parse no prefix/suffix interpolation', () { - var ast = parseInterpolation('{{a}}').ast as Interpolation; + var ast = parseInterpolation('{{a}}')!.ast as Interpolation; expect(ast.strings, ['', '']); expect(ast.expressions.length, 1); expect((ast.expressions[0] as PropertyRead).name, 'a'); }); test('should parse prefix/suffix with multiple interpolation', () { var originalExp = 'before {{ a }} middle {{ b }} after'; - var ast = parseInterpolation(originalExp); + var ast = parseInterpolation(originalExp)!; expect(Unparser().unparse(ast), originalExp); }); test('should throw on empty interpolation expressions', () { diff --git a/_tests/test/compiler/expression_parser/unparser.dart b/_tests/test/compiler/expression_parser/unparser.dart index 9bb921d573..10b925ef59 100644 --- a/_tests/test/compiler/expression_parser/unparser.dart +++ b/_tests/test/compiler/expression_parser/unparser.dart @@ -1,11 +1,9 @@ -// @dart=2.9 - import 'package:ngcompiler/v1/src/compiler/expression_parser/ast.dart'; -class Unparser implements AstVisitor { +class Unparser implements AstVisitor { static final _quoteRegExp = RegExp(r'"'); - StringBuffer sb; + StringBuffer sb = StringBuffer(); String unparse(ASTWithSource ast) { sb = StringBuffer(); @@ -104,7 +102,7 @@ class Unparser implements AstVisitor { @override void visitNamedExpr(NamedExpr ast, _) { sb.write('${ast.name}: '); - ast.expression.visit(this); + ast.expression?.visit(this); } @override diff --git a/_tests/test/compiler/output/abstract_emitter_test.dart b/_tests/test/compiler/output/abstract_emitter_test.dart index 0ccc4b5e40..3cf66b2179 100644 --- a/_tests/test/compiler/output/abstract_emitter_test.dart +++ b/_tests/test/compiler/output/abstract_emitter_test.dart @@ -1,8 +1,6 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:ngcompiler/v1/src/compiler/output/abstract_emitter.dart' show escapeSingleQuoteString; +import 'package:test/test.dart'; void main() { group('AbstractEmitter', () { diff --git a/_tests/test/compiler/output/dart_emitter_test.dart b/_tests/test/compiler/output/dart_emitter_test.dart index b97d9ff325..c8eae3a053 100644 --- a/_tests/test/compiler/output/dart_emitter_test.dart +++ b/_tests/test/compiler/output/dart_emitter_test.dart @@ -1,11 +1,9 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart' show CompileIdentifierMetadata; import 'package:ngcompiler/v1/src/compiler/output/dart_emitter.dart' show DartEmitter; import 'package:ngcompiler/v1/src/compiler/output/output_ast.dart' as o; +import 'package:test/test.dart'; var someModuleUrl = 'asset:somePackage/lib/somePath'; var anotherModuleUrl = 'asset:somePackage/lib/someOtherPath'; @@ -22,8 +20,8 @@ void main() { // Dart exports everything that has no `_` in its name. // - return types for function expressions group('DartEmitter', () { - DartEmitter emitter; - o.ReadVarExpr someVar; + late DartEmitter emitter; + late o.ReadVarExpr someVar; setUp(() { emitter = DartEmitter(); someVar = o.variable('someVar'); @@ -382,7 +380,7 @@ void main() { expect(emitStmt(o.ThrowStmt(someVar)), 'throw someVar;'); }); group('classes', () { - o.Statement callSomeMethod; + late o.Statement callSomeMethod; setUp(() { callSomeMethod = o.thisExpr.callMethod('someMethod', []).toStmt(); }); @@ -550,7 +548,8 @@ void main() { 'GenericClass', o.importExpr( CompileIdentifierMetadata(name: 'GenericParent'), - typeParams: [o.importType(CompileIdentifierMetadata(name: 'T'))], + // typeParams: o.importType(CompileIdentifierMetadata(name: 'T'))?.typeParams ?? [], + typeParams: [o.importType(CompileIdentifierMetadata(name: 'T'))!], ), [], [], diff --git a/_tests/test/compiler/output/path_util_test.dart b/_tests/test/compiler/output/path_util_test.dart index 3799eb8271..f5dba1d50c 100644 --- a/_tests/test/compiler/output/path_util_test.dart +++ b/_tests/test/compiler/output/path_util_test.dart @@ -1,9 +1,7 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/test_util.dart'; import 'package:ngcompiler/v1/src/compiler/output/path_util.dart' show getImportModulePath; +import 'package:test/test.dart'; void main() { group('PathUtils getImportModulePath', () { diff --git a/_tests/test/compiler/provider_forest_test.dart b/_tests/test/compiler/provider_forest_test.dart index 45a8299cae..d7259849eb 100644 --- a/_tests/test/compiler/provider_forest_test.dart +++ b/_tests/test/compiler/provider_forest_test.dart @@ -1,8 +1,6 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:ngcompiler/v1/src/compiler/output/output_ast.dart' as o; import 'package:ngcompiler/v1/src/compiler/view_compiler/provider_forest.dart'; +import 'package:test/test.dart'; void main() { final a = ProviderInstance([], o.nullExpr); diff --git a/_tests/test/compiler/schema/dom_element_schema_registry_test.dart b/_tests/test/compiler/schema/dom_element_schema_registry_test.dart index 1c1376c2e8..22e379ef36 100644 --- a/_tests/test/compiler/schema/dom_element_schema_registry_test.dart +++ b/_tests/test/compiler/schema/dom_element_schema_registry_test.dart @@ -1,13 +1,11 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:ngcompiler/v1/src/compiler/schema/dom_element_schema_registry.dart' show DomElementSchemaRegistry; import 'package:ngcompiler/v1/src/compiler/security.dart'; +import 'package:test/test.dart'; void main() { group('DOMElementSchema', () { - DomElementSchemaRegistry registry; + late DomElementSchemaRegistry registry; setUp(() { registry = DomElementSchemaRegistry(); }); diff --git a/_tests/test/compiler/schema_registry_mock.dart b/_tests/test/compiler/schema_registry_mock.dart index d2379c1612..99caa7e733 100644 --- a/_tests/test/compiler/schema_registry_mock.dart +++ b/_tests/test/compiler/schema_registry_mock.dart @@ -1,5 +1,3 @@ -// @dart=2.9 - import 'package:ngcompiler/v1/src/compiler/schema/element_schema_registry.dart'; import 'package:ngcompiler/v1/src/compiler/security.dart'; diff --git a/_tests/test/compiler/selector_test.dart b/_tests/test/compiler/selector_test.dart index fe5ef5e413..e9066560ab 100644 --- a/_tests/test/compiler/selector_test.dart +++ b/_tests/test/compiler/selector_test.dart @@ -1,17 +1,15 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/test_util.dart'; import 'package:ngcompiler/v1/src/compiler/attribute_matcher.dart'; import 'package:ngcompiler/v1/src/compiler/selector.dart' show CssSelector, SelectorMatcher; +import 'package:test/test.dart'; void main() { group('SelectorMatcher', () { - SelectorMatcher matcher; - void Function(CssSelector, int) selectableCollector; - List s1, s2, s3, s4; - List matched; + late SelectorMatcher matcher; + late void Function(CssSelector, int) selectableCollector; + List? s1, s2, s3, s4; + late List matched; void reset() { matched = []; } @@ -39,7 +37,7 @@ void main() { expect( matcher.match(CssSelector.parse('someTag')[0], selectableCollector), isTrue); - expect(matched, [s1[0], 1]); + expect(matched, [s1![0], 1]); }); test('should select by class name case insensitive', () { matcher.addSelectables(s1 = CssSelector.parse('.someClass'), 1); @@ -53,13 +51,13 @@ void main() { matcher.match( CssSelector.parse('.SOMECLASS')[0], selectableCollector), isTrue); - expect(matched, [s1[0], 1]); + expect(matched, [s1![0], 1]); reset(); expect( matcher.match( CssSelector.parse('.someClass.class2')[0], selectableCollector), isTrue); - expect(matched, [s1[0], 1, s2[0], 2]); + expect(matched, [s1![0], 1, s2![0], 2]); }); test('should select by attr name case sensitive independent of the value', () { @@ -85,25 +83,25 @@ void main() { matcher.match(CssSelector.parse('[someAttr][someAttr2]')[0], selectableCollector), isTrue); - expect(matched, [s1[0], 1, s2[0], 2]); + expect(matched, [s1![0], 1, s2![0], 2]); reset(); expect( matcher.match(CssSelector.parse('[someAttr=someValue][someAttr2]')[0], selectableCollector), isTrue); - expect(matched, [s1[0], 1, s2[0], 2]); + expect(matched, [s1![0], 1, s2![0], 2]); reset(); expect( matcher.match(CssSelector.parse('[someAttr2][someAttr=someValue]')[0], selectableCollector), isTrue); - expect(matched, [s1[0], 1, s2[0], 2]); + expect(matched, [s1![0], 1, s2![0], 2]); reset(); expect( matcher.match(CssSelector.parse('[someAttr2=someValue][someAttr]')[0], selectableCollector), isTrue); - expect(matched, [s1[0], 1, s2[0], 2]); + expect(matched, [s1![0], 1, s2![0], 2]); }); test('should select by attr name case sensitive and value case insensitive', @@ -123,7 +121,7 @@ void main() { matcher.match(CssSelector.parse('[someAttr=SOMEVALUE]')[0], selectableCollector), isTrue); - expect(matched, [s1[0], 1]); + expect(matched, [s1![0], 1]); }); test( 'should select by element name, class name and attribute name with value', @@ -159,7 +157,7 @@ void main() { CssSelector.parse('someTag.someClass[someAttr=someValue]')[0], selectableCollector), isTrue); - expect(matched, [s1[0], 1]); + expect(matched, [s1![0], 1]); }); test('should select by many attributes and independent of the value', () { matcher.addSelectables( @@ -169,7 +167,7 @@ void main() { cssSelector.addAttribute('type', '=', 'text'); cssSelector.addAttribute('control', '=', 'one'); expect(matcher.match(cssSelector, selectableCollector), true); - expect(matched, [s1[0], 1]); + expect(matched, [s1![0], 1]); }); test('should select independent of the order in the css selector', () { matcher.addSelectables(s1 = CssSelector.parse('[someAttr].someClass'), 1); @@ -180,25 +178,25 @@ void main() { matcher.match(CssSelector.parse('[someAttr].someClass')[0], selectableCollector), isTrue); - expect(matched, [s1[0], 1, s2[0], 2]); + expect(matched, [s1![0], 1, s2![0], 2]); reset(); expect( matcher.match(CssSelector.parse('.someClass[someAttr]')[0], selectableCollector), isTrue); - expect(matched, [s1[0], 1, s2[0], 2]); + expect(matched, [s1![0], 1, s2![0], 2]); reset(); expect( matcher.match( CssSelector.parse('.class1.class2')[0], selectableCollector), isTrue); - expect(matched, [s3[0], 3, s4[0], 4]); + expect(matched, [s3![0], 3, s4![0], 4]); reset(); expect( matcher.match( CssSelector.parse('.class2.class1')[0], selectableCollector), isTrue); - expect(matched, [s4[0], 4, s3[0], 3]); + expect(matched, [s4![0], 4, s3![0], 3]); }); test('should not select with a matching :not selector', () { matcher.addSelectables(CssSelector.parse('p:not(.someClass)'), 1); @@ -223,7 +221,7 @@ void main() { matcher.match(CssSelector.parse('p[someOtherAttr].someOtherClass')[0], selectableCollector), isTrue); - expect(matched, [s1[0], 1, s2[0], 2, s3[0], 3, s4[0], 4]); + expect(matched, [s1![0], 1, s2![0], 2, s3![0], 3, s4![0], 4]); }); test('should match with multiple :not selectors', () { matcher.addSelectables( @@ -241,13 +239,13 @@ void main() { expect( matcher.match(CssSelector.parse('textbox')[0], selectableCollector), isTrue); - expect(matched, [s1[1], 1]); + expect(matched, [s1![1], 1]); reset(); expect( matcher.match( CssSelector.parse('input[type=text]')[0], selectableCollector), isTrue); - expect(matched, [s1[0], 1]); + expect(matched, [s1![0], 1]); }); test('should not select twice with two matches in a list', () { matcher.addSelectables(s1 = CssSelector.parse('input, .someClass'), 1); @@ -256,7 +254,7 @@ void main() { CssSelector.parse('input.someclass')[0], selectableCollector), isTrue); expect(matched.length, 2); - expect(matched, [s1[0], 1]); + expect(matched, [s1![0], 1]); }); }); group('CssSelector.parse', () { diff --git a/_tests/test/compiler/shadow_css_test.dart b/_tests/test/compiler/shadow_css_test.dart index 2120af99cc..ef9de64dfc 100644 --- a/_tests/test/compiler/shadow_css_test.dart +++ b/_tests/test/compiler/shadow_css_test.dart @@ -1,10 +1,8 @@ -// @dart=2.9 - import 'dart:async'; import 'package:logging/logging.dart'; -import 'package:test/test.dart'; import 'package:ngcompiler/v1/src/compiler/stylesheet_compiler/shadow_css.dart'; +import 'package:test/test.dart'; const content = 'content'; const host = 'host'; @@ -55,7 +53,7 @@ String normalizeCSS(String css) { /// Shims [css] and compares to the [expected] output for both current and /// legacy encapsulation. -void shimAndExpect(String css, String expected, {String expectedLegacy}) { +void shimAndExpect(String css, String expected, {String? expectedLegacy}) { runZoned(() { var actual = shimShadowCss(css, content, host); var actualLegacy = @@ -412,7 +410,7 @@ void main() { test('should shim rules after @import', () { var css = '@import url("a"); div {}'; - shimAndExpect(css, '@import url("a");div.$content {}'); + shimAndExpect(css, '@import url("a"); div.$content {}'); }); test('should leave calc() unchanged', () { diff --git a/_tests/test/compiler/style_url_resolver_test.dart b/_tests/test/compiler/style_url_resolver_test.dart index 9f552e26c5..02c36cb602 100644 --- a/_tests/test/compiler/style_url_resolver_test.dart +++ b/_tests/test/compiler/style_url_resolver_test.dart @@ -1,9 +1,7 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; import 'package:ngcompiler/v1/src/compiler/style_url_resolver.dart' show extractStyleUrls, isStyleUrlResolvable; +import 'package:test/test.dart'; void main() { group('extractStyleUrls', () { diff --git a/_tests/test/compiler/template_humanizer_util.dart b/_tests/test/compiler/template_humanizer_util.dart index bb605cc4b4..f634825d4a 100644 --- a/_tests/test/compiler/template_humanizer_util.dart +++ b/_tests/test/compiler/template_humanizer_util.dart @@ -1,5 +1,3 @@ -// @dart=2.9 - import 'package:ngcompiler/v1/src/compiler/output/dart_emitter.dart'; import 'package:ngcompiler/v1/src/compiler/template_ast.dart'; @@ -111,7 +109,7 @@ class _TemplateHumanizer implements TemplateAstVisitor { ..add(attributeValue.value.text) ..add(attributeValue.value.metadata.description); if (attributeValue.value.metadata.meaning != null) { - res.add(attributeValue.value.metadata.meaning); + res.add(attributeValue.value.metadata.meaning!); } } else if (attributeValue is LiteralAttributeValue) { res.add(attributeValue.value); @@ -166,7 +164,7 @@ class _TemplateHumanizer implements TemplateAstVisitor { void visitI18nText(I18nTextAst ast, _) { var res = [I18nTextAst, ast.value.text, ast.value.metadata.description]; if (ast.value.metadata.meaning != null) { - res.add(ast.value.metadata.meaning); + res.add(ast.value.metadata.meaning!); } if (ast.value.containsHtml) { res.add(ast.value.args); diff --git a/_tests/test/compiler_integration/errors_in_part_of_file_test.dart b/_tests/test/compiler_integration/errors_in_part_of_file_test.dart index 66ee9cfb78..74b5dd3249 100644 --- a/_tests/test/compiler_integration/errors_in_part_of_file_test.dart +++ b/_tests/test/compiler_integration/errors_in_part_of_file_test.dart @@ -1,8 +1,6 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; void main() { CompileContext.overrideForTesting(); @@ -37,7 +35,7 @@ void main() { allOf( contains('Unsupported extension in styleUrls:'), contains('Only ".css" is supported'), - ) + ), ], ); }); diff --git a/_tests/test/compiler_integration/inject_optional_non_nullable_test.dart b/_tests/test/compiler_integration/inject_optional_non_nullable_test.dart index 0f76773460..72ea195044 100644 --- a/_tests/test/compiler_integration/inject_optional_non_nullable_test.dart +++ b/_tests/test/compiler_integration/inject_optional_non_nullable_test.dart @@ -1,12 +1,9 @@ -// @dart=2.9 - -import 'package:build/build.dart'; -import 'package:test/test.dart'; import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; void main() { - setUp(CompileContext.overrideForTesting); + CompileContext.overrideForTesting(); test('should fail on an injector with a nullable non-optional', () async { await compilesExpecting(""" @@ -21,9 +18,7 @@ void main() { ]) final injectorFactory = null; // OK for compiler tests. """, errors: [ - allOf( - contains('must be annotated @Optional()'), - ) + contains('must be annotated @Optional()'), ]); }); @@ -41,9 +36,7 @@ void main() { ]) final injectorFactory = null; // OK for compiler tests. """, errors: [ - allOf( - contains('must be annotated @Optional()'), - ) + contains('must be annotated @Optional()'), ]); }); @@ -60,9 +53,7 @@ void main() { ]) final injectorFactory = null; // OK for compiler tests. """, errors: [ - allOf( - contains('must be annotated @Optional()'), - ) + contains('must be annotated @Optional()'), ]); }); @@ -130,9 +121,7 @@ void main() { CarComponent(@Optional() Engine engine); } """, errors: [ - allOf( - contains('must be annotated @Optional()'), - ) + contains('must be annotated @Optional()'), ]); }); @@ -150,9 +139,7 @@ void main() { CarComponent(Engine? engine); } """, errors: [ - allOf( - contains('must be annotated @Optional()'), - ) + contains('must be annotated @Optional()'), ]); }); @@ -171,9 +158,7 @@ void main() { CarComponent(FutureOr engine); } """, errors: [ - allOf( - contains('must be annotated @Optional()'), - ) + contains('must be annotated @Optional()'), ]); }); @@ -192,63 +177,4 @@ void main() { } """); }); - - group('should allow opted-out to use opted-in import w/o error', () { - final clientLibSource = """ - // @dart=2.9 - import '$ngImport'; - import 'opted_in_library.dart'; - - @Component( - selector: 'example-comp', - template: '', - providers: [ - ClassProvider(Clock), - ], - ) - class ExampleComp { - ExampleComp(Clock clock); - } - """; - - setUp(() { - CompileContext.overrideForTesting( - CompileContext.forTesting(emitNullSafeCode: false), - ); - }); - - test('[expected nullable]', () async { - final importLibSource = ''' - typedef DateTimeGetter = DateTime Function(); - class Clock { - static DateTime _defaultGetTime() => DateTime.now(); - Clock([DateTimeGetter getTime = _defaultGetTime]); - } - '''; - await compilesNormally( - clientLibSource, - include: { - 'pkg|lib/opted_in_library.dart': importLibSource, - }, - inputSource: 'pkg|lib/opted_out_client.dart', - runBuilderOn: {AssetId('pkg', 'lib/opted_out_client.dart')}, - ); - }); - - test('[expected @Optional]', () async { - final importLibSource = ''' - class Clock { - Clock(DateTime? expectedToBeOptional); - } - '''; - await compilesNormally( - clientLibSource, - include: { - 'pkg|lib/opted_in_library.dart': importLibSource, - }, - inputSource: 'pkg|lib/opted_out_client.dart', - runBuilderOn: {AssetId('pkg', 'lib/opted_out_client.dart')}, - ); - }); - }); } diff --git a/_tests/test/compiler_integration/injectable_annotation_test.dart b/_tests/test/compiler_integration/injectable_annotation_test.dart index 26d443ef65..c763278c61 100644 --- a/_tests/test/compiler_integration/injectable_annotation_test.dart +++ b/_tests/test/compiler_integration/injectable_annotation_test.dart @@ -1,5 +1,3 @@ -// @dart=2.9 - import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; import 'package:test/test.dart'; @@ -14,11 +12,11 @@ void main() { @Injectable() class _HeroService {} """, errors: [ - allOf([ + allOf( contains('Private classes can not be @Injectable'), contains('_HeroService'), - containsSourceLocation(4, 13) - ]), + containsSourceLocation(4, 13), + ), ]); }); diff --git a/_tests/test/compiler_integration/invalid_binding_test.dart b/_tests/test/compiler_integration/invalid_binding_test.dart index 5dcca008b0..f98cb0e05a 100644 --- a/_tests/test/compiler_integration/invalid_binding_test.dart +++ b/_tests/test/compiler_integration/invalid_binding_test.dart @@ -1,15 +1,12 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; void main() { setUp(CompileContext.overrideForTesting); test('should require integer value for "tabindex"', () async { - await compilesExpecting( - ''' + await compilesExpecting(''' import '$ngImport'; @Component( @@ -17,10 +14,8 @@ void main() { template: '
', ) class TestComponent {} - ''', - errors: [ - contains('The "tabindex" attribute expects an integer value'), - ], - ); + ''', errors: [ + contains('The "tabindex" attribute expects an integer value'), + ]); }); } diff --git a/_tests/test/compiler_integration/invalid_change_detection_link_test.dart b/_tests/test/compiler_integration/invalid_change_detection_link_test.dart index 50148798cc..84884d0fd3 100644 --- a/_tests/test/compiler_integration/invalid_change_detection_link_test.dart +++ b/_tests/test/compiler_integration/invalid_change_detection_link_test.dart @@ -1,8 +1,6 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; const ngExperimentalImport = 'package:$ngPackage/experimental.dart'; @@ -37,12 +35,11 @@ void main() { ) class CheckAlwaysComponent {} """, errors: [ - allOf([ - contains( - 'Only supported on components that use "OnPush" change detection', - ), + allOf( + contains('Only supported on components that use ' + '"ChangeDetectionStrategy.onPush" change detection'), containsSourceLocation(4, 9), - ]), + ), ]); }); @@ -55,12 +52,11 @@ void main() { @Directive(selector: '[test]') class TestDirective {} """, errors: [ - allOf([ - contains( - 'Only supported on components that use "OnPush" change detection', - ), + allOf( + contains('Only supported on components that use ' + '"ChangeDetectionStrategy.onPush" change detection'), containsSourceLocation(4, 9), - ]), + ), ]); }); }); diff --git a/_tests/test/compiler_integration/invalid_component_test.dart b/_tests/test/compiler_integration/invalid_component_test.dart index 5945df8764..ef9cd7aa80 100644 --- a/_tests/test/compiler_integration/invalid_component_test.dart +++ b/_tests/test/compiler_integration/invalid_component_test.dart @@ -1,15 +1,11 @@ -// @dart=2.9 - -import 'package:term_glyph/term_glyph.dart' as term_glyph; -import 'package:test/test.dart'; import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:term_glyph/term_glyph.dart' as term_glyph; +import 'package:test/test.dart'; void main() { - setUpAll(() { - term_glyph.ascii = true; - CompileContext.overrideForTesting(); - }); + CompileContext.overrideForTesting(); + term_glyph.ascii = true; test('should identify a possibly unresolvable directive', () async { await compilesExpecting(''' @@ -30,11 +26,11 @@ void main() { ) class BadComp {} ''', errors: [ - allOf([ + allOf( contains('Compiling @Component-annotated class "BadComp" failed'), containsSourceLocation(11, 11), - contains('OopsDirective') - ]), + contains('OopsDirective'), + ), ]); }); @@ -51,10 +47,10 @@ void main() { ) class BadComp {} ''', errors: [ - allOf([ + allOf( contains('Compiling @Component-annotated class "BadComp" failed'), containsSourceLocation(6, 11), // points to 'const Undeclared..' - ]), + ), ]); }); @@ -102,16 +98,15 @@ void main() { ) class BadComp {} ''', errors: [ - allOf([ + allOf( isNot( contains( - "The argument type 'int' can't be assigned to the parameter type 'String'", - ), + "The argument type 'int' can't be assigned to the parameter type 'String'"), ), isNot( contains('neverMentionFour'), - ) - ]), + ), + ), ]); }); @@ -128,10 +123,10 @@ void main() { } ''', errors: [ // TODO(b/124524346): Only print one error. - allOf([ + allOf( contains('Error evaluating annotation'), - containsSourceLocation(8, 24) - ]), + containsSourceLocation(8, 24), + ), ]); }); @@ -146,11 +141,11 @@ void main() { ) class BadComp {} ''', errors: [ - allOf([ + allOf( contains('Compiling @Component-annotated class "BadComp" failed'), containsSourceLocation(6, 17), - contains('MissingPipe') - ]), + contains('MissingPipe'), + ), ]); }); @@ -168,11 +163,11 @@ void main() { class BadProvider {} ''', errors: [ - allOf([ + allOf( contains('Compiling @Component-annotated class "BadProvider" failed'), containsSourceLocation(6, 25), - contains('Nope') - ]) + contains('Nope'), + ), ]); }); @@ -193,15 +188,13 @@ void main() { ) class HiddenGoldComponenet {} ''', warnings: [ - allOf([ - 'line 1, column 9 of asset:pkg/lib/input.dart: Dead code in template: ' - 'Non-empty text node (Dropped) is a child of a non-projecting ' - 'component (opaque) and will not be added to the DOM.\n' - ' ,\n' - '1 | Dropped\n' - ' | ^^^^^^^\n' - " '" - ]) + 'line 1, column 9 of asset:pkg/lib/input.dart: Dead code in template: ' + 'Non-empty text node (Dropped) is a child of a non-projecting ' + 'component (opaque) and will not be added to the DOM.\n' + ' ,\n' + '1 | Dropped\n' + ' | ^^^^^^^\n' + " '", ]); }); @@ -226,11 +219,11 @@ void main() { class ExampleComponent {} ''', errors: [ - allOf([ + allOf( contains('Entry in "directiveTypes" missing corresponding entry in' ' "directives" for "GenericComponent".'), - containsSourceLocation(11, 5) - ]) + containsSourceLocation(11, 5), + ), ]); }); @@ -244,10 +237,10 @@ void main() { ) class EmptySelector {} ''', errors: [ - allOf([ + allOf( contains('Selector is required, got ""'), - containsSourceLocation(3, 5) - ]) + containsSourceLocation(3, 5), + ), ]); }); @@ -263,10 +256,10 @@ void main() { void ngDoCheck() async {} } ''', errors: [ - allOf([ + allOf( contains('ngDoCheck should not be "async"'), - containsSourceLocation(8, 12) - ]) + containsSourceLocation(8, 12), + ), ]); }); @@ -282,11 +275,11 @@ void main() { ) class DoubleUp {} ''', errors: [ - allOf([ + allOf( contains( 'Cannot supply both "template" and "templateUrl" for an @Component'), - containsSourceLocation(3, 5) - ]) + containsSourceLocation(3, 5), + ), ]); }); @@ -300,10 +293,10 @@ void main() { ) class BadUrl {} ''', errors: [ - allOf([ + allOf( contains('@Component.templateUrl is not a valid URI'), - containsSourceLocation(3, 5) - ]) + containsSourceLocation(3, 5), + ), ]); }); @@ -323,7 +316,7 @@ void main() { allOf( contains('Expected method for event binding'), containsSourceLocation(1, 43), - ) + ), ]); }); @@ -402,16 +395,15 @@ void main() { class BadComponent {} ''', errors: [ allOf( - contains( - 'Evaluation of this constant expression throws an exception', - ), - containsSourceLocation(8, 21), + contains("A provider's token field failed to compile."), + containsSourceLocation(5, 7), ), ]); }); test('should warn on when provider is not a class', () async { - await compilesExpecting(''' + await compilesExpecting( + ''' import '$ngImport'; typedef Compare = int Function(Object a, Object b); @@ -421,15 +413,14 @@ void main() { providers: [Compare] ) class BadComponent {} - ''', errors: [], warnings: [ - allOf( - contains('Expected to find class in provider list'), - containsSourceLocation( - 4, - 7, - ), - ), // pointing at @Component - ]); + ''', + errors: isEmpty, + warnings: [ + allOf( + contains('Expected to find class in provider list'), + containsSourceLocation(4, 7), + ), // pointing at @Component + ]); }); test('should error on when useClass is not a class', () async { @@ -449,13 +440,12 @@ void main() { allOf( contains('Provider.useClass can only be used with a class'), containsSourceLocation(6, 7), - ) // pointing at @Component + ), // pointing at @Component ]); }); test('should error on when useFactory is not a function', () async { - await compilesExpecting( - ''' + await compilesExpecting(''' import '$ngImport'; class ToProvide {} @@ -466,14 +456,12 @@ void main() { providers: [FactoryProvider(ToProvide, ToProvide)] ) class BadComponent {} - ''', - errors: [ - allOf( - contains('ToProvide'), - containsSourceLocation(8, 48), - ), - ], - ); + ''', errors: [ + allOf( + contains('ToProvide'), + containsSourceLocation(10, 13), + ), + ]); }); test('should still warn when useClass: is used with an interface', diff --git a/_tests/test/compiler_integration/invalid_global_singleton_service_test.dart b/_tests/test/compiler_integration/invalid_global_singleton_service_test.dart index ae36e8a540..963b2e93ba 100644 --- a/_tests/test/compiler_integration/invalid_global_singleton_service_test.dart +++ b/_tests/test/compiler_integration/invalid_global_singleton_service_test.dart @@ -1,8 +1,6 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; void main() { CompileContext.overrideForTesting(); @@ -17,11 +15,11 @@ void main() { ]) final injectorFactory = null; // OK for compiler tests. """, errors: [ - allOf([ + allOf( contains('singleton service provided by the framework that cannot be ' 'overridden or manually provided'), containsSourceLocation(6, 15), - ]), + ), ]); }); @@ -36,11 +34,11 @@ void main() { ) class Foo {} """, errors: [ - allOf([ + allOf( contains('singleton service provided by the framework that cannot be ' 'overridden or manually provided'), containsSourceLocation(3, 9), - ]), + ), ]); }); }); diff --git a/_tests/test/compiler_integration/invalid_host_annotations_test.dart b/_tests/test/compiler_integration/invalid_host_annotations_test.dart index 0bb82e446f..42ecf07e82 100644 --- a/_tests/test/compiler_integration/invalid_host_annotations_test.dart +++ b/_tests/test/compiler_integration/invalid_host_annotations_test.dart @@ -1,8 +1,6 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; void main() { CompileContext.overrideForTesting(); diff --git a/_tests/test/compiler_integration/invalid_late_fields_test.dart b/_tests/test/compiler_integration/invalid_late_fields_test.dart index a025623f2b..01ea076e08 100644 --- a/_tests/test/compiler_integration/invalid_late_fields_test.dart +++ b/_tests/test/compiler_integration/invalid_late_fields_test.dart @@ -1,8 +1,6 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; void main() { CompileContext.overrideForTesting(); @@ -20,9 +18,7 @@ void main() { late final String name; } """, errors: [ - allOf( - contains('Inputs cannot be "late final"'), - ) + contains('Inputs cannot be "late final"'), ]); }); @@ -40,9 +36,7 @@ void main() { set div(Element div) {} } """, errors: [ - allOf( - contains('queries must be nullable'), - ) + contains('queries must be nullable'), ]); }); @@ -60,9 +54,7 @@ void main() { late Element? div; } """, errors: [ - allOf( - contains('View and content queries cannot be "late"'), - ) + contains('View and content queries cannot be "late"'), ]); }); @@ -80,9 +72,7 @@ void main() { late List div; } """, errors: [ - allOf( - contains('View and content queries cannot be "late"'), - ) + contains('View and content queries cannot be "late"'), ]); }); diff --git a/_tests/test/compiler_integration/invalid_uri_test.dart b/_tests/test/compiler_integration/invalid_uri_test.dart index 165aec5f44..88a947e5a8 100644 --- a/_tests/test/compiler_integration/invalid_uri_test.dart +++ b/_tests/test/compiler_integration/invalid_uri_test.dart @@ -1,8 +1,6 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; void main() { CompileContext.overrideForTesting(); diff --git a/_tests/test/compiler_integration/null_class_attribute_test.dart b/_tests/test/compiler_integration/null_class_attribute_test.dart index 57b31e4533..644106d052 100644 --- a/_tests/test/compiler_integration/null_class_attribute_test.dart +++ b/_tests/test/compiler_integration/null_class_attribute_test.dart @@ -1,8 +1,6 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; void main() { CompileContext.overrideForTesting(); diff --git a/_tests/test/compiler_integration/on_push_validation_test.dart b/_tests/test/compiler_integration/on_push_validation_test.dart index 67ff157358..4a9d7a8228 100644 --- a/_tests/test/compiler_integration/on_push_validation_test.dart +++ b/_tests/test/compiler_integration/on_push_validation_test.dart @@ -1,8 +1,6 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; void main() { CompileContext.overrideForTesting(); @@ -29,12 +27,11 @@ void main() { ) class TestComponent {} """, warnings: [ - allOf([ + allOf( + contains('"DefaultComponent" doesn\'t use ' + '"ChangeDetectionStrategy.onPush"'), contains(''), - contains( - '"DefaultComponent" doesn\'t use "ChangeDetectionStrategy.onPush"', - ), - ]), + ), ]); }); @@ -77,10 +74,10 @@ void main() { ) class TestComponent {} """, errors: [ - allOf([ + allOf( contains('@skipOnPushValidation'), contains('Can only be applied to a component element'), - ]), + ), ]); }); @@ -105,13 +102,11 @@ void main() { ) class TestComponent {} """, errors: [ - allOf([ + allOf( contains('@skipOnPushValidation'), - contains( - 'Can only be applied to a component using ' - '"ChangeDetectionStrategy.checkAlways"', - ), - ]), + contains('Can only be applied to a component using ' + '"ChangeDetectionStrategy.checkAlways"'), + ), ]); }); @@ -134,13 +129,11 @@ void main() { ) class TestComponent {} """, errors: [ - allOf([ + allOf( contains('@skipOnPushValidation'), - contains( - 'Can only be used in the template of a component using ' - '"ChangeDetectionStrategy.onPush"', - ), - ]), + contains('Can only be used in the template of a component using ' + '"ChangeDetectionStrategy.onPush"'), + ), ]); }); }); diff --git a/_tests/test/compiler_integration/unresolvable_annotation_test.dart b/_tests/test/compiler_integration/unresolvable_annotation_test.dart index 9b645f5934..f87878794a 100644 --- a/_tests/test/compiler_integration/unresolvable_annotation_test.dart +++ b/_tests/test/compiler_integration/unresolvable_annotation_test.dart @@ -1,8 +1,6 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; void main() { CompileContext.overrideForTesting(); diff --git a/_tests/test/compiler_integration/unresolvable_export_test.dart b/_tests/test/compiler_integration/unresolvable_export_test.dart index 6590f99291..e3786881f3 100644 --- a/_tests/test/compiler_integration/unresolvable_export_test.dart +++ b/_tests/test/compiler_integration/unresolvable_export_test.dart @@ -1,14 +1,13 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; void main() { CompileContext.overrideForTesting(); test('should fail build for unresolved exports', () async { - await compilesExpecting(''' + await compilesExpecting( + ''' import '$ngImport'; class GoodExport {} @@ -19,17 +18,21 @@ void main() { exports: const [BadExport, GoodExport], ) class BadComponent {} - ''', errors: [ - allOf([ - contains('Compiling @Component-annotated class "BadComponent" failed'), - contains('BadExport'), - containsSourceLocation(8, 25) - ]), - ]); + ''', + errors: [ + allOf( + contains( + 'Compiling @Component-annotated class "BadComponent" failed'), + contains('BadExport'), + containsSourceLocation(8, 25), + ), + ], + ); }); test('should fail build for non identifier exports', () async { - await compilesExpecting(''' + await compilesExpecting( + ''' import '$ngImport'; @Component( @@ -38,12 +41,14 @@ void main() { exports: const [1], ) class BadComponent {} - ''', errors: [ - allOf([ - contains('Item 1 in the "exports" field must be an identifier'), - containsSourceLocation(3, 7) - ]), - ]); + ''', + errors: [ + allOf( + contains('Item 1 in the "exports" field must be an identifier'), + containsSourceLocation(3, 7), + ), + ], + ); }); test( @@ -63,12 +68,12 @@ void main() { ) class BadComponent {} ''', errors: [ - allOf([ - contains('must be either a simple identifier or an identifier with a ' - 'library prefix'), + allOf( + contains('must be either a simple identifier or an identifier'), + contains('with a library prefix'), contains('Foo.bar'), - containsSourceLocation(7, 7) - ]) + containsSourceLocation(7, 7), + ), ]); }); } diff --git a/_tests/test/compiler_integration/unrevivable_const_test.dart b/_tests/test/compiler_integration/unrevivable_const_test.dart index f101773a78..e6899eb5f3 100644 --- a/_tests/test/compiler_integration/unrevivable_const_test.dart +++ b/_tests/test/compiler_integration/unrevivable_const_test.dart @@ -1,8 +1,6 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; void main() { CompileContext.overrideForTesting(); @@ -20,10 +18,10 @@ void main() { ]) final example = null; ''', errors: [ - allOf([ + allOf( contains('While attempting to resolve a constant value for a provider'), contains('TestClass'), - ]), + ), ]); }); @@ -67,9 +65,7 @@ void main() { ]) final example = null; ''', errors: [ - allOf([ - contains('Expected list for \'provide\' field of Module'), - ]), + contains('Expected list for \'provide\' field of Module'), ]); }); } diff --git a/_tests/test/compiler_integration/unsupported_style_url_test.dart b/_tests/test/compiler_integration/unsupported_style_url_test.dart index ddd289b998..bab7e43687 100644 --- a/_tests/test/compiler_integration/unsupported_style_url_test.dart +++ b/_tests/test/compiler_integration/unsupported_style_url_test.dart @@ -1,8 +1,6 @@ -// @dart=2.9 - -import 'package:test/test.dart'; import 'package:_tests/compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; void main() { CompileContext.overrideForTesting(); diff --git a/_tests/test/core/application_ref_test.dart b/_tests/test/core/application_ref_test.dart index 15c28eeb7d..13a68cd6b8 100644 --- a/_tests/test/core/application_ref_test.dart +++ b/_tests/test/core/application_ref_test.dart @@ -1,11 +1,11 @@ import 'dart:async'; import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngdart/src/core/application_ref.dart'; import 'package:ngdart/src/core/linker/app_view_utils.dart'; import 'package:ngdart/src/runtime/dom_events.dart'; +import 'package:test/test.dart'; import 'application_ref_test.template.dart' as ng; diff --git a/_tests/test/core/change_detection/binding_test.dart b/_tests/test/core/change_detection/binding_test.dart index 6441d30f36..d4ec8bc34d 100644 --- a/_tests/test/core/change_detection/binding_test.dart +++ b/_tests/test/core/change_detection/binding_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'binding_test.template.dart' as ng; diff --git a/_tests/test/core/change_detection/change_detection_link_test.dart b/_tests/test/core/change_detection/change_detection_link_test.dart index 522fb9352b..f18de0963c 100644 --- a/_tests/test/core/change_detection/change_detection_link_test.dart +++ b/_tests/test/core/change_detection/change_detection_link_test.dart @@ -1,7 +1,7 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngdart/experimental.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'change_detection_link_test.template.dart' as ng; diff --git a/_tests/test/core/change_detection/container_test.dart b/_tests/test/core/change_detection/container_test.dart index 42ff114a22..fb81c859e8 100644 --- a/_tests/test/core/change_detection/container_test.dart +++ b/_tests/test/core/change_detection/container_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'container_test.template.dart' as ng; diff --git a/_tests/test/core/change_detection/detect_host_changes_test.dart b/_tests/test/core/change_detection/detect_host_changes_test.dart index c7d6ceff73..6d349e1c1a 100644 --- a/_tests/test/core/change_detection/detect_host_changes_test.dart +++ b/_tests/test/core/change_detection/detect_host_changes_test.dart @@ -1,8 +1,8 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'detect_host_changes_test.template.dart' as ng; diff --git a/_tests/test/core/change_detection/differs/default_iterable_differ_test.dart b/_tests/test/core/change_detection/differs/default_iterable_differ_test.dart index 03b0cbc379..abd3b213c6 100644 --- a/_tests/test/core/change_detection/differs/default_iterable_differ_test.dart +++ b/_tests/test/core/change_detection/differs/default_iterable_differ_test.dart @@ -2,8 +2,8 @@ library angular2.test.core.change_detection.differs.default_iterable_differ_test import 'dart:collection'; -import 'package:test/test.dart'; import 'package:ngdart/src/core/change_detection/differs/default_iterable_differ.dart'; +import 'package:test/test.dart'; void main() { group('iterable differ', () { diff --git a/_tests/test/core/change_detection/expect_no_changes_dev_mode_test.dart b/_tests/test/core/change_detection/expect_no_changes_dev_mode_test.dart index 314c39825b..205a88d1e2 100644 --- a/_tests/test/core/change_detection/expect_no_changes_dev_mode_test.dart +++ b/_tests/test/core/change_detection/expect_no_changes_dev_mode_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'expect_no_changes_dev_mode_test.template.dart' as ng; diff --git a/_tests/test/core/change_detection/mark_child_for_check_test.dart b/_tests/test/core/change_detection/mark_child_for_check_test.dart index a40e4c288f..ae7c4236e9 100644 --- a/_tests/test/core/change_detection/mark_child_for_check_test.dart +++ b/_tests/test/core/change_detection/mark_child_for_check_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'mark_child_for_check_test.template.dart' as ng; diff --git a/_tests/test/core/change_detection/mark_for_check_test.dart b/_tests/test/core/change_detection/mark_for_check_test.dart index 623cfcd35d..c396ccfc6e 100644 --- a/_tests/test/core/change_detection/mark_for_check_test.dart +++ b/_tests/test/core/change_detection/mark_for_check_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'mark_for_check_test.template.dart' as ng; diff --git a/_tests/test/core/change_detection/on_push_embedded_view_test.dart b/_tests/test/core/change_detection/on_push_embedded_view_test.dart index 2010d89b14..48ec96ad90 100644 --- a/_tests/test/core/change_detection/on_push_embedded_view_test.dart +++ b/_tests/test/core/change_detection/on_push_embedded_view_test.dart @@ -1,8 +1,8 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'on_push_embedded_view_test.template.dart' as ng; diff --git a/_tests/test/core/crash_detection_test.dart b/_tests/test/core/crash_detection_test.dart index 1ce081d5b3..4c46df517e 100644 --- a/_tests/test/core/crash_detection_test.dart +++ b/_tests/test/core/crash_detection_test.dart @@ -1,8 +1,8 @@ import 'dart:async'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'crash_detection_test.template.dart' as ng; diff --git a/_tests/test/core/di/visibility_test.dart b/_tests/test/core/di/visibility_test.dart index b8d8d94268..a2b8847468 100644 --- a/_tests/test/core/di/visibility_test.dart +++ b/_tests/test/core/di/visibility_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'visibility_test.template.dart' as ng; diff --git a/_tests/test/core/directive_inheritance_test.dart b/_tests/test/core/directive_inheritance_test.dart index 2404b17c8b..696e9c61a6 100644 --- a/_tests/test/core/directive_inheritance_test.dart +++ b/_tests/test/core/directive_inheritance_test.dart @@ -1,9 +1,9 @@ import 'dart:async'; import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'directive_inheritance_test.template.dart' as ng; @@ -435,7 +435,7 @@ class TestDirectiveDerivedComponent { String? input; } -class DescriptionInput { +mixin class DescriptionInput { @Input() String? description; } @@ -494,7 +494,7 @@ class FooAttribute { String? foo; } -class BarAttribute { +mixin class BarAttribute { @HostBinding('attr.bar') String? bar; } @@ -587,7 +587,7 @@ abstract class MixinInterface { set input(String value); } -class MixinImplementsInterface implements MixinInterface { +mixin class MixinImplementsInterface implements MixinInterface { String? input; } diff --git a/_tests/test/core/directive_lifecycle_integration_test.dart b/_tests/test/core/directive_lifecycle_integration_test.dart index c65e87dba1..2713940385 100644 --- a/_tests/test/core/directive_lifecycle_integration_test.dart +++ b/_tests/test/core/directive_lifecycle_integration_test.dart @@ -1,8 +1,8 @@ library angular2.test.core.directive_lifecycle_integration_test; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'directive_lifecycle_integration_test.template.dart' as ng; diff --git a/_tests/test/core/exports_test.dart b/_tests/test/core/exports_test.dart index f38cf1f8db..837a6df42d 100644 --- a/_tests/test/core/exports_test.dart +++ b/_tests/test/core/exports_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'exports_statics.dart' as lib; import 'exports_statics.dart'; diff --git a/_tests/test/core/generics/generics_test.dart b/_tests/test/core/generics/generics_test.dart index e46f7257bc..ab5397eecc 100644 --- a/_tests/test/core/generics/generics_test.dart +++ b/_tests/test/core/generics/generics_test.dart @@ -1,8 +1,8 @@ import 'dart:async'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'bound.dart'; import 'generics_test.template.dart' as ng; diff --git a/_tests/test/core/i18n_escape_test.dart b/_tests/test/core/i18n_escape_test.dart index cf599bf8e7..3896dfd2a2 100644 --- a/_tests/test/core/i18n_escape_test.dart +++ b/_tests/test/core/i18n_escape_test.dart @@ -1,8 +1,8 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'i18n_escape_test.template.dart' as ng; diff --git a/_tests/test/core/linker/component_class_selector_test.dart b/_tests/test/core/linker/component_class_selector_test.dart index 3e8fff11cd..a1b2611d27 100644 --- a/_tests/test/core/linker/component_class_selector_test.dart +++ b/_tests/test/core/linker/component_class_selector_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'component_class_selector_test.template.dart' as ng; diff --git a/_tests/test/core/linker/component_loader_test.dart b/_tests/test/core/linker/component_loader_test.dart index 04c00d6c62..44de40109d 100644 --- a/_tests/test/core/linker/component_loader_test.dart +++ b/_tests/test/core/linker/component_loader_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'component_loader_test.template.dart' as ng; diff --git a/_tests/test/core/linker/component_providers_test.dart b/_tests/test/core/linker/component_providers_test.dart index 9c48c36ad4..24c39fbb5c 100644 --- a/_tests/test/core/linker/component_providers_test.dart +++ b/_tests/test/core/linker/component_providers_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'component_providers_test.template.dart' as ng; diff --git a/_tests/test/core/linker/component_selector_test.dart b/_tests/test/core/linker/component_selector_test.dart index 478512fbaa..766490f6fe 100644 --- a/_tests/test/core/linker/component_selector_test.dart +++ b/_tests/test/core/linker/component_selector_test.dart @@ -1,7 +1,7 @@ -import 'package:test/test.dart'; import 'package:_tests/matchers.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'component_selector_test.template.dart' as ng; diff --git a/_tests/test/core/linker/implicit_static_test.dart b/_tests/test/core/linker/implicit_static_test.dart index c6c7a90cd8..2c08723484 100644 --- a/_tests/test/core/linker/implicit_static_test.dart +++ b/_tests/test/core/linker/implicit_static_test.dart @@ -1,8 +1,8 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'implicit_static_test.template.dart' as ng; diff --git a/_tests/test/core/linker/integration/banana_contract_test.dart b/_tests/test/core/linker/integration/banana_contract_test.dart index 98d3758340..9498ea3aa9 100644 --- a/_tests/test/core/linker/integration/banana_contract_test.dart +++ b/_tests/test/core/linker/integration/banana_contract_test.dart @@ -1,8 +1,8 @@ import 'dart:async'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'banana_contract_test.template.dart' as ng; diff --git a/_tests/test/core/linker/integration/binding_integration_test.dart b/_tests/test/core/linker/integration/binding_integration_test.dart index f5aaa7bcd9..a882af18c4 100644 --- a/_tests/test/core/linker/integration/binding_integration_test.dart +++ b/_tests/test/core/linker/integration/binding_integration_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'binding_integration_test.template.dart' as ng; diff --git a/_tests/test/core/linker/integration/dependency_injection_test.dart b/_tests/test/core/linker/integration/dependency_injection_test.dart index 153ba03bd2..092ca05e1f 100644 --- a/_tests/test/core/linker/integration/dependency_injection_test.dart +++ b/_tests/test/core/linker/integration/dependency_injection_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'dependency_injection_test.template.dart' as ng; diff --git a/_tests/test/core/linker/integration/directive_integration_test.dart b/_tests/test/core/linker/integration/directive_integration_test.dart index 45150cefb0..a34197f7f8 100644 --- a/_tests/test/core/linker/integration/directive_integration_test.dart +++ b/_tests/test/core/linker/integration/directive_integration_test.dart @@ -1,9 +1,9 @@ import 'dart:async'; import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'directive_integration_test.template.dart' as ng; diff --git a/_tests/test/core/linker/integration/misc_test.dart b/_tests/test/core/linker/integration/misc_test.dart index b7ca7d58d1..14eb02b89b 100644 --- a/_tests/test/core/linker/integration/misc_test.dart +++ b/_tests/test/core/linker/integration/misc_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'misc_test.template.dart' as ng; @@ -148,9 +148,7 @@ class DynamicViewport { DynamicViewport(ViewContainerRef vc) { final myService = MyService()..greeting = 'dynamic greet'; - final injector = Injector.map({ - MyService: myService, - }, vc.injector); + final injector = Injector.map({MyService: myService}, vc.injector); final factoryFuture = Future.value( ng.createChildCompUsingServiceFactory(), ); diff --git a/_tests/test/core/linker/integration/ng_container_test.dart b/_tests/test/core/linker/integration/ng_container_test.dart index 4b3d526b72..403a836a16 100644 --- a/_tests/test/core/linker/integration/ng_container_test.dart +++ b/_tests/test/core/linker/integration/ng_container_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; // ignore: uri_has_not_been_generated import 'ng_container_test.template.dart' as ng; diff --git a/_tests/test/core/linker/integration/on_push_test.dart b/_tests/test/core/linker/integration/on_push_test.dart index efb7fbc73d..210dc613fc 100644 --- a/_tests/test/core/linker/integration/on_push_test.dart +++ b/_tests/test/core/linker/integration/on_push_test.dart @@ -1,9 +1,9 @@ import 'dart:async'; import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'on_push_test.template.dart' as ng; diff --git a/_tests/test/core/linker/integration/outputs_test.dart b/_tests/test/core/linker/integration/outputs_test.dart index 3a67e99700..0a12118185 100644 --- a/_tests/test/core/linker/integration/outputs_test.dart +++ b/_tests/test/core/linker/integration/outputs_test.dart @@ -1,9 +1,9 @@ import 'dart:async'; import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'outputs_test.template.dart' as ng; diff --git a/_tests/test/core/linker/integration/reference_binding_test.dart b/_tests/test/core/linker/integration/reference_binding_test.dart index cbf3775bae..95eee61bb0 100644 --- a/_tests/test/core/linker/integration/reference_binding_test.dart +++ b/_tests/test/core/linker/integration/reference_binding_test.dart @@ -1,8 +1,8 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'reference_binding_test.template.dart' as ng; diff --git a/_tests/test/core/linker/integration/template_test.dart b/_tests/test/core/linker/integration/template_test.dart index 7128ded437..42096ebe51 100644 --- a/_tests/test/core/linker/integration/template_test.dart +++ b/_tests/test/core/linker/integration/template_test.dart @@ -1,8 +1,8 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'template_test.template.dart' as ng; diff --git a/_tests/test/core/linker/integration/view_creation_test.dart b/_tests/test/core/linker/integration/view_creation_test.dart index 31ffb45917..7829e238c8 100644 --- a/_tests/test/core/linker/integration/view_creation_test.dart +++ b/_tests/test/core/linker/integration/view_creation_test.dart @@ -1,9 +1,9 @@ import 'dart:async'; import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'view_creation_test.template.dart' as ng; diff --git a/_tests/test/core/linker/integration_dart_test.dart b/_tests/test/core/linker/integration_dart_test.dart index d0e501bd7d..4db7dff961 100644 --- a/_tests/test/core/linker/integration_dart_test.dart +++ b/_tests/test/core/linker/integration_dart_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'integration_dart_test.template.dart' as ng; diff --git a/_tests/test/core/linker/nested_container_test.dart b/_tests/test/core/linker/nested_container_test.dart index 54a21dd7ad..509686495f 100644 --- a/_tests/test/core/linker/nested_container_test.dart +++ b/_tests/test/core/linker/nested_container_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'nested_container_test.template.dart' as ng; diff --git a/_tests/test/core/linker/nested_template_test.dart b/_tests/test/core/linker/nested_template_test.dart index 419b7aae69..8362e0e668 100644 --- a/_tests/test/core/linker/nested_template_test.dart +++ b/_tests/test/core/linker/nested_template_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'nested_template_test.template.dart' as ng; diff --git a/_tests/test/core/linker/ng_content_ref_test.dart b/_tests/test/core/linker/ng_content_ref_test.dart index 713c17bee9..83a5e3a530 100644 --- a/_tests/test/core/linker/ng_content_ref_test.dart +++ b/_tests/test/core/linker/ng_content_ref_test.dart @@ -1,7 +1,7 @@ -import 'package:test/test.dart'; import 'package:_tests/matchers.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'ng_content_ref_test.template.dart' as ng; diff --git a/_tests/test/core/linker/query_integration_test.dart b/_tests/test/core/linker/query_integration_test.dart index 598b636b70..d9c3681139 100644 --- a/_tests/test/core/linker/query_integration_test.dart +++ b/_tests/test/core/linker/query_integration_test.dart @@ -1,8 +1,8 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'query_integration_test.template.dart' as ng; diff --git a/_tests/test/core/linker/regression_integration_test.dart b/_tests/test/core/linker/regression_integration_test.dart index c8a2f2e8ed..9d5e2f9eee 100644 --- a/_tests/test/core/linker/regression_integration_test.dart +++ b/_tests/test/core/linker/regression_integration_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'regression_integration_test.template.dart' as ng; diff --git a/_tests/test/core/linker/security_integration_test.dart b/_tests/test/core/linker/security_integration_test.dart index 6ce01d7976..7af9b66df6 100644 --- a/_tests/test/core/linker/security_integration_test.dart +++ b/_tests/test/core/linker/security_integration_test.dart @@ -2,10 +2,10 @@ import 'dart:html'; -import 'package:ngtest/angular_test.dart'; +import 'package:ngdart/angular.dart'; import 'package:ngdart/src/security/dom_sanitization_service.dart'; +import 'package:ngtest/angular_test.dart'; import 'package:test/test.dart'; -import 'package:ngdart/angular.dart'; import 'security_integration_test.template.dart' as ng; @@ -14,7 +14,8 @@ void main() { test('should escape unsafe attributes', () async { const unsafeUrl = 'javascript:alert(1)'; - final testBed = NgTestBed(ng.createUnsafeAttributeComponentFactory()); + final testBed = NgTestBed( + ng.createUnsafeAttributeComponentFactory()); final testFixture = await testBed.create(); final a = testFixture.rootElement.querySelector('a') as AnchorElement; expect(a.href, matches(r'.*/hello$')); @@ -25,19 +26,22 @@ void main() { }); test('should not escape values marked as trusted', () async { - final testBed = NgTestBed(ng.createTrustedValueComponentFactory()); + final testBed = NgTestBed( + ng.createTrustedValueComponentFactory()); final testFixture = await testBed.create(); final a = testFixture.rootElement.querySelector('a') as AnchorElement; expect(a.href, 'javascript:alert(1)'); }); test('should throw error when using the wrong trusted value', () async { - final testBed = NgTestBed(ng.createWrongTrustedValueComponentFactory()); + final testBed = NgTestBed( + ng.createWrongTrustedValueComponentFactory()); expect(testBed.create(), throwsA(isUnsupportedError)); }); test('should escape unsafe styles', () async { - final testBed = NgTestBed(ng.createUnsafeStyleComponentFactory()); + final testBed = + NgTestBed(ng.createUnsafeStyleComponentFactory()); final testFixture = await testBed.create(); final div = testFixture.rootElement.querySelector('div'); expect(div?.style.background, matches('red')); @@ -48,7 +52,8 @@ void main() { }); test('should escape unsafe HTML', () async { - final testBed = NgTestBed(ng.createUnsafeHtmlComponentFactory()); + final testBed = + NgTestBed(ng.createUnsafeHtmlComponentFactory()); final testFixture = await testBed.create(); final div = testFixture.rootElement.querySelector('div'); expect(div?.innerHtml, 'some

text

'); diff --git a/_tests/test/core/linker/shadowed_inherited_members_test.dart b/_tests/test/core/linker/shadowed_inherited_members_test.dart index 4d7d1e47e5..2fd4dd6cad 100644 --- a/_tests/test/core/linker/shadowed_inherited_members_test.dart +++ b/_tests/test/core/linker/shadowed_inherited_members_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'shadowed_inherited_members_test.template.dart' as ng; diff --git a/_tests/test/core/linker/style_encapsulation_test.dart b/_tests/test/core/linker/style_encapsulation_test.dart index bd4eddde3b..bf794313a5 100644 --- a/_tests/test/core/linker/style_encapsulation_test.dart +++ b/_tests/test/core/linker/style_encapsulation_test.dart @@ -1,8 +1,8 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'style_encapsulation_test.template.dart' as ng; diff --git a/_tests/test/core/mock_like_directive_test.dart b/_tests/test/core/mock_like_directive_test.dart deleted file mode 100644 index 576adb627b..0000000000 --- a/_tests/test/core/mock_like_directive_test.dart +++ /dev/null @@ -1,75 +0,0 @@ -// @dart=2.9 - -import 'dart:async'; - -import 'package:test/test.dart'; -import 'package:ngdart/angular.dart'; -import 'package:ngtest/angular_test.dart'; - -import 'mock_like_directive_test.template.dart' as ng; - -void main() { - tearDown(disposeAnyRunningTest); - - test('should support null @Output if mock-like', () async { - final testBed = NgTestBed(ng.createTestMockNotificationComponentFactory()); - await testBed.create(); - }); - - test("shouldn't support null @Output if not mock-like", () async { - final testBed = NgTestBed(ng.createTestFakeNotificationComponentFactory()); - expect(testBed.create(), throwsA(const TypeMatcher())); - }); -} - -@Component( - selector: 'notifier', - template: '', -) -class NotifierComponent { - final StreamController _notificationsController = - StreamController(); - - @Output() - Stream get notifications => _notificationsController.stream; -} - -@Component( - selector: 'notifier', - template: '', -) -class MockNotifierComponent implements NotifierComponent { - @override - Object noSuchMethod(Invocation invocation) => null; -} - -@Component( - selector: 'test-mock-notifier', - template: ''' - - ''', - directives: [MockNotifierComponent], -) -class TestMockNotificationComponent { - void notify(String notification) {} -} - -@Component( - selector: 'notifier', - template: '', -) -class FakeNotifierComponent extends NotifierComponent { - @override - Stream get notifications => null; -} - -@Component( - selector: 'test-fake-notifier', - template: ''' - - ''', - directives: [FakeNotifierComponent], -) -class TestFakeNotificationComponent { - void notify(String notification) {} -} diff --git a/_tests/test/core/ng_zone_test.dart b/_tests/test/core/ng_zone_test.dart index 0c7ec194f7..ca7201fdc3 100644 --- a/_tests/test/core/ng_zone_test.dart +++ b/_tests/test/core/ng_zone_test.dart @@ -1,7 +1,7 @@ import 'dart:async'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; +import 'package:test/test.dart'; void main() { group('$NgZone', () { diff --git a/_tests/test/core/pipe_test.dart b/_tests/test/core/pipe_test.dart index c5d8d919f3..8b612cfc63 100644 --- a/_tests/test/core/pipe_test.dart +++ b/_tests/test/core/pipe_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'pipe_test.template.dart' as ng; diff --git a/_tests/test/core/query_html_element_test.dart b/_tests/test/core/query_html_element_test.dart index b8a518c3b3..c28bd8eb60 100644 --- a/_tests/test/core/query_html_element_test.dart +++ b/_tests/test/core/query_html_element_test.dart @@ -1,8 +1,8 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'query_html_element_test.template.dart' as ng; diff --git a/_tests/test/core/styling/clear_component_styles_test.dart b/_tests/test/core/styling/clear_component_styles_test.dart index a6121d99bb..7eb4a4ab02 100644 --- a/_tests/test/core/styling/clear_component_styles_test.dart +++ b/_tests/test/core/styling/clear_component_styles_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'clear_component_styles_test.template.dart' as ng; diff --git a/_tests/test/core/styling/order_test.dart b/_tests/test/core/styling/order_test.dart index b4cbdc970b..6390ff024a 100644 --- a/_tests/test/core/styling/order_test.dart +++ b/_tests/test/core/styling/order_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'order_test.template.dart' as ng; diff --git a/_tests/test/core/styling/shim_test.dart b/_tests/test/core/styling/shim_test.dart index b7f5bedd6d..535b356f90 100644 --- a/_tests/test/core/styling/shim_test.dart +++ b/_tests/test/core/styling/shim_test.dart @@ -2,9 +2,9 @@ library angular2.test.common.styling.shim_test; import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'shim_test.template.dart' as ng; diff --git a/_tests/test/core/testability/testability_test.dart b/_tests/test/core/testability/testability_test.dart index d9b8c45a2f..7f2ead817b 100644 --- a/_tests/test/core/testability/testability_test.dart +++ b/_tests/test/core/testability/testability_test.dart @@ -1,7 +1,7 @@ import 'dart:async'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; +import 'package:test/test.dart'; // Schedules a microtasks (using a resolved promise .then()) void microTask(void Function() fn) { diff --git a/_tests/test/core/view/projection_integration_test.dart b/_tests/test/core/view/projection_integration_test.dart index 78db26a9c2..965f5a95c9 100644 --- a/_tests/test/core/view/projection_integration_test.dart +++ b/_tests/test/core/view/projection_integration_test.dart @@ -1,8 +1,8 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'projection_integration_test.template.dart' as ng; diff --git a/_tests/test/core/view/projection_test.dart b/_tests/test/core/view/projection_test.dart index 9b98e03783..a4cd7430fa 100644 --- a/_tests/test/core/view/projection_test.dart +++ b/_tests/test/core/view/projection_test.dart @@ -1,9 +1,9 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:_tests/matchers.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'projection_test.template.dart' as ng; diff --git a/_tests/test/core/view/view_child_regression_test.dart b/_tests/test/core/view/view_child_regression_test.dart index 3d446f1213..1b326b27f9 100644 --- a/_tests/test/core/view/view_child_regression_test.dart +++ b/_tests/test/core/view/view_child_regression_test.dart @@ -1,8 +1,8 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'view_child_regression_test.template.dart' as ng; diff --git a/_tests/test/devtools/inspector_test.dart b/_tests/test/devtools/inspector_test.dart index 3dc62d3383..c5a559340a 100644 --- a/_tests/test/devtools/inspector_test.dart +++ b/_tests/test/devtools/inspector_test.dart @@ -1,9 +1,9 @@ import 'dart:html' as html; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngdart/src/devtools.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'inspector_test.template.dart' as ng; @@ -22,9 +22,8 @@ void main() { // TODO(b/194920649): remove. group('getComponents', () { test('component views', () async { - final testBed = NgTestBed( - ng.createTestComponentViewsFactory() - as ComponentFactory); + final testBed = + NgTestBed(ng.createTestComponentViewsFactory()); await testBed.create(); final components = Inspector.instance.getComponents(groupName); @@ -54,8 +53,7 @@ void main() { group('embedded views', () { test('conditional', () async { final testBed = NgTestBed( - ng.createTestConditionalEmbeddedViewsFactory() - as ComponentFactory); + ng.createTestConditionalEmbeddedViewsFactory()); final testFixture = await testBed.create(); // Should not return embedded component before it's created. @@ -97,8 +95,7 @@ void main() { test('repeated', () async { final testBed = NgTestBed( - ng.createTestRepeatedEmbeddedViewsFactory() - as ComponentFactory); + ng.createTestRepeatedEmbeddedViewsFactory()); final testFixture = await testBed.create( beforeChangeDetection: (component) { component.values = [1, 2, 4]; @@ -159,8 +156,7 @@ void main() { test('transplanted', () async { final testBed = NgTestBed( - ng.createTestTransplantedEmbeddedViewsFactory() - as ComponentFactory); + ng.createTestTransplantedEmbeddedViewsFactory()); await testBed.create(); final components = Inspector.instance.getComponents(groupName); @@ -187,8 +183,7 @@ void main() { }); test('host views', () async { - final testBed = NgTestBed( - ng.createTestHostViewsFactory() as ComponentFactory); + final testBed = NgTestBed(ng.createTestHostViewsFactory()); final testFixture = await testBed.create(); // Should not return imperatively loaded component before it's created. @@ -230,8 +225,7 @@ void main() { test('projected content', () async { final testBed = NgTestBed( - ng.createTestProjectedContentFactory() - as ComponentFactory); + ng.createTestProjectedContentFactory()); await testBed.create(); final components = Inspector.instance.getComponents(groupName); @@ -275,8 +269,7 @@ void main() { setUp(() async { container = createContentRoot(); final testBed = NgTestBed( - ng.createTestExternalContentRootsFactory() - as ComponentFactory); + ng.createTestExternalContentRootsFactory()); testFixture = await testBed.create(); }); @@ -325,8 +318,7 @@ void main() { final containerOne = createContentRoot(); final containerTwo = createContentRoot(); final testBed = NgTestBed( - ng.createTestExternalContentRootsFactory() - as ComponentFactory); + ng.createTestExternalContentRootsFactory()); final testFixture = await testBed.create(); await testFixture.update((component) { @@ -347,8 +339,7 @@ void main() { test('is coalesced by existing content root', () async { final testBed = NgTestBed( - ng.createTestExternalContentRootsFactory() - as ComponentFactory); + ng.createTestExternalContentRootsFactory()); final testFixture = await testBed.create(); final container = createContentRoot(parent: testFixture.rootElement); @@ -365,8 +356,7 @@ void main() { test('coalesces existing content roots', () async { final testBed = NgTestBed( - ng.createTestExternalContentRootsFactory() - as ComponentFactory); + ng.createTestExternalContentRootsFactory()); final testFixture = await testBed.create(); final childContainer = html.DivElement(); final parentContainer = testFixture.rootElement.parent! @@ -400,9 +390,8 @@ void main() { group('getNodes', () { test('component views', () async { - final testBed = NgTestBed( - ng.createTestComponentViewsFactory() - as ComponentFactory); + final testBed = + NgTestBed(ng.createTestComponentViewsFactory()); await testBed.create(); expect( @@ -423,8 +412,7 @@ void main() { group('embedded views', () { test('conditional', () async { final testBed = NgTestBed( - ng.createTestConditionalEmbeddedViewsFactory() - as ComponentFactory); + ng.createTestConditionalEmbeddedViewsFactory()); final testFixture = await testBed.create(); // Should not return embedded component before it's created. @@ -482,8 +470,7 @@ void main() { test('repeated', () async { final testBed = NgTestBed( - ng.createTestRepeatedEmbeddedViewsFactory() - as ComponentFactory); + ng.createTestRepeatedEmbeddedViewsFactory()); final testFixture = await testBed.create( beforeChangeDetection: (component) { component.values = [1, 2, 4]; @@ -552,8 +539,7 @@ void main() { test('transplated', () async { final testBed = NgTestBed( - ng.createTestTransplantedEmbeddedViewsFactory() - as ComponentFactory); + ng.createTestTransplantedEmbeddedViewsFactory()); await testBed.create(); expect( @@ -579,8 +565,7 @@ void main() { }); test('host views', () async { - final testBed = NgTestBed( - ng.createTestHostViewsFactory() as ComponentFactory); + final testBed = NgTestBed(ng.createTestHostViewsFactory()); final testFixture = await testBed.create(); // Should not return imperatively loaded component before it's created. @@ -616,8 +601,7 @@ void main() { test('projected content', () async { final testBed = NgTestBed( - ng.createTestProjectedContentFactory() - as ComponentFactory); + ng.createTestProjectedContentFactory()); await testBed.create(); expect( @@ -650,8 +634,7 @@ void main() { setUp(() async { container = createContentRoot(); final testBed = NgTestBed( - ng.createTestExternalContentRootsFactory() - as ComponentFactory); + ng.createTestExternalContentRootsFactory()); testFixture = await testBed.create(); }); @@ -700,8 +683,7 @@ void main() { final containerOne = createContentRoot(); final containerTwo = createContentRoot(); final testBed = NgTestBed( - ng.createTestExternalContentRootsFactory() - as ComponentFactory); + ng.createTestExternalContentRootsFactory()); final testFixture = await testBed.create(); await testFixture.update((component) { @@ -722,8 +704,7 @@ void main() { test('is coalesced by existing content root', () async { final testBed = NgTestBed( - ng.createTestExternalContentRootsFactory() - as ComponentFactory); + ng.createTestExternalContentRootsFactory()); final testFixture = await testBed.create(); final container = createContentRoot(parent: testFixture.rootElement); @@ -740,8 +721,7 @@ void main() { test('coalesces existing content roots', () async { final testBed = NgTestBed( - ng.createTestExternalContentRootsFactory() - as ComponentFactory); + ng.createTestExternalContentRootsFactory()); final testFixture = await testBed.create(); final childContainer = html.DivElement(); final parentContainer = testFixture.rootElement.parent! @@ -778,8 +758,8 @@ void main() { } test('no inputs', () async { - final testBed = NgTestBed( - ng.createTestUsedInputsFactory() as ComponentFactory); + final testBed = + NgTestBed(ng.createTestUsedInputsFactory()); await testBed.create(); final components = Inspector.instance.getComponents(groupName); @@ -791,9 +771,8 @@ void main() { }); test('omits unused inputs', () async { - final testBed = NgTestBed( - ng.createTestUnusedInputsFactory() - as ComponentFactory); + final testBed = + NgTestBed(ng.createTestUnusedInputsFactory()); await testBed.create(); final id = firstChildComponentId(); @@ -802,8 +781,8 @@ void main() { }); test('omits inputs until set', () async { - final testBed = NgTestBed( - ng.createTestUsedInputsFactory() as ComponentFactory); + final testBed = + NgTestBed(ng.createTestUsedInputsFactory()); final testFixture = await testBed.create(); final id = firstChildComponentId(); @@ -829,8 +808,8 @@ void main() { }); test('updates inputs when changed', () async { - final testBed = NgTestBed( - ng.createTestUsedInputsFactory() as ComponentFactory); + final testBed = + NgTestBed(ng.createTestUsedInputsFactory()); final testFixture = await testBed.create( beforeChangeDetection: (component) { component.title = 'Hello!'; @@ -850,9 +829,8 @@ void main() { }); test('records immutable expressions', () async { - final testBed = NgTestBed( - ng.createTestImmutableInputsFactory() - as ComponentFactory); + final testBed = + NgTestBed(ng.createTestImmutableInputsFactory()); final testFixture = await testBed.create(); final id = firstChildComponentId(); @@ -877,8 +855,8 @@ void main() { } test('no inputs', () async { - final testBed = NgTestBed( - ng.createTestUsedInputsFactory() as ComponentFactory); + final testBed = + NgTestBed(ng.createTestUsedInputsFactory()); await testBed.create(); final nodes = Inspector.instance.getNodes(groupName); @@ -888,9 +866,8 @@ void main() { }); test('omits unused inputs', () async { - final testBed = NgTestBed( - ng.createTestUnusedInputsFactory() - as ComponentFactory); + final testBed = + NgTestBed(ng.createTestUnusedInputsFactory()); await testBed.create(); final id = firstChildComponentId(); @@ -899,8 +876,8 @@ void main() { }); test('omits inputs until set', () async { - final testBed = NgTestBed( - ng.createTestUsedInputsFactory() as ComponentFactory); + final testBed = + NgTestBed(ng.createTestUsedInputsFactory()); final testFixture = await testBed.create(); final id = firstChildComponentId(); @@ -926,8 +903,8 @@ void main() { }); test('updates inputs when changed', () async { - final testBed = NgTestBed( - ng.createTestUsedInputsFactory() as ComponentFactory); + final testBed = + NgTestBed(ng.createTestUsedInputsFactory()); final testFixture = await testBed.create( beforeChangeDetection: (component) { component.title = 'Hello!'; @@ -947,9 +924,8 @@ void main() { }); test('records immutable expressions', () async { - final testBed = NgTestBed( - ng.createTestImmutableInputsFactory() - as ComponentFactory); + final testBed = + NgTestBed(ng.createTestImmutableInputsFactory()); final testFixture = await testBed.create(); final id = firstChildComponentId(); @@ -967,8 +943,7 @@ void main() { test('captures directive inputs', () async { final testBed = NgTestBed( - ng.createTestConditionalEmbeddedViewsFactory() - as ComponentFactory); + ng.createTestConditionalEmbeddedViewsFactory()); final testFixture = await testBed.create(); final nodes = Inspector.instance.getNodes(groupName); final ngIfId = nodes.first.children.first.directives.first.id; @@ -1101,8 +1076,7 @@ class TestEmbeddedViews2 { ''', ) class TestHostViews { - final componentFactory = - ng.createTestHostViews1Factory() as ComponentFactory; + final componentFactory = ng.createTestHostViews1Factory(); @ViewChild('viewContainerRef', read: ViewContainerRef) ViewContainerRef? viewContainerRef; diff --git a/_tests/test/devtools/reference_counter_test.dart b/_tests/test/devtools/reference_counter_test.dart index 18ee70b335..7ebb3179cd 100644 --- a/_tests/test/devtools/reference_counter_test.dart +++ b/_tests/test/devtools/reference_counter_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/src/devtools/error.dart'; import 'package:ngdart/src/devtools/reference_counter.dart'; +import 'package:test/test.dart'; final throwsDevToolsError = throwsA(isA()); diff --git a/_tests/test/di/generated/injector_use_value_test.dart b/_tests/test/di/generated/injector_use_value_test.dart index 0b9c132b1f..5f7f24e9e3 100644 --- a/_tests/test/di/generated/injector_use_value_test.dart +++ b/_tests/test/di/generated/injector_use_value_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; +import 'package:test/test.dart'; import 'injector_use_value_test.template.dart' as ng; diff --git a/_tests/test/di/injector_test.dart b/_tests/test/di/injector_test.dart index 31e61ebc83..9410581f12 100644 --- a/_tests/test/di/injector_test.dart +++ b/_tests/test/di/injector_test.dart @@ -1,11 +1,11 @@ // ignore_for_file: invalid_use_of_protected_member -import 'package:test/test.dart'; import 'package:_tests/matchers.dart'; import 'package:ngdart/angular.dart'; import 'package:ngdart/experimental.dart'; import 'package:ngdart/src/di/injector.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'injector_test.template.dart' as ng; @@ -306,7 +306,7 @@ void main() { }); group('root Injector overrides', () { - void _testOverrideExceptionHandler(Injector appInjector) { + void testOverrideExceptionHandler(Injector appInjector) { // Normally errors here are forwarded to the ExceptionHandler. // // In the case of #1227, we accidentally always used the default @@ -323,7 +323,7 @@ void main() { // This is relied on by internal clients until we introduce a sharding API. test('rootInjector should allow overriding ExceptionHandler', () { - _testOverrideExceptionHandler( + testOverrideExceptionHandler( rootInjector((parent) { return Injector.map({ ExceptionHandler: _CustomExceptionHandler(), diff --git a/_tests/test/directives/ng_for_content_projection_test.dart b/_tests/test/directives/ng_for_content_projection_test.dart index 57e074a7c9..eb054fe885 100644 --- a/_tests/test/directives/ng_for_content_projection_test.dart +++ b/_tests/test/directives/ng_for_content_projection_test.dart @@ -1,8 +1,8 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'ng_for_content_projection_test.template.dart' as ng; @@ -20,8 +20,7 @@ void main() { test('@ContentChildren', () async { fixture = await NgTestBed( - ng.createTestNgForReorderContentChildrenFactory() - as ComponentFactory, + ng.createTestNgForReorderContentChildrenFactory(), ).create( beforeChangeDetection: (c) => c.items = [1, 2, 3], ); @@ -39,8 +38,7 @@ void main() { test('@ContentChildren, when nested', () async { fixture = await NgTestBed( - ng.createTestNestedNgForReorderContentChildrenFactory() - as ComponentFactory) + ng.createTestNestedNgForReorderContentChildrenFactory()) .create( beforeChangeDetection: (c) => c.items = [1, 2, 3], ); @@ -57,9 +55,8 @@ void main() { }); test('@ContentChildren, when nested with a #referenced child', () async { - fixture = await NgTestBed(ng - .createTestReferencedNgForReorderContentChildrenFactory() - as ComponentFactory) + fixture = await NgTestBed( + ng.createTestReferencedNgForReorderContentChildrenFactory()) .create( beforeChangeDetection: (c) => c.items = [1, 2, 3], ); @@ -78,8 +75,7 @@ void main() { test('@ViewChildren', () async { fixture = await NgTestBed( - ng.createTestNgForReorderViewChildrenFactory() - as ComponentFactory) + ng.createTestNgForReorderViewChildrenFactory()) .create( beforeChangeDetection: (c) => c.items = [1, 2, 3], ); @@ -97,8 +93,7 @@ void main() { test('@ViewChildren, when nested', () async { fixture = await NgTestBed( - ng.createTestNestedNgForReorderViewChildrenFactory() - as ComponentFactory) + ng.createTestNestedNgForReorderViewChildrenFactory()) .create( beforeChangeDetection: (c) => c.items = [1, 2, 3], ); @@ -116,8 +111,7 @@ void main() { test('@ViewChildren, when nested with a #referenced child', () async { fixture = await NgTestBed( - ng.createTestReferencedNgForReorderViewChildrenFactory() - as ComponentFactory) + ng.createTestReferencedNgForReorderViewChildrenFactory()) .create( beforeChangeDetection: (c) => c.items = [1, 2, 3], ); diff --git a/_tests/test/integration/query_content_test.dart b/_tests/test/integration/query_content_test.dart index f2f662aecc..2cdb05c96e 100644 --- a/_tests/test/integration/query_content_test.dart +++ b/_tests/test/integration/query_content_test.dart @@ -1,7 +1,7 @@ -import 'package:test/test.dart'; import 'package:_tests/query_tests.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'query_content_test.template.dart' as ng; diff --git a/_tests/test/integration/query_view_test.dart b/_tests/test/integration/query_view_test.dart index 1bb2e7cce0..8254a5e5e8 100644 --- a/_tests/test/integration/query_view_test.dart +++ b/_tests/test/integration/query_view_test.dart @@ -1,10 +1,10 @@ import 'dart:async'; import 'dart:html'; -import 'package:test/test.dart'; import 'package:_tests/query_tests.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'query_view_test.template.dart' as ng; diff --git a/_tests/test/integration/unicode_template_test.dart b/_tests/test/integration/unicode_template_test.dart index 2e67cb1e81..1ed1fb430f 100644 --- a/_tests/test/integration/unicode_template_test.dart +++ b/_tests/test/integration/unicode_template_test.dart @@ -9,14 +9,7 @@ void main() { test('should be able to compile templates with unicode', () async { final testBed = NgTestBed(ng.createAppFactory()); final fixture = await testBed.create(); - expect( - fixture.text, - allOf([ - contains('🎂'), - contains('ΓΔ'), - contains('↔↕'), - ]), - ); + expect(fixture.text, allOf(contains('🎂'), contains('ΓΔ'), contains('↔↕'))); }); } diff --git a/_tests/test/lifecycle_hooks/after_changes_test.dart b/_tests/test/lifecycle_hooks/after_changes_test.dart index 3108ad3756..d6ac09429a 100644 --- a/_tests/test/lifecycle_hooks/after_changes_test.dart +++ b/_tests/test/lifecycle_hooks/after_changes_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'after_changes_test.template.dart' as ng; @@ -8,8 +8,8 @@ void main() { tearDown(disposeAnyRunningTest); test('should be called at least once on initial load', () async { - final testBed = NgTestBed(ng - .createTestAfterChangesFactory() as ComponentFactory); + final testBed = + NgTestBed(ng.createTestAfterChangesFactory()); final fixture = await testBed.create(beforeChangeDetection: (instance) { instance ..name = 'Buzz Lightyear' @@ -20,8 +20,8 @@ void main() { }); test('should be called after there is a change to an @Input', () async { - final testBed = NgTestBed(ng - .createTestAfterChangesFactory() as ComponentFactory); + final testBed = + NgTestBed(ng.createTestAfterChangesFactory()); final fixture = await testBed.create(); expect(fixture.text, isEmpty); expect(AfterChangesExample.ngAfterChangesCalled, 0); @@ -42,8 +42,8 @@ void main() { }); test('should be skipped if inputs do not change identity', () async { - final testBed = NgTestBed(ng - .createTestAfterChangesFactory() as ComponentFactory); + final testBed = + NgTestBed(ng.createTestAfterChangesFactory()); final fixture = await testBed.create(); expect(fixture.text, isEmpty); expect(AfterChangesExample.ngAfterChangesCalled, 0); @@ -65,8 +65,7 @@ void main() { test('should also be supported on a @Directive', () async { final testBed = NgTestBed( - ng.createTestAfterChangesDirectiveFactory() - as ComponentFactory); + ng.createTestAfterChangesDirectiveFactory()); final fixture = await testBed.create(beforeChangeDetection: (instance) { instance.name = 'Buzz Lightyear'; }); diff --git a/_tests/test/lifecycle_hooks/do_check_test.dart b/_tests/test/lifecycle_hooks/do_check_test.dart index 86c5694200..647831de9f 100644 --- a/_tests/test/lifecycle_hooks/do_check_test.dart +++ b/_tests/test/lifecycle_hooks/do_check_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'do_check_test.template.dart' as ng; @@ -10,8 +10,8 @@ void main() { tearDown(disposeAnyRunningTest); test('should call ngDoCheck initially', () async { - final testBed = NgTestBed( - ng.createTestDoCheckHookFactory() as ComponentFactory); + final testBed = + NgTestBed(ng.createTestDoCheckHookFactory()); final fixture = await testBed.create( beforeChangeDetection: (i) => i.animals = ['Dog', 'Cat', 'Dog'], ); @@ -19,9 +19,8 @@ void main() { }); test('should call input setters initially', () async { - final testBed = NgTestBed( - ng.createTestDoCheckSetterFactory() - as ComponentFactory); + final testBed = + NgTestBed(ng.createTestDoCheckSetterFactory()); final fixture = await testBed.create( beforeChangeDetection: (i) => i.animals = ['Dog', 'Cat', 'Dog'], ); @@ -29,8 +28,8 @@ void main() { }); test('should call ngDoCheck after each update', () async { - final testBed = NgTestBed( - ng.createTestDoCheckHookFactory() as ComponentFactory); + final testBed = + NgTestBed(ng.createTestDoCheckHookFactory()); final fixture = await testBed.create( beforeChangeDetection: (i) => i.animals = ['Dog', 'Cat', 'Dog'], ); @@ -41,9 +40,8 @@ void main() { }); test('should call input setters only when changed', () async { - final testBed = NgTestBed( - ng.createTestDoCheckSetterFactory() - as ComponentFactory); + final testBed = + NgTestBed(ng.createTestDoCheckSetterFactory()); final fixture = await testBed.create( beforeChangeDetection: (i) => i.animals = ['Dog', 'Cat', 'Dog'], ); diff --git a/_tests/test/platform/dom/events/key_events_test.dart b/_tests/test/platform/dom/events/key_events_test.dart index e49367fc54..f8918f56eb 100644 --- a/_tests/test/platform/dom/events/key_events_test.dart +++ b/_tests/test/platform/dom/events/key_events_test.dart @@ -1,9 +1,9 @@ import 'dart:html'; import 'dart:js'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'key_events_test.template.dart' as ng; diff --git a/_tests/test/resolve_util.dart b/_tests/test/resolve_util.dart index 4a22610d36..2d154697ca 100644 --- a/_tests/test/resolve_util.dart +++ b/_tests/test/resolve_util.dart @@ -1,37 +1,38 @@ -// @dart=2.9 - import 'dart:io'; import 'dart:isolate'; import 'package:analyzer/dart/element/element.dart'; import 'package:build/build.dart'; -import 'package:build/experiments.dart'; import 'package:build_test/build_test.dart'; -import 'package:package_config/package_config.dart'; -import 'package:source_gen/source_gen.dart'; import 'package:ngcompiler/v1/src/compiler/template_compiler.dart'; import 'package:ngcompiler/v1/src/source_gen/template_compiler/component_visitor_exceptions.dart'; import 'package:ngcompiler/v1/src/source_gen/template_compiler/find_components.dart'; +import 'package:package_config/package_config.dart'; +import 'package:source_gen/source_gen.dart'; // Use custom package config for angular sources if specified -final _packageConfigFuture = Platform - .environment['ANGULAR_PACKAGE_CONFIG_PATH'] != - null - ? loadPackageConfigUri( - Uri.base.resolve(Platform.environment['ANGULAR_PACKAGE_CONFIG_PATH'])) - : Isolate.packageConfig.then(loadPackageConfigUri); +final Future _packageConfigFuture = () async { + Uri uri; + + if (Platform.environment['ANGULAR_PACKAGE_CONFIG_PATH'] case var path?) { + uri = Uri.base.resolve(path); + } else { + uri = (await Isolate.packageConfig)!; + } + + return loadPackageConfigUri(uri); +}(); -Future resolve(String source, - [PackageConfig packageConfig]) async { +Future resolve( + String source, [ + PackageConfig? packageConfig, +]) async { final testAssetId = AssetId('_tests', 'lib/resolve.dart'); - return await withEnabledExperiments( - () => resolveSource( - source, - (resolver) => resolver.libraryFor(testAssetId), - inputId: testAssetId, - packageConfig: packageConfig, - ), - ['non-nullable'], + return await resolveSource( + source, + (resolver) => resolver.libraryFor(testAssetId), + inputId: testAssetId, + packageConfig: packageConfig, ); } diff --git a/_tests/test/security/dom_sanitization_service_test.dart b/_tests/test/security/dom_sanitization_service_test.dart index 03e1f9e778..2aa0e29e8a 100644 --- a/_tests/test/security/dom_sanitization_service_test.dart +++ b/_tests/test/security/dom_sanitization_service_test.dart @@ -1,7 +1,7 @@ @TestOn('browser') -import 'package:test/test.dart'; import 'package:ngdart/src/security/dom_sanitization_service.dart'; +import 'package:test/test.dart'; void main() { final DomSanitizationService sanitizer = DomSanitizationService(); diff --git a/_tests/test/security/html_sanitizer_test.dart b/_tests/test/security/html_sanitizer_test.dart index 4d493daa66..19d32efcbe 100644 --- a/_tests/test/security/html_sanitizer_test.dart +++ b/_tests/test/security/html_sanitizer_test.dart @@ -1,7 +1,7 @@ @TestOn('browser') -import 'package:test/test.dart'; import 'package:ngdart/src/security/html_sanitizer.dart'; +import 'package:test/test.dart'; void _testSanitize(String input, String expectedOutput, bool knownFailure) { String? output; diff --git a/_tests/test/security/safe_inner_html_test.dart b/_tests/test/security/safe_inner_html_test.dart index a775311171..b643a33df1 100644 --- a/_tests/test/security/safe_inner_html_test.dart +++ b/_tests/test/security/safe_inner_html_test.dart @@ -1,9 +1,9 @@ @TestOn('browser') -import 'package:ngtest/angular_test.dart'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngdart/security.dart'; +import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'safe_inner_html_test.template.dart' as ng; diff --git a/_tests/test/security/style_sanitizer_test.dart b/_tests/test/security/style_sanitizer_test.dart index fd60de0bdf..99af5e8e62 100644 --- a/_tests/test/security/style_sanitizer_test.dart +++ b/_tests/test/security/style_sanitizer_test.dart @@ -1,7 +1,7 @@ @TestOn('browser') -import 'package:test/test.dart'; import 'package:ngdart/src/security/style_sanitizer.dart'; +import 'package:test/test.dart'; void main() { group('Style sanitizer', () { diff --git a/_tests/test/security/url_sanitizer_test.dart b/_tests/test/security/url_sanitizer_test.dart index f1268b935a..50d6bc6bb4 100644 --- a/_tests/test/security/url_sanitizer_test.dart +++ b/_tests/test/security/url_sanitizer_test.dart @@ -1,7 +1,7 @@ @TestOn('browser') -import 'package:test/test.dart'; import 'package:ngdart/src/security/url_sanitizer.dart'; +import 'package:test/test.dart'; void main() { group('URL sanitizer', () { diff --git a/_tests/test/source_gen/template_compiler/find_components_test.dart b/_tests/test/source_gen/template_compiler/find_components_test.dart index b5eea4cbdd..ff15341aee 100644 --- a/_tests/test/source_gen/template_compiler/find_components_test.dart +++ b/_tests/test/source_gen/template_compiler/find_components_test.dart @@ -1,102 +1,11 @@ -// @dart=2.9 - -import 'package:meta/meta.dart'; -import 'package:test/test.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; import '../../resolve_util.dart'; void main() { setUp(() { - CompileContext.overrideForTesting(CompileContext.forTesting( - emitNullSafeCode: false, - )); - }); - - void mockLikeTests({@required bool nullSafe}) { - setUp(() { - if (nullSafe) { - CompileContext.overrideForTesting(CompileContext.forTesting( - emitNullSafeCode: true, - )); - } - }); - final libHeader = nullSafe ? '' : '// @dart=2.9'; - test("with 'noSuchMethod' implementation", () async { - final normalizedComponent = await resolveAndFindComponent( - ''' - $libHeader - @Component(selector: 'not-blank') - class MockLikeComponent { - noSuchMethod(Invocation invocation) => null; - }''', - ); - - final isMockLike = normalizedComponent.component.analyzedClass.isMockLike; - if (nullSafe) { - expect(isMockLike, false); - } else { - expect(isMockLike, true); - } - }); - - test("with inherited 'noSuchMethod' implementation", () async { - final normalizedComponent = await resolveAndFindComponent( - ''' - $libHeader - class MockLikeBase { - noSuchMethod(Invocation invocation) => null; - } - - @Component(selector: 'not-blank') - class MockLikeComponent extends MockLikeBase {}''', - ); - - final isMockLike = normalizedComponent.component.analyzedClass.isMockLike; - if (nullSafe) { - expect(isMockLike, false); - } else { - expect(isMockLike, true); - } - }); - - test("with mixed-in 'noSuchMethod' implementation", () async { - final normalizedComponent = await resolveAndFindComponent( - ''' - $libHeader - class MockLikeMixin { - noSuchMethod(Invocation invocation) => null; - } - - @Component(selector: 'not-blank') - class MockLikeComponent extends Object with MockLikeMixin {}''', - ); - - final isMockLike = normalizedComponent.component.analyzedClass.isMockLike; - if (nullSafe) { - expect(isMockLike, false); - } else { - expect(isMockLike, true); - } - }); - } - - group('should be mock-like', () { - mockLikeTests(nullSafe: false); - }); - - group('should never be mock-like when opted-in to null-safety', () { - mockLikeTests(nullSafe: true); - }); - - test('should not be mock-like', () async { - final normalizedComponent = await resolveAndFindComponent( - ''' - // @dart=2.9 - @Component(selector: 'not-blank') - class NotMockLikeComponent {}''', - ); - expect(normalizedComponent.component.analyzedClass.isMockLike, false); + CompileContext.overrideForTesting(CompileContext.forTesting()); }); group('Generic type parameter', () { @@ -107,7 +16,8 @@ void main() { @Input() T value; }'''); - expect(normalizedComponent.component.inputTypes['value'].name, 'dynamic'); + expect( + normalizedComponent.component.inputTypes['value']?.name, 'dynamic'); }); test('should resolve to dynamic when unspecified on supertype', () async { @@ -120,7 +30,8 @@ void main() { @Component(selector: 'not-blank') class TestComponent extends Base {} '''); - expect(normalizedComponent.component.inputTypes['value'].name, 'dynamic'); + expect( + normalizedComponent.component.inputTypes['value']?.name, 'dynamic'); }); test('should resolve bounded type', () async { @@ -130,7 +41,7 @@ void main() { @Input() T value; }'''); - expect(normalizedComponent.component.inputTypes['value'].name, 'String'); + expect(normalizedComponent.component.inputTypes['value']?.name, 'String'); }); test('should resolve bounded type on supertype', () async { @@ -143,7 +54,7 @@ void main() { @Component(selector: 'not-blank') class TestComponent extends Base {} '''); - expect(normalizedComponent.component.inputTypes['value'].name, 'String'); + expect(normalizedComponent.component.inputTypes['value']?.name, 'String'); }); test('should resolve to specified type', () async { @@ -156,7 +67,7 @@ void main() { @Component(selector: 'not-blank') class TestComponent extends Base {} '''); - expect(normalizedComponent.component.inputTypes['value'].name, 'String'); + expect(normalizedComponent.component.inputTypes['value']?.name, 'String'); }); }); } diff --git a/_tests/test/templates/additional_expression_test.dart b/_tests/test/templates/additional_expression_test.dart index 46d303a6a5..df2cffcb18 100644 --- a/_tests/test/templates/additional_expression_test.dart +++ b/_tests/test/templates/additional_expression_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'additional_expression_lib.dart' as lib; import 'additional_expression_test.template.dart' as ng; @@ -13,8 +13,7 @@ void main() { test('should parse identifiers from prefixed exports', () async { final fixture = await NgTestBed( - ng.createTestPrefixedExportsFactory() - as ComponentFactory) + ng.createTestPrefixedExportsFactory()) .create(); expect( fixture.text, @@ -32,8 +31,7 @@ void main() { setUp(() async { fixture = await NgTestBed( - ng.createTestNonRootAssignmentFactory() - as ComponentFactory) + ng.createTestNonRootAssignmentFactory()) .create(); }); @@ -74,8 +72,7 @@ void main() { test('should parse null-aware method invocations', () async { final fixture = await NgTestBed( - ng.createTestNullAwareFunctionsFactory() - as ComponentFactory) + ng.createTestNullAwareFunctionsFactory()) .create(); expect( fixture.text, diff --git a/analysis_options.yaml b/analysis_options.yaml index 42be8cf901..b35c2e4d60 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -13,12 +13,12 @@ analyzer: # Permanent exclusions: Unlikely to removed. # ===================== - # Allow importing .template.dart files without an [explicit] analyzer error. - uri_has_not_been_generated: ignore # Ignore our own deprecated symbols (too noisy). deprecated_member_use_from_same_package: ignore # Allow having TODOs in the code (too noisy). todo: ignore + # Allow importing .template.dart files without an [explicit] analyzer error. + uri_has_not_been_generated: ignore # Security exclusions: We are security reviewed separate from these lints. # ===================== @@ -28,16 +28,12 @@ analyzer: # ===================== # Re-enable once we no longer have 200+ analyzer related deprecations. deprecated_member_use: ignore - # Re-enable this once unused parameters are exempted (e.g. callback(_) {}). - inference_failure_on_untyped_parameter: ignore linter: rules: - - iterable_contains_unrelated_type - - list_remove_unrelated_type - always_declare_return_types - prefer_single_quotes - - sort_child_properties_last + - directives_ordering - unawaited_futures - unsafe_html - - use_full_hex_values_for_flutter_colors + - use_super_parameters diff --git a/examples/hello_world/pubspec.yaml b/examples/hello_world/pubspec.yaml index bab3c6340c..ca2bac0c38 100644 --- a/examples/hello_world/pubspec.yaml +++ b/examples/hello_world/pubspec.yaml @@ -1,13 +1,13 @@ name: examples_hello_world environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=3.0.0 <4.0.0" dependencies: # No strict dependencies, we always use dependency_overrides. - ngdart: + ngdart: any dev_dependencies: - build_runner: ^2.3.3 - build_web_compilers: ^3.2.7 - lints: ^2.0.1 + build_runner: ^2.4.6 + build_web_compilers: ^4.0.4 + lints: ^3.0.0 diff --git a/examples/hello_world/web/main.dart b/examples/hello_world/web/main.dart index 4c759ed451..f5a0edad12 100644 --- a/examples/hello_world/web/main.dart +++ b/examples/hello_world/web/main.dart @@ -2,7 +2,9 @@ import 'package:ngdart/angular.dart'; import 'main.template.dart' as ng; -void main() => runApp(ng.HelloWorldComponentNgFactory); +void main() { + runApp(ng.HelloWorldComponentNgFactory); +} @Component( selector: 'hello-world', diff --git a/goldens/README.md b/goldens/README.md index fac43920e8..78cea4c597 100644 --- a/goldens/README.md +++ b/goldens/README.md @@ -1,11 +1,7 @@ A destination for golden file testing. -TIP: Need to update all of the tests? Run: - -```shell -$ dart run build_runner build -r -$ dart run tool/update.dart -``` +Use `dart run build_runner build -r` to build the golden files +and `dart run tool/update.dart` to update the golden files. Currently when adding a new `a.dart` file, you must add a sibling `a.template.dart.golden` and `a.js.golden` file. diff --git a/goldens/pubspec.yaml b/goldens/pubspec.yaml index 3b88ec29a1..1d73592586 100644 --- a/goldens/pubspec.yaml +++ b/goldens/pubspec.yaml @@ -3,16 +3,17 @@ description: Goldens for AngularDart. publish_to: none environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=3.1.0 <4.0.0" dependencies: - js: ^0.6.5 - ngdart: ^8.0.0-dev.1 + js: ^0.6.7 + meta: ^1.11.0 + ngdart: ^8.0.0-dev.3 dev_dependencies: - build_runner: ^2.3.3 - build_web_compilers: ^3.2.7 - dart_style: ^2.3.0 - glob: ^2.1.1 - lints: ^2.0.1 + build_runner: ^2.4.6 + build_web_compilers: ^4.0.4 + dart_style: ^2.3.3 + glob: ^2.1.2 + lints: ^3.0.0 path: ^1.8.3 diff --git a/goldens/test/templates/large_templates_opt_out.dart b/goldens/test/templates/large_templates_opt_out.dart deleted file mode 100644 index 4ad6d0fc7f..0000000000 --- a/goldens/test/templates/large_templates_opt_out.dart +++ /dev/null @@ -1,123 +0,0 @@ -// Intentionally opt-out to review code compared to "large_templates.dart". -// @dart=2.9 -@JS() -library golden; - -// This code is roughly intended to reflect large-internal clients, i.e. -// https://source.corp.google.com/piper///depot/google3/ads/awapps2/cm/client/overview/root/lib/overview.template.dart - -import 'package:js/js.dart'; -import 'package:ngdart/angular.dart'; - -import 'large_templates_opt_out.template.dart' as ng; - -/// Avoids Dart2JS thinking something is constant/unchanging. -@JS() -external T deopt([Object any]); - -void main() { - runApp(ng.createGoldenComponentFactory()); -} - -@Component( - selector: 'golden', - directives: [ - ChildComponent, - NgIf, - ], - template: ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ''', -) -class GoldenComponent { - bool get isLoading => deopt(); -} - -@Component( - selector: 'child', - template: '', -) -class ChildComponent {} diff --git a/goldens/test/templates/large_templates_opt_out.js.golden b/goldens/test/templates/large_templates_opt_out.js.golden deleted file mode 100644 index bf27f84206..0000000000 --- a/goldens/test/templates/large_templates_opt_out.js.golden +++ /dev/null @@ -1,11020 +0,0 @@ -// Generated by dart2js (NullSafetyMode.unsound, csp, deferred-serialization, intern-composite-values), the Dart to JavaScript compiler version: 2.19.6. -// The code supports the following hooks: -// dartPrint(message): -// if this function is defined it is called instead of the Dart [print] -// method. -// -// dartMainRunner(main, args): -// if this function is defined, the Dart [main] method will not be invoked -// directly. Instead, a closure that will invoke [main], and its arguments -// [args] is passed to [dartMainRunner]. -// -// dartDeferredLibraryLoader(uri, successCallback, errorCallback, loadId): -// if this function is defined, it will be called when a deferred library -// is loaded. It should load and eval the javascript of `uri`, and call -// successCallback. If it fails to do so, it should call errorCallback with -// an error. The loadId argument is the deferred import that resulted in -// this uri being loaded. -// -// dartCallInstrumentation(id, qualifiedName): -// if this function is defined, it will be called at each entry of a -// method or constructor. Used only when compiling programs with -// --experiment-call-instrumentation. -(function dartProgram() { - function copyProperties(from, to) { - var keys = Object.keys(from); - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - to[key] = from[key]; - } - } - function mixinPropertiesHard(from, to) { - var keys = Object.keys(from); - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - if (!to.hasOwnProperty(key)) - to[key] = from[key]; - } - } - function mixinPropertiesEasy(from, to) { - Object.assign(to, from); - } - var supportsDirectProtoAccess = function() { - var cls = function() { - }; - cls.prototype = {p: {}}; - var object = new cls(); - if (!(object.__proto__ && object.__proto__.p === cls.prototype.p)) - return false; - try { - if (typeof navigator != "undefined" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome/") >= 0) - return true; - if (typeof version == "function" && version.length == 0) { - var v = version(); - if (/^\d+\.\d+\.\d+\.\d+$/.test(v)) - return true; - } - } catch (_) { - } - return false; - }(); - function inherit(cls, sup) { - cls.prototype.constructor = cls; - cls.prototype["$is" + cls.name] = cls; - if (sup != null) { - if (supportsDirectProtoAccess) { - cls.prototype.__proto__ = sup.prototype; - return; - } - var clsPrototype = Object.create(sup.prototype); - copyProperties(cls.prototype, clsPrototype); - cls.prototype = clsPrototype; - } - } - function inheritMany(sup, classes) { - for (var i = 0; i < classes.length; i++) - inherit(classes[i], sup); - } - function mixinEasy(cls, mixin) { - mixinPropertiesEasy(mixin.prototype, cls.prototype); - cls.prototype.constructor = cls; - } - function mixinHard(cls, mixin) { - mixinPropertiesHard(mixin.prototype, cls.prototype); - cls.prototype.constructor = cls; - } - function lazyOld(holder, name, getterName, initializer) { - var uninitializedSentinel = holder; - holder[name] = uninitializedSentinel; - holder[getterName] = function() { - holder[getterName] = function() { - A.throwCyclicInit(name); - }; - var result; - var sentinelInProgress = initializer; - try { - if (holder[name] === uninitializedSentinel) { - result = holder[name] = sentinelInProgress; - result = holder[name] = initializer(); - } else - result = holder[name]; - } finally { - if (result === sentinelInProgress) - holder[name] = null; - holder[getterName] = function() { - return this[name]; - }; - } - return result; - }; - } - function lazy(holder, name, getterName, initializer) { - var uninitializedSentinel = holder; - holder[name] = uninitializedSentinel; - holder[getterName] = function() { - if (holder[name] === uninitializedSentinel) - holder[name] = initializer(); - holder[getterName] = function() { - return this[name]; - }; - return holder[name]; - }; - } - function lazyFinal(holder, name, getterName, initializer) { - var uninitializedSentinel = holder; - holder[name] = uninitializedSentinel; - holder[getterName] = function() { - if (holder[name] === uninitializedSentinel) { - var value = initializer(); - if (holder[name] !== uninitializedSentinel) - A.throwLateFieldADI(name); - holder[name] = value; - } - var finalValue = holder[name]; - holder[getterName] = function() { - return finalValue; - }; - return finalValue; - }; - } - function makeConstList(list) { - list.immutable$list = Array; - list.fixed$length = Array; - return list; - } - function convertToFastObject(properties) { - function t() { - } - t.prototype = properties; - new t(); - return properties; - } - function convertAllToFastObject(arrayOfObjects) { - for (var i = 0; i < arrayOfObjects.length; ++i) - convertToFastObject(arrayOfObjects[i]); - } - var functionCounter = 0; - function instanceTearOffGetter(isIntercepted, parameters) { - var cache = null; - return isIntercepted ? function(receiver) { - if (cache === null) - cache = A.closureFromTearOff(parameters); - return new cache(receiver, this); - } : function() { - if (cache === null) - cache = A.closureFromTearOff(parameters); - return new cache(this, null); - }; - } - function staticTearOffGetter(parameters) { - var cache = null; - return function() { - if (cache === null) - cache = A.closureFromTearOff(parameters).prototype; - return cache; - }; - } - var typesOffset = 0; - function tearOffParameters(container, isStatic, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, needsDirectAccess) { - if (typeof funType == "number") - funType += typesOffset; - return {co: container, iS: isStatic, iI: isIntercepted, rC: requiredParameterCount, dV: optionalParameterDefaultValues, cs: callNames, fs: funsOrNames, fT: funType, aI: applyIndex || 0, nDA: needsDirectAccess}; - } - function installStaticTearOff(holder, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) { - var parameters = tearOffParameters(holder, true, false, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, false); - var getterFunction = staticTearOffGetter(parameters); - holder[getterName] = getterFunction; - } - function installInstanceTearOff(prototype, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, needsDirectAccess) { - isIntercepted = !!isIntercepted; - var parameters = tearOffParameters(prototype, false, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, !!needsDirectAccess); - var getterFunction = instanceTearOffGetter(isIntercepted, parameters); - prototype[getterName] = getterFunction; - } - function setOrUpdateInterceptorsByTag(newTags) { - var tags = init.interceptorsByTag; - if (!tags) { - init.interceptorsByTag = newTags; - return; - } - copyProperties(newTags, tags); - } - function setOrUpdateLeafTags(newTags) { - var tags = init.leafTags; - if (!tags) { - init.leafTags = newTags; - return; - } - copyProperties(newTags, tags); - } - function updateTypes(newTypes) { - var types = init.types; - var length = types.length; - types.push.apply(types, newTypes); - return length; - } - function updateHolder(holder, newHolder) { - copyProperties(newHolder, holder); - return holder; - } - var hunkHelpers = function() { - var mkInstance = function(isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) { - return function(container, getterName, name, funType) { - return installInstanceTearOff(container, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex, false); - }; - }, - mkStatic = function(requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) { - return function(container, getterName, name, funType) { - return installStaticTearOff(container, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex); - }; - }; - return {inherit: inherit, inheritMany: inheritMany, mixin: mixinEasy, mixinHard: mixinHard, installStaticTearOff: installStaticTearOff, installInstanceTearOff: installInstanceTearOff, _instance_0u: mkInstance(0, 0, null, ["call$0"], 0), _instance_1u: mkInstance(0, 1, null, ["call$1"], 0), _instance_2u: mkInstance(0, 2, null, ["call$2"], 0), _instance_0i: mkInstance(1, 0, null, ["call$0"], 0), _instance_1i: mkInstance(1, 1, null, ["call$1"], 0), _instance_2i: mkInstance(1, 2, null, ["call$2"], 0), _static_0: mkStatic(0, null, ["call$0"], 0), _static_1: mkStatic(1, null, ["call$1"], 0), _static_2: mkStatic(2, null, ["call$2"], 0), makeConstList: makeConstList, lazy: lazy, lazyFinal: lazyFinal, lazyOld: lazyOld, updateHolder: updateHolder, convertToFastObject: convertToFastObject, updateTypes: updateTypes, setOrUpdateInterceptorsByTag: setOrUpdateInterceptorsByTag, setOrUpdateLeafTags: setOrUpdateLeafTags}; - }(); - function initializeDeferredHunk(hunk) { - typesOffset = init.types.length; - hunk(hunkHelpers, init, holders, $); - } - var A = {JS_CONST: function JS_CONST() { - }, - LateError$fieldADI(fieldName) { - return new A.LateError("Field '" + A.S(fieldName) + "' has been assigned during initialization."); - }, - LateError$fieldNI(fieldName) { - return new A.LateError("Field '" + A.S(fieldName) + "' has not been initialized."); - }, - LateError$fieldAI(fieldName) { - return new A.LateError("Field '" + A.S(fieldName) + "' has already been initialized."); - }, - ReachabilityError$(_message) { - return new A.ReachabilityError(_message); - }, - checkNotNullable(value, $name, $T) { - if (value == null) - throw A.wrapException(new A.NotNullableError($name, $T._eval$1("NotNullableError<0>"))); - return value; - }, - IterableElementError_noElement() { - return new A.StateError("No element"); - }, - LateError: function LateError(t0) { - this._message = t0; - }, - ReachabilityError: function ReachabilityError(t0) { - this._message = t0; - }, - NotNullableError: function NotNullableError(t0, t1) { - this.__internal$_name = t0; - this.$ti = t1; - }, - EfficientLengthIterable: function EfficientLengthIterable() { - }, - ListIterator: function ListIterator(t0, t1, t2) { - var _ = this; - _.__internal$_iterable = t0; - _.__internal$_length = t1; - _.__internal$_index = 0; - _.__internal$_current = null; - _.$ti = t2; - }, - FixedLengthListMixin: function FixedLengthListMixin() { - }, - unminifyOrTag(rawClassName) { - var preserved = init.mangledGlobalNames[rawClassName]; - if (preserved != null) - return preserved; - return rawClassName; - }, - isJsIndexable(object, record) { - var result; - if (record != null) { - result = record.x; - if (result != null) - return result; - } - return type$.JavaScriptIndexingBehavior_dynamic._is(object); - }, - S(value) { - var result; - if (typeof value == "string") - return value; - if (typeof value == "number") { - if (value !== 0) - return "" + value; - } else if (true === value) - return "true"; - else if (false === value) - return "false"; - else if (value == null) - return "null"; - result = J.toString$0$(value); - if (typeof result != "string") - throw A.wrapException(A.ArgumentError$value(value, "object", "toString method returned 'null'")); - return result; - }, - Primitives_objectHashCode(object) { - var hash, - property = $.Primitives__identityHashCodeProperty; - if (property == null) - property = $.Primitives__identityHashCodeProperty = Symbol("identityHashCode"); - hash = object[property]; - if (hash == null) { - hash = Math.random() * 0x3fffffff | 0; - object[property] = hash; - } - return hash; - }, - Primitives_objectTypeName(object) { - return A.Primitives__objectTypeNameNewRti(object); - }, - Primitives__objectTypeNameNewRti(object) { - var interceptor, dispatchName, $constructor, constructorName; - if (object instanceof A.Object) - return A._rtiToString(A.instanceType(object), null); - interceptor = J.getInterceptor$(object); - if (interceptor === B.Interceptor_methods || interceptor === B.JavaScriptObject_methods || type$.UnknownJavaScriptObject._is(object)) { - dispatchName = B.C_JS_CONST(object); - if (dispatchName !== "Object" && dispatchName !== "") - return dispatchName; - $constructor = object.constructor; - if (typeof $constructor == "function") { - constructorName = $constructor.name; - if (typeof constructorName == "string" && constructorName !== "Object" && constructorName !== "") - return constructorName; - } - } - return A._rtiToString(A.instanceType(object), null); - }, - Primitives_stringFromCharCode(charCode) { - var bits; - if (0 <= charCode) { - if (charCode <= 65535) - return String.fromCharCode(charCode); - if (charCode <= 1114111) { - bits = charCode - 65536; - return String.fromCharCode((B.JSInt_methods._shrOtherPositive$1(bits, 10) | 55296) >>> 0, bits & 1023 | 56320); - } - } - throw A.wrapException(A.RangeError$range(charCode, 0, 1114111, null, null)); - }, - iae(argument) { - throw A.wrapException(A.argumentErrorValue(argument)); - }, - ioore(receiver, index) { - if (receiver == null) - J.get$length$asx(receiver); - throw A.wrapException(A.diagnoseIndexError(receiver, index)); - }, - diagnoseIndexError(indexable, index) { - var $length, t1, _s5_ = "index"; - if (!A._isInt(index)) - return new A.ArgumentError(true, index, _s5_, null); - $length = A._asIntS(J.get$length$asx(indexable)); - if (!(index < 0)) { - if (typeof $length !== "number") - return A.iae($length); - t1 = index >= $length; - } else - t1 = true; - if (t1) - return A.IndexError$withLength(index, $length, indexable, _s5_); - return A.RangeError$value(index, _s5_); - }, - argumentErrorValue(object) { - return new A.ArgumentError(true, object, null, null); - }, - wrapException(ex) { - var wrapper, t1; - if (ex == null) - ex = new A.NullThrownError(); - wrapper = new Error(); - wrapper.dartException = ex; - t1 = A.toStringWrapper; - if ("defineProperty" in Object) { - Object.defineProperty(wrapper, "message", {get: t1}); - wrapper.name = ""; - } else - wrapper.toString = t1; - return wrapper; - }, - toStringWrapper() { - return J.toString$0$(this.dartException); - }, - throwExpression(ex) { - throw A.wrapException(ex); - }, - throwConcurrentModificationError(collection) { - throw A.wrapException(A.ConcurrentModificationError$(collection)); - }, - TypeErrorDecoder_extractPattern(message) { - var match, $arguments, argumentsExpr, expr, method, receiver; - message = A.quoteStringForRegExp(message.replace(String({}), "$receiver$")); - match = message.match(/\\\$[a-zA-Z]+\\\$/g); - if (match == null) - match = A._setArrayType([], type$.JSArray_String); - $arguments = match.indexOf("\\$arguments\\$"); - argumentsExpr = match.indexOf("\\$argumentsExpr\\$"); - expr = match.indexOf("\\$expr\\$"); - method = match.indexOf("\\$method\\$"); - receiver = match.indexOf("\\$receiver\\$"); - return new A.TypeErrorDecoder(message.replace(new RegExp("\\\\\\$arguments\\\\\\$", "g"), "((?:x|[^x])*)").replace(new RegExp("\\\\\\$argumentsExpr\\\\\\$", "g"), "((?:x|[^x])*)").replace(new RegExp("\\\\\\$expr\\\\\\$", "g"), "((?:x|[^x])*)").replace(new RegExp("\\\\\\$method\\\\\\$", "g"), "((?:x|[^x])*)").replace(new RegExp("\\\\\\$receiver\\\\\\$", "g"), "((?:x|[^x])*)"), $arguments, argumentsExpr, expr, method, receiver); - }, - TypeErrorDecoder_provokeCallErrorOn(expression) { - return function($expr$) { - var $argumentsExpr$ = "$arguments$"; - try { - $expr$.$method$($argumentsExpr$); - } catch (e) { - return e.message; - } - }(expression); - }, - TypeErrorDecoder_provokePropertyErrorOn(expression) { - return function($expr$) { - try { - $expr$.$method$; - } catch (e) { - return e.message; - } - }(expression); - }, - JsNoSuchMethodError$(_message, match) { - var t1 = match == null, - t2 = t1 ? null : match.method; - return new A.JsNoSuchMethodError(_message, t2, t1 ? null : match.receiver); - }, - unwrapException(ex) { - if (ex == null) - return new A.NullThrownFromJavaScriptException(ex); - if (ex instanceof A.ExceptionAndStackTrace) - return A.saveStackTrace(ex, ex.dartException); - if (typeof ex !== "object") - return ex; - if ("dartException" in ex) - return A.saveStackTrace(ex, ex.dartException); - return A._unwrapNonDartException(ex); - }, - saveStackTrace(ex, error) { - if (type$.Error._is(error)) - if (error.$thrownJsError == null) - error.$thrownJsError = ex; - return error; - }, - _unwrapNonDartException(ex) { - var message, number, ieErrorCode, t1, nsme, notClosure, nullCall, nullLiteralCall, undefCall, undefLiteralCall, nullProperty, undefProperty, undefLiteralProperty, match, _null = null; - if (!("message" in ex)) - return ex; - message = ex.message; - if ("number" in ex && typeof ex.number == "number") { - number = ex.number; - ieErrorCode = number & 65535; - if ((B.JSInt_methods._shrOtherPositive$1(number, 16) & 8191) === 10) - switch (ieErrorCode) { - case 438: - return A.saveStackTrace(ex, A.JsNoSuchMethodError$(A.S(message) + " (Error " + ieErrorCode + ")", _null)); - case 445: - case 5007: - t1 = A.S(message); - return A.saveStackTrace(ex, new A.NullError(t1 + " (Error " + ieErrorCode + ")", _null)); - } - } - if (ex instanceof TypeError) { - nsme = $.$get$TypeErrorDecoder_noSuchMethodPattern(); - notClosure = $.$get$TypeErrorDecoder_notClosurePattern(); - nullCall = $.$get$TypeErrorDecoder_nullCallPattern(); - nullLiteralCall = $.$get$TypeErrorDecoder_nullLiteralCallPattern(); - undefCall = $.$get$TypeErrorDecoder_undefinedCallPattern(); - undefLiteralCall = $.$get$TypeErrorDecoder_undefinedLiteralCallPattern(); - nullProperty = $.$get$TypeErrorDecoder_nullPropertyPattern(); - $.$get$TypeErrorDecoder_nullLiteralPropertyPattern(); - undefProperty = $.$get$TypeErrorDecoder_undefinedPropertyPattern(); - undefLiteralProperty = $.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern(); - match = nsme.matchTypeError$1(message); - if (match != null) - return A.saveStackTrace(ex, A.JsNoSuchMethodError$(A._asStringS(message), match)); - else { - match = notClosure.matchTypeError$1(message); - if (match != null) { - match.method = "call"; - return A.saveStackTrace(ex, A.JsNoSuchMethodError$(A._asStringS(message), match)); - } else { - match = nullCall.matchTypeError$1(message); - if (match == null) { - match = nullLiteralCall.matchTypeError$1(message); - if (match == null) { - match = undefCall.matchTypeError$1(message); - if (match == null) { - match = undefLiteralCall.matchTypeError$1(message); - if (match == null) { - match = nullProperty.matchTypeError$1(message); - if (match == null) { - match = nullLiteralCall.matchTypeError$1(message); - if (match == null) { - match = undefProperty.matchTypeError$1(message); - if (match == null) { - match = undefLiteralProperty.matchTypeError$1(message); - t1 = match != null; - } else - t1 = true; - } else - t1 = true; - } else - t1 = true; - } else - t1 = true; - } else - t1 = true; - } else - t1 = true; - } else - t1 = true; - if (t1) { - A._asStringS(message); - return A.saveStackTrace(ex, new A.NullError(message, match == null ? _null : match.method)); - } - } - } - return A.saveStackTrace(ex, new A.UnknownJsTypeError(typeof message == "string" ? message : "")); - } - if (ex instanceof RangeError) { - if (typeof message == "string" && message.indexOf("call stack") !== -1) - return new A.StackOverflowError(); - message = function(ex) { - try { - return String(ex); - } catch (e) { - } - return null; - }(ex); - return A.saveStackTrace(ex, new A.ArgumentError(false, _null, _null, typeof message == "string" ? message.replace(/^RangeError:\s*/, "") : message)); - } - if (typeof InternalError == "function" && ex instanceof InternalError) - if (typeof message == "string" && message === "too much recursion") - return new A.StackOverflowError(); - return ex; - }, - getTraceFromException(exception) { - var trace; - if (exception instanceof A.ExceptionAndStackTrace) - return exception.stackTrace; - if (exception == null) - return new A._StackTrace(exception); - trace = exception.$cachedTrace; - if (trace != null) - return trace; - return exception.$cachedTrace = new A._StackTrace(exception); - }, - objectHashCode(object) { - if (object == null || typeof object != "object") - return J.get$hashCode$(object); - else - return A.Primitives_objectHashCode(object); - }, - fillLiteralMap(keyValuePairs, result) { - var index, index0, index1, - $length = keyValuePairs.length; - for (index = 0; index < $length; index = index1) { - index0 = index + 1; - index1 = index0 + 1; - result.$indexSet(0, keyValuePairs[index], keyValuePairs[index0]); - } - return result; - }, - invokeClosure(closure, numberOfArguments, arg1, arg2, arg3, arg4) { - type$.Function._as(closure); - switch (A._asIntS(numberOfArguments)) { - case 0: - return closure.call$0(); - case 1: - return closure.call$1(arg1); - case 2: - return closure.call$2(arg1, arg2); - case 3: - return closure.call$3(arg1, arg2, arg3); - case 4: - return closure.call$4(arg1, arg2, arg3, arg4); - } - throw A.wrapException(new A._Exception("Unsupported number of arguments for wrapped closure")); - }, - convertDartClosureToJS(closure, arity) { - var $function = closure.$identity; - if (!!$function) - return $function; - $function = function(closure, arity, invoke) { - return function(a1, a2, a3, a4) { - return invoke(closure, arity, a1, a2, a3, a4); - }; - }(closure, arity, A.invokeClosure); - closure.$identity = $function; - return $function; - }, - Closure_fromTearOff(parameters) { - var $prototype, $constructor, t2, trampoline, applyTrampoline, i, stub, stub0, stubName, stubCallName, - container = parameters.co, - isStatic = parameters.iS, - isIntercepted = parameters.iI, - needsDirectAccess = parameters.nDA, - applyTrampolineIndex = parameters.aI, - funsOrNames = parameters.fs, - callNames = parameters.cs, - $name = funsOrNames[0], - callName = callNames[0], - $function = container[$name], - t1 = parameters.fT; - t1.toString; - A.boolConversionCheck(isStatic); - $prototype = isStatic ? Object.create(new A.StaticClosure().constructor.prototype) : Object.create(new A.BoundClosure(null, null).constructor.prototype); - $prototype.$initialize = $prototype.constructor; - if (isStatic) - $constructor = function static_tear_off() { - this.$initialize(); - }; - else - $constructor = function tear_off(a, b) { - this.$initialize(a, b); - }; - $prototype.constructor = $constructor; - $constructor.prototype = $prototype; - $prototype.$_name = $name; - $prototype.$_target = $function; - t2 = !isStatic; - if (t2) - trampoline = A.Closure_forwardCallTo($name, $function, isIntercepted, needsDirectAccess); - else { - $prototype.$static_name = $name; - trampoline = $function; - } - $prototype.$signature = A.Closure__computeSignatureFunctionNewRti(t1, isStatic, isIntercepted); - $prototype[callName] = trampoline; - for (applyTrampoline = trampoline, i = 1; i < funsOrNames.length; ++i) { - stub = funsOrNames[i]; - if (typeof stub == "string") { - stub0 = container[stub]; - stubName = stub; - stub = stub0; - } else - stubName = ""; - stubCallName = callNames[i]; - if (stubCallName != null) { - if (t2) - stub = A.Closure_forwardCallTo(stubName, stub, isIntercepted, needsDirectAccess); - $prototype[stubCallName] = stub; - } - if (i === applyTrampolineIndex) - applyTrampoline = stub; - } - $prototype["call*"] = applyTrampoline; - $prototype.$requiredArgCount = parameters.rC; - $prototype.$defaultValues = parameters.dV; - return $constructor; - }, - Closure__computeSignatureFunctionNewRti(functionType, isStatic, isIntercepted) { - if (typeof functionType == "number") - return functionType; - if (typeof functionType == "string") { - if (A.boolConversionCheck(isStatic)) - throw A.wrapException("Cannot compute signature for static tearoff."); - return function(recipe, evalOnReceiver) { - return function() { - return evalOnReceiver(this, recipe); - }; - }(functionType, A.BoundClosure_evalRecipe); - } - throw A.wrapException("Error in functionType of tearoff"); - }, - Closure_cspForwardCall(arity, needsDirectAccess, stubName, $function) { - var getReceiver = A.BoundClosure_receiverOf; - switch (A.boolConversionCheck(needsDirectAccess) ? -1 : arity) { - case 0: - return function(entry, receiverOf) { - return function() { - return receiverOf(this)[entry](); - }; - }(stubName, getReceiver); - case 1: - return function(entry, receiverOf) { - return function(a) { - return receiverOf(this)[entry](a); - }; - }(stubName, getReceiver); - case 2: - return function(entry, receiverOf) { - return function(a, b) { - return receiverOf(this)[entry](a, b); - }; - }(stubName, getReceiver); - case 3: - return function(entry, receiverOf) { - return function(a, b, c) { - return receiverOf(this)[entry](a, b, c); - }; - }(stubName, getReceiver); - case 4: - return function(entry, receiverOf) { - return function(a, b, c, d) { - return receiverOf(this)[entry](a, b, c, d); - }; - }(stubName, getReceiver); - case 5: - return function(entry, receiverOf) { - return function(a, b, c, d, e) { - return receiverOf(this)[entry](a, b, c, d, e); - }; - }(stubName, getReceiver); - default: - return function(f, receiverOf) { - return function() { - return f.apply(receiverOf(this), arguments); - }; - }($function, getReceiver); - } - }, - Closure_forwardCallTo(stubName, $function, isIntercepted, needsDirectAccess) { - var arity, t1; - if (A.boolConversionCheck(isIntercepted)) - return A.Closure_forwardInterceptedCallTo(stubName, $function, needsDirectAccess); - arity = $function.length; - t1 = A.Closure_cspForwardCall(arity, needsDirectAccess, stubName, $function); - return t1; - }, - Closure_cspForwardInterceptedCall(arity, needsDirectAccess, stubName, $function) { - var getReceiver = A.BoundClosure_receiverOf, - getInterceptor = A.BoundClosure_interceptorOf; - switch (A.boolConversionCheck(needsDirectAccess) ? -1 : arity) { - case 0: - throw A.wrapException(new A.RuntimeError("Intercepted function with no arguments.")); - case 1: - return function(entry, interceptorOf, receiverOf) { - return function() { - return interceptorOf(this)[entry](receiverOf(this)); - }; - }(stubName, getInterceptor, getReceiver); - case 2: - return function(entry, interceptorOf, receiverOf) { - return function(a) { - return interceptorOf(this)[entry](receiverOf(this), a); - }; - }(stubName, getInterceptor, getReceiver); - case 3: - return function(entry, interceptorOf, receiverOf) { - return function(a, b) { - return interceptorOf(this)[entry](receiverOf(this), a, b); - }; - }(stubName, getInterceptor, getReceiver); - case 4: - return function(entry, interceptorOf, receiverOf) { - return function(a, b, c) { - return interceptorOf(this)[entry](receiverOf(this), a, b, c); - }; - }(stubName, getInterceptor, getReceiver); - case 5: - return function(entry, interceptorOf, receiverOf) { - return function(a, b, c, d) { - return interceptorOf(this)[entry](receiverOf(this), a, b, c, d); - }; - }(stubName, getInterceptor, getReceiver); - case 6: - return function(entry, interceptorOf, receiverOf) { - return function(a, b, c, d, e) { - return interceptorOf(this)[entry](receiverOf(this), a, b, c, d, e); - }; - }(stubName, getInterceptor, getReceiver); - default: - return function(f, interceptorOf, receiverOf) { - return function() { - var a = [receiverOf(this)]; - Array.prototype.push.apply(a, arguments); - return f.apply(interceptorOf(this), a); - }; - }($function, getInterceptor, getReceiver); - } - }, - Closure_forwardInterceptedCallTo(stubName, $function, needsDirectAccess) { - var arity, t1; - if ($.BoundClosure__interceptorFieldNameCache == null) - $.BoundClosure__interceptorFieldNameCache = A.BoundClosure__computeFieldNamed("interceptor"); - if ($.BoundClosure__receiverFieldNameCache == null) - $.BoundClosure__receiverFieldNameCache = A.BoundClosure__computeFieldNamed("receiver"); - arity = $function.length; - t1 = A.Closure_cspForwardInterceptedCall(arity, needsDirectAccess, stubName, $function); - return t1; - }, - closureFromTearOff(parameters) { - return A.Closure_fromTearOff(parameters); - }, - BoundClosure_evalRecipe(closure, recipe) { - return A._Universe_evalInEnvironment(init.typeUniverse, A.instanceType(closure._receiver), recipe); - }, - BoundClosure_receiverOf(closure) { - return closure._receiver; - }, - BoundClosure_interceptorOf(closure) { - return closure._interceptor; - }, - BoundClosure__computeFieldNamed(fieldName) { - var t1, i, $name, - template = new A.BoundClosure("receiver", "interceptor"), - names = J.JSArray_markFixedList(Object.getOwnPropertyNames(template), type$.nullable_Object); - for (t1 = names.length, i = 0; i < t1; ++i) { - $name = names[i]; - if (template[$name] === fieldName) - return $name; - } - throw A.wrapException(A.ArgumentError$("Field name " + fieldName + " not found.", null)); - }, - boolConversionCheck(value) { - if (value == null) - A.assertThrow("boolean expression must not be null"); - return value; - }, - assertThrow(message) { - throw A.wrapException(new A._AssertionError(message)); - }, - throwCyclicInit(staticName) { - throw A.wrapException(new A.CyclicInitializationError(staticName)); - }, - getIsolateAffinityTag($name) { - return init.getIsolateTag($name); - }, - defineProperty(obj, property, value) { - Object.defineProperty(obj, property, {value: value, enumerable: false, writable: true, configurable: true}); - }, - lookupAndCacheInterceptor(obj) { - var interceptor, interceptorClass, altTag, mark, t1, - tag = A._asStringS($.getTagFunction.call$1(obj)), - record = $.dispatchRecordsForInstanceTags[tag]; - if (record != null) { - Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true}); - return record.i; - } - interceptor = $.interceptorsForUncacheableTags[tag]; - if (interceptor != null) - return interceptor; - interceptorClass = init.interceptorsByTag[tag]; - if (interceptorClass == null) { - altTag = A._asStringQ($.alternateTagFunction.call$2(obj, tag)); - if (altTag != null) { - record = $.dispatchRecordsForInstanceTags[altTag]; - if (record != null) { - Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true}); - return record.i; - } - interceptor = $.interceptorsForUncacheableTags[altTag]; - if (interceptor != null) - return interceptor; - interceptorClass = init.interceptorsByTag[altTag]; - tag = altTag; - } - } - if (interceptorClass == null) - return null; - interceptor = interceptorClass.prototype; - mark = tag[0]; - if (mark === "!") { - record = A.makeLeafDispatchRecord(interceptor); - $.dispatchRecordsForInstanceTags[tag] = record; - Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true}); - return record.i; - } - if (mark === "~") { - $.interceptorsForUncacheableTags[tag] = interceptor; - return interceptor; - } - if (mark === "-") { - t1 = A.makeLeafDispatchRecord(interceptor); - Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true}); - return t1.i; - } - if (mark === "+") - return A.patchInteriorProto(obj, interceptor); - if (mark === "*") - throw A.wrapException(A.UnimplementedError$(tag)); - if (init.leafTags[tag] === true) { - t1 = A.makeLeafDispatchRecord(interceptor); - Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true}); - return t1.i; - } else - return A.patchInteriorProto(obj, interceptor); - }, - patchInteriorProto(obj, interceptor) { - var proto = Object.getPrototypeOf(obj); - Object.defineProperty(proto, init.dispatchPropertyName, {value: J.makeDispatchRecord(interceptor, proto, null, null), enumerable: false, writable: true, configurable: true}); - return interceptor; - }, - makeLeafDispatchRecord(interceptor) { - return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScriptIndexingBehavior); - }, - makeDefaultDispatchRecord(tag, interceptorClass, proto) { - var interceptor = interceptorClass.prototype; - if (init.leafTags[tag] === true) - return A.makeLeafDispatchRecord(interceptor); - else - return J.makeDispatchRecord(interceptor, proto, null, null); - }, - initNativeDispatch() { - if (true === $.initNativeDispatchFlag) - return; - $.initNativeDispatchFlag = true; - A.initNativeDispatchContinue(); - }, - initNativeDispatchContinue() { - var map, tags, fun, i, tag, proto, record, interceptorClass; - $.dispatchRecordsForInstanceTags = Object.create(null); - $.interceptorsForUncacheableTags = Object.create(null); - A.initHooks(); - map = init.interceptorsByTag; - tags = Object.getOwnPropertyNames(map); - if (typeof window != "undefined") { - window; - fun = function() { - }; - for (i = 0; i < tags.length; ++i) { - tag = tags[i]; - proto = $.prototypeForTagFunction.call$1(tag); - if (proto != null) { - record = A.makeDefaultDispatchRecord(tag, map[tag], proto); - if (record != null) { - Object.defineProperty(proto, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true}); - fun.prototype = proto; - } - } - } - } - for (i = 0; i < tags.length; ++i) { - tag = tags[i]; - if (/^[A-Za-z_]/.test(tag)) { - interceptorClass = map[tag]; - map["!" + tag] = interceptorClass; - map["~" + tag] = interceptorClass; - map["-" + tag] = interceptorClass; - map["+" + tag] = interceptorClass; - map["*" + tag] = interceptorClass; - } - } - }, - initHooks() { - var transformers, i, transformer, getTag, getUnknownTag, prototypeForTag, - hooks = B.C_JS_CONST0(); - hooks = A.applyHooksTransformer(B.C_JS_CONST1, A.applyHooksTransformer(B.C_JS_CONST2, A.applyHooksTransformer(B.C_JS_CONST3, A.applyHooksTransformer(B.C_JS_CONST3, A.applyHooksTransformer(B.C_JS_CONST4, A.applyHooksTransformer(B.C_JS_CONST5, A.applyHooksTransformer(B.C_JS_CONST6(B.C_JS_CONST), hooks))))))); - if (typeof dartNativeDispatchHooksTransformer != "undefined") { - transformers = dartNativeDispatchHooksTransformer; - if (typeof transformers == "function") - transformers = [transformers]; - if (transformers.constructor == Array) - for (i = 0; i < transformers.length; ++i) { - transformer = transformers[i]; - if (typeof transformer == "function") - hooks = transformer(hooks) || hooks; - } - } - getTag = hooks.getTag; - getUnknownTag = hooks.getUnknownTag; - prototypeForTag = hooks.prototypeForTag; - $.getTagFunction = new A.initHooks_closure(getTag); - $.alternateTagFunction = new A.initHooks_closure0(getUnknownTag); - $.prototypeForTagFunction = new A.initHooks_closure1(prototypeForTag); - }, - applyHooksTransformer(transformer, hooks) { - return transformer(hooks) || hooks; - }, - quoteStringForRegExp(string) { - if (/[[\]{}()*+?.\\^$|]/.test(string)) - return string.replace(/[[\]{}()*+?.\\^$|]/g, "\\$&"); - return string; - }, - TypeErrorDecoder: function TypeErrorDecoder(t0, t1, t2, t3, t4, t5) { - var _ = this; - _._pattern = t0; - _._arguments = t1; - _._argumentsExpr = t2; - _._expr = t3; - _._method = t4; - _._receiver = t5; - }, - NullError: function NullError(t0, t1) { - this.__js_helper$_message = t0; - this._method = t1; - }, - JsNoSuchMethodError: function JsNoSuchMethodError(t0, t1, t2) { - this.__js_helper$_message = t0; - this._method = t1; - this._receiver = t2; - }, - UnknownJsTypeError: function UnknownJsTypeError(t0) { - this.__js_helper$_message = t0; - }, - NullThrownFromJavaScriptException: function NullThrownFromJavaScriptException(t0) { - this._irritant = t0; - }, - ExceptionAndStackTrace: function ExceptionAndStackTrace() { - }, - _StackTrace: function _StackTrace(t0) { - this._exception = t0; - this._trace = null; - }, - Closure: function Closure() { - }, - Closure0Args: function Closure0Args() { - }, - Closure2Args: function Closure2Args() { - }, - TearOffClosure: function TearOffClosure() { - }, - StaticClosure: function StaticClosure() { - }, - BoundClosure: function BoundClosure(t0, t1) { - this._receiver = t0; - this._interceptor = t1; - }, - RuntimeError: function RuntimeError(t0) { - this.message = t0; - }, - _AssertionError: function _AssertionError(t0) { - this.message = t0; - }, - JsLinkedHashMap: function JsLinkedHashMap(t0) { - var _ = this; - _.__js_helper$_length = 0; - _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null; - _._modifications = 0; - _.$ti = t0; - }, - LinkedHashMapCell: function LinkedHashMapCell(t0, t1) { - var _ = this; - _.hashMapCellKey = t0; - _.hashMapCellValue = t1; - _.__js_helper$_previous = _._next = null; - }, - LinkedHashMapKeyIterable: function LinkedHashMapKeyIterable(t0, t1) { - this._map = t0; - this.$ti = t1; - }, - LinkedHashMapKeyIterator: function LinkedHashMapKeyIterator(t0, t1, t2) { - var _ = this; - _._map = t0; - _._modifications = t1; - _.__js_helper$_current = _._cell = null; - _.$ti = t2; - }, - initHooks_closure: function initHooks_closure(t0) { - this.getTag = t0; - }, - initHooks_closure0: function initHooks_closure0(t0) { - this.getUnknownTag = t0; - }, - initHooks_closure1: function initHooks_closure1(t0) { - this.prototypeForTag = t0; - }, - throwLateFieldNI(fieldName) { - return A.throwExpression(A.LateError$fieldNI(fieldName)); - }, - throwLateFieldAI(fieldName) { - return A.throwExpression(A.LateError$fieldAI(fieldName)); - }, - throwLateFieldADI(fieldName) { - return A.throwExpression(A.LateError$fieldADI(fieldName)); - }, - _Cell$named(_name) { - var t1 = new A._Cell(_name); - return t1._value = t1; - }, - _Cell: function _Cell(t0) { - this.__late_helper$_name = t0; - this._value = null; - }, - NativeTypedData: function NativeTypedData() { - }, - NativeTypedArray: function NativeTypedArray() { - }, - NativeTypedArrayOfInt: function NativeTypedArrayOfInt() { - }, - NativeUint8List: function NativeUint8List() { - }, - _NativeTypedArrayOfInt_NativeTypedArray_ListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin() { - }, - _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin() { - }, - Rti__getQuestionFromStar(universe, rti) { - var question = rti._precomputed1; - return question == null ? rti._precomputed1 = A._Universe__lookupQuestionRti(universe, rti._primary, true) : question; - }, - Rti__getFutureFromFutureOr(universe, rti) { - var future = rti._precomputed1; - return future == null ? rti._precomputed1 = A._Universe__lookupInterfaceRti(universe, "Future", [rti._primary]) : future; - }, - Rti__isUnionOfFunctionType(rti) { - var kind = rti._kind; - if (kind === 6 || kind === 7 || kind === 8) - return A.Rti__isUnionOfFunctionType(rti._primary); - return kind === 12 || kind === 13; - }, - Rti__getCanonicalRecipe(rti) { - return rti._canonicalRecipe; - }, - findType(recipe) { - return A._Universe_eval(init.typeUniverse, recipe, false); - }, - _substitute(universe, rti, typeArguments, depth) { - var baseType, substitutedBaseType, interfaceTypeArguments, substitutedInterfaceTypeArguments, base, substitutedBase, $arguments, substitutedArguments, returnType, substitutedReturnType, functionParameters, substitutedFunctionParameters, bounds, substitutedBounds, index, argument, - kind = rti._kind; - switch (kind) { - case 5: - case 1: - case 2: - case 3: - case 4: - return rti; - case 6: - baseType = rti._primary; - substitutedBaseType = A._substitute(universe, baseType, typeArguments, depth); - if (substitutedBaseType === baseType) - return rti; - return A._Universe__lookupStarRti(universe, substitutedBaseType, true); - case 7: - baseType = rti._primary; - substitutedBaseType = A._substitute(universe, baseType, typeArguments, depth); - if (substitutedBaseType === baseType) - return rti; - return A._Universe__lookupQuestionRti(universe, substitutedBaseType, true); - case 8: - baseType = rti._primary; - substitutedBaseType = A._substitute(universe, baseType, typeArguments, depth); - if (substitutedBaseType === baseType) - return rti; - return A._Universe__lookupFutureOrRti(universe, substitutedBaseType, true); - case 9: - interfaceTypeArguments = rti._rest; - substitutedInterfaceTypeArguments = A._substituteArray(universe, interfaceTypeArguments, typeArguments, depth); - if (substitutedInterfaceTypeArguments === interfaceTypeArguments) - return rti; - return A._Universe__lookupInterfaceRti(universe, rti._primary, substitutedInterfaceTypeArguments); - case 10: - base = rti._primary; - substitutedBase = A._substitute(universe, base, typeArguments, depth); - $arguments = rti._rest; - substitutedArguments = A._substituteArray(universe, $arguments, typeArguments, depth); - if (substitutedBase === base && substitutedArguments === $arguments) - return rti; - return A._Universe__lookupBindingRti(universe, substitutedBase, substitutedArguments); - case 12: - returnType = rti._primary; - substitutedReturnType = A._substitute(universe, returnType, typeArguments, depth); - functionParameters = rti._rest; - substitutedFunctionParameters = A._substituteFunctionParameters(universe, functionParameters, typeArguments, depth); - if (substitutedReturnType === returnType && substitutedFunctionParameters === functionParameters) - return rti; - return A._Universe__lookupFunctionRti(universe, substitutedReturnType, substitutedFunctionParameters); - case 13: - bounds = rti._rest; - depth += bounds.length; - substitutedBounds = A._substituteArray(universe, bounds, typeArguments, depth); - base = rti._primary; - substitutedBase = A._substitute(universe, base, typeArguments, depth); - if (substitutedBounds === bounds && substitutedBase === base) - return rti; - return A._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, true); - case 14: - index = rti._primary; - if (index < depth) - return rti; - argument = typeArguments[index - depth]; - if (argument == null) - return rti; - return argument; - default: - throw A.wrapException(A.AssertionError$("Attempted to substitute unexpected RTI kind " + kind)); - } - }, - _substituteArray(universe, rtiArray, typeArguments, depth) { - var changed, i, rti, substitutedRti, - $length = rtiArray.length, - result = A._Utils_newArrayOrEmpty($length); - for (changed = false, i = 0; i < $length; ++i) { - rti = rtiArray[i]; - substitutedRti = A._substitute(universe, rti, typeArguments, depth); - if (substitutedRti !== rti) - changed = true; - result[i] = substitutedRti; - } - return changed ? result : rtiArray; - }, - _substituteNamed(universe, namedArray, typeArguments, depth) { - var changed, i, t1, t2, rti, substitutedRti, - $length = namedArray.length, - result = A._Utils_newArrayOrEmpty($length); - for (changed = false, i = 0; i < $length; i += 3) { - t1 = namedArray[i]; - t2 = namedArray[i + 1]; - rti = namedArray[i + 2]; - substitutedRti = A._substitute(universe, rti, typeArguments, depth); - if (substitutedRti !== rti) - changed = true; - result.splice(i, 3, t1, t2, substitutedRti); - } - return changed ? result : namedArray; - }, - _substituteFunctionParameters(universe, functionParameters, typeArguments, depth) { - var result, - requiredPositional = functionParameters._requiredPositional, - substitutedRequiredPositional = A._substituteArray(universe, requiredPositional, typeArguments, depth), - optionalPositional = functionParameters._optionalPositional, - substitutedOptionalPositional = A._substituteArray(universe, optionalPositional, typeArguments, depth), - named = functionParameters._named, - substitutedNamed = A._substituteNamed(universe, named, typeArguments, depth); - if (substitutedRequiredPositional === requiredPositional && substitutedOptionalPositional === optionalPositional && substitutedNamed === named) - return functionParameters; - result = new A._FunctionParameters(); - result._requiredPositional = substitutedRequiredPositional; - result._optionalPositional = substitutedOptionalPositional; - result._named = substitutedNamed; - return result; - }, - _setArrayType(target, rti) { - target[init.arrayRti] = rti; - return target; - }, - closureFunctionType(closure) { - var t1, - signature = closure.$signature; - if (signature != null) { - if (typeof signature == "number") - return A.getTypeFromTypesTable(signature); - t1 = closure.$signature(); - return t1; - } - return null; - }, - instanceOrFunctionType(object, testRti) { - var rti; - if (A.Rti__isUnionOfFunctionType(testRti)) - if (object instanceof A.Closure) { - rti = A.closureFunctionType(object); - if (rti != null) - return rti; - } - return A.instanceType(object); - }, - instanceType(object) { - var rti; - if (object instanceof A.Object) { - rti = object.$ti; - return rti != null ? rti : A._instanceTypeFromConstructor(object); - } - if (Array.isArray(object)) - return A._arrayInstanceType(object); - return A._instanceTypeFromConstructor(J.getInterceptor$(object)); - }, - _arrayInstanceType(object) { - var rti = object[init.arrayRti], - defaultRti = type$.JSArray_dynamic; - if (rti == null) - return defaultRti; - if (rti.constructor !== defaultRti.constructor) - return defaultRti; - return rti; - }, - _instanceType(object) { - var rti = object.$ti; - return rti != null ? rti : A._instanceTypeFromConstructor(object); - }, - _instanceTypeFromConstructor(instance) { - var $constructor = instance.constructor, - probe = $constructor.$ccache; - if (probe != null) - return probe; - return A._instanceTypeFromConstructorMiss(instance, $constructor); - }, - _instanceTypeFromConstructorMiss(instance, $constructor) { - var effectiveConstructor = instance instanceof A.Closure ? instance.__proto__.__proto__.constructor : $constructor, - rti = A._Universe_findErasedType(init.typeUniverse, effectiveConstructor.name); - $constructor.$ccache = rti; - return rti; - }, - getTypeFromTypesTable(index) { - var rti, - table = init.types, - type = table[index]; - if (typeof type == "string") { - rti = A._Universe_eval(init.typeUniverse, type, false); - table[index] = rti; - return rti; - } - return type; - }, - createRuntimeType(rti) { - var s, starErasedRecipe, starErasedRti, - type = rti._cachedRuntimeType; - if (type != null) - return type; - s = rti._canonicalRecipe; - starErasedRecipe = s.replace(/\*/g, ""); - if (starErasedRecipe === s) - return rti._cachedRuntimeType = new A._Type(rti); - starErasedRti = A._Universe_eval(init.typeUniverse, starErasedRecipe, true); - type = starErasedRti._cachedRuntimeType; - return rti._cachedRuntimeType = type == null ? starErasedRti._cachedRuntimeType = new A._Type(starErasedRti) : type; - }, - typeLiteral(recipe) { - return A.createRuntimeType(A._Universe_eval(init.typeUniverse, recipe, false)); - }, - _installSpecializedIsTest(object) { - var unstarred, isFn, $name, testRti = this, - t1 = type$.Object; - if (testRti === t1) - return A._finishIsFn(testRti, object, A._isObject); - if (!A.isStrongTopType(testRti)) - if (!(testRti === type$.legacy_Object)) - t1 = testRti === t1; - else - t1 = true; - else - t1 = true; - if (t1) - return A._finishIsFn(testRti, object, A._isTop); - t1 = testRti._kind; - unstarred = t1 === 6 ? testRti._primary : testRti; - if (unstarred === type$.int) - isFn = A._isInt; - else if (unstarred === type$.double || unstarred === type$.num) - isFn = A._isNum; - else if (unstarred === type$.String) - isFn = A._isString; - else - isFn = unstarred === type$.bool ? A._isBool : null; - if (isFn != null) - return A._finishIsFn(testRti, object, isFn); - if (unstarred._kind === 9) { - $name = unstarred._primary; - if (unstarred._rest.every(A.isTopType)) { - testRti._specializedTestResource = "$is" + $name; - if ($name === "List") - return A._finishIsFn(testRti, object, A._isListTestViaProperty); - return A._finishIsFn(testRti, object, A._isTestViaProperty); - } - } else if (t1 === 7) - return A._finishIsFn(testRti, object, A._generalNullableIsTestImplementation); - return A._finishIsFn(testRti, object, A._generalIsTestImplementation); - }, - _finishIsFn(testRti, object, isFn) { - testRti._is = isFn; - return testRti._is(object); - }, - _installSpecializedAsCheck(object) { - var t1, asFn, testRti = this; - if (!A.isStrongTopType(testRti)) - if (!(testRti === type$.legacy_Object)) - t1 = testRti === type$.Object; - else - t1 = true; - else - t1 = true; - if (t1) - asFn = A._asTop; - else if (testRti === type$.Object) - asFn = A._asObject; - else - asFn = A._generalNullableAsCheckImplementation; - testRti._as = asFn; - return testRti._as(object); - }, - _nullIs(testRti) { - var t1, - kind = testRti._kind; - if (!A.isStrongTopType(testRti)) - if (!(testRti === type$.legacy_Object)) - if (!(testRti === type$.legacy_Never)) - if (kind !== 7) - if (!(kind === 6 && A._nullIs(testRti._primary))) - t1 = kind === 8 && A._nullIs(testRti._primary) || testRti === type$.Null || testRti === type$.JSNull; - else - t1 = true; - else - t1 = true; - else - t1 = true; - else - t1 = true; - else - t1 = true; - return t1; - }, - _generalIsTestImplementation(object) { - var testRti = this; - if (object == null) - return A._nullIs(testRti); - return A._isSubtype(init.typeUniverse, A.instanceOrFunctionType(object, testRti), null, testRti, null); - }, - _generalNullableIsTestImplementation(object) { - if (object == null) - return true; - return this._primary._is(object); - }, - _isTestViaProperty(object) { - var tag, testRti = this; - if (object == null) - return A._nullIs(testRti); - tag = testRti._specializedTestResource; - if (object instanceof A.Object) - return !!object[tag]; - return !!J.getInterceptor$(object)[tag]; - }, - _isListTestViaProperty(object) { - var tag, testRti = this; - if (object == null) - return A._nullIs(testRti); - if (typeof object != "object") - return false; - if (Array.isArray(object)) - return true; - tag = testRti._specializedTestResource; - if (object instanceof A.Object) - return !!object[tag]; - return !!J.getInterceptor$(object)[tag]; - }, - _generalAsCheckImplementation(object) { - var testRti = this; - if (object == null) - return object; - else if (testRti._is(object)) - return object; - A._failedAsCheck(object, testRti); - }, - _generalNullableAsCheckImplementation(object) { - var testRti = this; - if (object == null) - return object; - else if (testRti._is(object)) - return object; - A._failedAsCheck(object, testRti); - }, - _failedAsCheck(object, testRti) { - throw A.wrapException(A._TypeError$fromMessage(A._Error_compose(object, A.instanceOrFunctionType(object, testRti), A._rtiToString(testRti, null)))); - }, - _Error_compose(object, objectRti, checkedTypeDescription) { - var objectDescription = A.Error_safeToString(object); - return objectDescription + ": type '" + A.S(A._rtiToString(objectRti == null ? A.instanceType(object) : objectRti, null)) + "' is not a subtype of type '" + A.S(checkedTypeDescription) + "'"; - }, - _TypeError$fromMessage(message) { - return new A._TypeError("TypeError: " + message); - }, - _TypeError__TypeError$forType(object, type) { - return new A._TypeError("TypeError: " + A._Error_compose(object, null, type)); - }, - _isObject(object) { - return object != null; - }, - _asObject(object) { - return object; - }, - _isTop(object) { - return true; - }, - _asTop(object) { - return object; - }, - _isBool(object) { - return true === object || false === object; - }, - _asBool(object) { - if (true === object) - return true; - if (false === object) - return false; - throw A.wrapException(A._TypeError__TypeError$forType(object, "bool")); - }, - _asBoolS(object) { - if (true === object) - return true; - if (false === object) - return false; - if (object == null) - return object; - throw A.wrapException(A._TypeError__TypeError$forType(object, "bool")); - }, - _asBoolQ(object) { - if (true === object) - return true; - if (false === object) - return false; - if (object == null) - return object; - throw A.wrapException(A._TypeError__TypeError$forType(object, "bool?")); - }, - _asDouble(object) { - if (typeof object == "number") - return object; - throw A.wrapException(A._TypeError__TypeError$forType(object, "double")); - }, - _asDoubleS(object) { - if (typeof object == "number") - return object; - if (object == null) - return object; - throw A.wrapException(A._TypeError__TypeError$forType(object, "double")); - }, - _asDoubleQ(object) { - if (typeof object == "number") - return object; - if (object == null) - return object; - throw A.wrapException(A._TypeError__TypeError$forType(object, "double?")); - }, - _isInt(object) { - return typeof object == "number" && Math.floor(object) === object; - }, - _asInt(object) { - if (typeof object == "number" && Math.floor(object) === object) - return object; - throw A.wrapException(A._TypeError__TypeError$forType(object, "int")); - }, - _asIntS(object) { - if (typeof object == "number" && Math.floor(object) === object) - return object; - if (object == null) - return object; - throw A.wrapException(A._TypeError__TypeError$forType(object, "int")); - }, - _asIntQ(object) { - if (typeof object == "number" && Math.floor(object) === object) - return object; - if (object == null) - return object; - throw A.wrapException(A._TypeError__TypeError$forType(object, "int?")); - }, - _isNum(object) { - return typeof object == "number"; - }, - _asNum(object) { - if (typeof object == "number") - return object; - throw A.wrapException(A._TypeError__TypeError$forType(object, "num")); - }, - _asNumS(object) { - if (typeof object == "number") - return object; - if (object == null) - return object; - throw A.wrapException(A._TypeError__TypeError$forType(object, "num")); - }, - _asNumQ(object) { - if (typeof object == "number") - return object; - if (object == null) - return object; - throw A.wrapException(A._TypeError__TypeError$forType(object, "num?")); - }, - _isString(object) { - return typeof object == "string"; - }, - _asString(object) { - if (typeof object == "string") - return object; - throw A.wrapException(A._TypeError__TypeError$forType(object, "String")); - }, - _asStringS(object) { - if (typeof object == "string") - return object; - if (object == null) - return object; - throw A.wrapException(A._TypeError__TypeError$forType(object, "String")); - }, - _asStringQ(object) { - if (typeof object == "string") - return object; - if (object == null) - return object; - throw A.wrapException(A._TypeError__TypeError$forType(object, "String?")); - }, - _rtiArrayToString(array, genericContext) { - var s, sep, i; - for (s = "", sep = "", i = 0; i < array.length; ++i, sep = ", ") - s += B.JSString_methods.$add(sep, A._rtiToString(array[i], genericContext)); - return s; - }, - _recordRtiToString(recordType, genericContext) { - var fieldCount, names, namesIndex, s, comma, i, - partialShape = recordType._primary, - fields = recordType._rest; - if ("" === partialShape) - return "(" + A._rtiArrayToString(fields, genericContext) + ")"; - fieldCount = fields.length; - names = partialShape.split(","); - namesIndex = names.length - fieldCount; - for (s = "(", comma = "", i = 0; i < fieldCount; ++i, comma = ", ") { - s += comma; - if (namesIndex === 0) - s += "{"; - s = B.JSString_methods.$add(s, A._rtiToString(fields[i], genericContext)); - if (namesIndex >= 0) - s += " " + names[namesIndex]; - ++namesIndex; - } - return s + "})"; - }, - _functionRtiToString(functionType, genericContext, bounds) { - var boundsLength, outerContextLength, offset, i, t1, t2, t3, typeParametersText, typeSep, t4, t5, boundRti, kind, parameters, requiredPositional, requiredPositionalLength, optionalPositional, optionalPositionalLength, named, namedLength, returnTypeText, argumentsText, sep, _s2_ = ", "; - if (bounds != null) { - boundsLength = bounds.length; - if (genericContext == null) { - genericContext = A._setArrayType([], type$.JSArray_String); - outerContextLength = null; - } else - outerContextLength = genericContext.length; - offset = genericContext.length; - for (i = boundsLength; i > 0; --i) - B.JSArray_methods.add$1(genericContext, "T" + (offset + i)); - for (t1 = type$.nullable_Object, t2 = type$.legacy_Object, t3 = type$.Object, typeParametersText = "<", typeSep = "", i = 0; i < boundsLength; ++i, typeSep = _s2_) { - t4 = genericContext.length; - t5 = t4 - 1 - i; - if (!(t5 >= 0)) - return A.ioore(genericContext, t5); - typeParametersText = B.JSString_methods.$add(typeParametersText + typeSep, genericContext[t5]); - boundRti = bounds[i]; - kind = boundRti._kind; - if (!(kind === 2 || kind === 3 || kind === 4 || kind === 5 || boundRti === t1)) - if (!(boundRti === t2)) - t4 = boundRti === t3; - else - t4 = true; - else - t4 = true; - if (!t4) - typeParametersText += B.JSString_methods.$add(" extends ", A._rtiToString(boundRti, genericContext)); - } - typeParametersText += ">"; - } else { - typeParametersText = ""; - outerContextLength = null; - } - t1 = functionType._primary; - parameters = functionType._rest; - requiredPositional = parameters._requiredPositional; - requiredPositionalLength = requiredPositional.length; - optionalPositional = parameters._optionalPositional; - optionalPositionalLength = optionalPositional.length; - named = parameters._named; - namedLength = named.length; - returnTypeText = A._rtiToString(t1, genericContext); - for (argumentsText = "", sep = "", i = 0; i < requiredPositionalLength; ++i, sep = _s2_) - argumentsText += B.JSString_methods.$add(sep, A._rtiToString(requiredPositional[i], genericContext)); - if (optionalPositionalLength > 0) { - argumentsText += sep + "["; - for (sep = "", i = 0; i < optionalPositionalLength; ++i, sep = _s2_) - argumentsText += B.JSString_methods.$add(sep, A._rtiToString(optionalPositional[i], genericContext)); - argumentsText += "]"; - } - if (namedLength > 0) { - argumentsText += sep + "{"; - for (sep = "", i = 0; i < namedLength; i += 3, sep = _s2_) { - argumentsText += sep; - if (named[i + 1]) - argumentsText += "required "; - argumentsText += J.$add$ns(A._rtiToString(named[i + 2], genericContext), " ") + named[i]; - } - argumentsText += "}"; - } - if (outerContextLength != null) { - genericContext.toString; - genericContext.length = outerContextLength; - } - return typeParametersText + "(" + argumentsText + ") => " + A.S(returnTypeText); - }, - _rtiToString(rti, genericContext) { - var s, questionArgument, argumentKind, $name, $arguments, t1, t2, - kind = rti._kind; - if (kind === 5) - return "erased"; - if (kind === 2) - return "dynamic"; - if (kind === 3) - return "void"; - if (kind === 1) - return "Never"; - if (kind === 4) - return "any"; - if (kind === 6) { - s = A._rtiToString(rti._primary, genericContext); - return s; - } - if (kind === 7) { - questionArgument = rti._primary; - s = A._rtiToString(questionArgument, genericContext); - argumentKind = questionArgument._kind; - return J.$add$ns(argumentKind === 12 || argumentKind === 13 ? B.JSString_methods.$add("(", s) + ")" : s, "?"); - } - if (kind === 8) - return "FutureOr<" + A.S(A._rtiToString(rti._primary, genericContext)) + ">"; - if (kind === 9) { - $name = A._unminifyOrTag(rti._primary); - $arguments = rti._rest; - return $arguments.length > 0 ? $name + ("<" + A._rtiArrayToString($arguments, genericContext) + ">") : $name; - } - if (kind === 11) - return A._recordRtiToString(rti, genericContext); - if (kind === 12) - return A._functionRtiToString(rti, genericContext, null); - if (kind === 13) - return A._functionRtiToString(rti._primary, genericContext, rti._rest); - if (kind === 14) { - genericContext.toString; - t1 = rti._primary; - t2 = genericContext.length; - t1 = t2 - 1 - t1; - if (!(t1 >= 0 && t1 < t2)) - return A.ioore(genericContext, t1); - return genericContext[t1]; - } - return "?"; - }, - _unminifyOrTag(rawClassName) { - var preserved = init.mangledGlobalNames[rawClassName]; - if (preserved != null) - return preserved; - return rawClassName; - }, - _Universe_findRule(universe, targetType) { - var rule = universe.tR[targetType]; - for (; typeof rule == "string";) - rule = universe.tR[rule]; - return rule; - }, - _Universe_findErasedType(universe, cls) { - var $length, erased, $arguments, i, $interface, - metadata = universe.eT, - probe = metadata[cls]; - if (probe == null) - return A._Universe_eval(universe, cls, false); - else if (typeof probe == "number") { - $length = probe; - erased = A._Universe__lookupTerminalRti(universe, 5, "#"); - $arguments = A._Utils_newArrayOrEmpty($length); - for (i = 0; i < $length; ++i) - $arguments[i] = erased; - $interface = A._Universe__lookupInterfaceRti(universe, cls, $arguments); - metadata[cls] = $interface; - return $interface; - } else - return probe; - }, - _Universe_addRules(universe, rules) { - return A._Utils_objectAssign(universe.tR, rules); - }, - _Universe_addErasedTypes(universe, types) { - return A._Utils_objectAssign(universe.eT, types); - }, - _Universe_eval(universe, recipe, normalize) { - var rti, - cache = universe.eC, - probe = cache.get(recipe); - if (probe != null) - return probe; - rti = A._Parser_parse(A._Parser_create(universe, null, recipe, normalize)); - cache.set(recipe, rti); - return rti; - }, - _Universe_evalInEnvironment(universe, environment, recipe) { - var probe, rti, - cache = environment._evalCache; - if (cache == null) - cache = environment._evalCache = new Map(); - probe = cache.get(recipe); - if (probe != null) - return probe; - rti = A._Parser_parse(A._Parser_create(universe, environment, recipe, true)); - cache.set(recipe, rti); - return rti; - }, - _Universe_bind(universe, environment, argumentsRti) { - var argumentsRecipe, probe, rti, - cache = environment._bindCache; - if (cache == null) - cache = environment._bindCache = new Map(); - argumentsRecipe = argumentsRti._canonicalRecipe; - probe = cache.get(argumentsRecipe); - if (probe != null) - return probe; - rti = A._Universe__lookupBindingRti(universe, environment, argumentsRti._kind === 10 ? argumentsRti._rest : [argumentsRti]); - cache.set(argumentsRecipe, rti); - return rti; - }, - _Universe__installTypeTests(universe, rti) { - rti._as = A._installSpecializedAsCheck; - rti._is = A._installSpecializedIsTest; - return rti; - }, - _Universe__lookupTerminalRti(universe, kind, key) { - var rti, t1, - probe = universe.eC.get(key); - if (probe != null) - return probe; - rti = new A.Rti(null, null); - rti._kind = kind; - rti._canonicalRecipe = key; - t1 = A._Universe__installTypeTests(universe, rti); - universe.eC.set(key, t1); - return t1; - }, - _Universe__lookupStarRti(universe, baseType, normalize) { - var t1, - key = baseType._canonicalRecipe + "*", - probe = universe.eC.get(key); - if (probe != null) - return probe; - t1 = A._Universe__createStarRti(universe, baseType, key, normalize); - universe.eC.set(key, t1); - return t1; - }, - _Universe__createStarRti(universe, baseType, key, normalize) { - var baseKind, t1, rti; - if (normalize) { - baseKind = baseType._kind; - if (!A.isStrongTopType(baseType)) - t1 = baseType === type$.Null || baseType === type$.JSNull || baseKind === 7 || baseKind === 6; - else - t1 = true; - if (t1) - return baseType; - } - rti = new A.Rti(null, null); - rti._kind = 6; - rti._primary = baseType; - rti._canonicalRecipe = key; - return A._Universe__installTypeTests(universe, rti); - }, - _Universe__lookupQuestionRti(universe, baseType, normalize) { - var t1, - key = baseType._canonicalRecipe + "?", - probe = universe.eC.get(key); - if (probe != null) - return probe; - t1 = A._Universe__createQuestionRti(universe, baseType, key, normalize); - universe.eC.set(key, t1); - return t1; - }, - _Universe__createQuestionRti(universe, baseType, key, normalize) { - var baseKind, t1, starArgument, rti; - if (normalize) { - baseKind = baseType._kind; - if (!A.isStrongTopType(baseType)) - if (!(baseType === type$.Null || baseType === type$.JSNull)) - if (baseKind !== 7) - t1 = baseKind === 8 && A.isNullable(baseType._primary); - else - t1 = true; - else - t1 = true; - else - t1 = true; - if (t1) - return baseType; - else if (baseKind === 1 || baseType === type$.legacy_Never) - return type$.Null; - else if (baseKind === 6) { - starArgument = baseType._primary; - if (starArgument._kind === 8 && A.isNullable(starArgument._primary)) - return starArgument; - else - return A.Rti__getQuestionFromStar(universe, baseType); - } - } - rti = new A.Rti(null, null); - rti._kind = 7; - rti._primary = baseType; - rti._canonicalRecipe = key; - return A._Universe__installTypeTests(universe, rti); - }, - _Universe__lookupFutureOrRti(universe, baseType, normalize) { - var t1, - key = baseType._canonicalRecipe + "/", - probe = universe.eC.get(key); - if (probe != null) - return probe; - t1 = A._Universe__createFutureOrRti(universe, baseType, key, normalize); - universe.eC.set(key, t1); - return t1; - }, - _Universe__createFutureOrRti(universe, baseType, key, normalize) { - var t1, t2, rti; - if (normalize) { - t1 = baseType._kind; - if (!A.isStrongTopType(baseType)) - if (!(baseType === type$.legacy_Object)) - t2 = baseType === type$.Object; - else - t2 = true; - else - t2 = true; - if (t2 || baseType === type$.Object) - return baseType; - else if (t1 === 1) - return A._Universe__lookupInterfaceRti(universe, "Future", [baseType]); - else if (baseType === type$.Null || baseType === type$.JSNull) - return type$.nullable_Future_Null; - } - rti = new A.Rti(null, null); - rti._kind = 8; - rti._primary = baseType; - rti._canonicalRecipe = key; - return A._Universe__installTypeTests(universe, rti); - }, - _Universe__lookupGenericFunctionParameterRti(universe, index) { - var rti, t1, - key = "" + index + "^", - probe = universe.eC.get(key); - if (probe != null) - return probe; - rti = new A.Rti(null, null); - rti._kind = 14; - rti._primary = index; - rti._canonicalRecipe = key; - t1 = A._Universe__installTypeTests(universe, rti); - universe.eC.set(key, t1); - return t1; - }, - _Universe__canonicalRecipeJoin($arguments) { - var s, sep, i, - $length = $arguments.length; - for (s = "", sep = "", i = 0; i < $length; ++i, sep = ",") - s += sep + $arguments[i]._canonicalRecipe; - return s; - }, - _Universe__canonicalRecipeJoinNamed($arguments) { - var s, sep, i, t1, nameSep, - $length = $arguments.length; - for (s = "", sep = "", i = 0; i < $length; i += 3, sep = ",") { - t1 = $arguments[i]; - nameSep = $arguments[i + 1] ? "!" : ":"; - s += sep + t1 + nameSep + $arguments[i + 2]._canonicalRecipe; - } - return s; - }, - _Universe__lookupInterfaceRti(universe, $name, $arguments) { - var probe, rti, t1, - s = $name; - if ($arguments.length > 0) - s += "<" + A._Universe__canonicalRecipeJoin($arguments) + ">"; - probe = universe.eC.get(s); - if (probe != null) - return probe; - rti = new A.Rti(null, null); - rti._kind = 9; - rti._primary = $name; - rti._rest = $arguments; - if ($arguments.length > 0) - rti._precomputed1 = $arguments[0]; - rti._canonicalRecipe = s; - t1 = A._Universe__installTypeTests(universe, rti); - universe.eC.set(s, t1); - return t1; - }, - _Universe__lookupBindingRti(universe, base, $arguments) { - var newBase, newArguments, key, probe, rti, t1; - if (base._kind === 10) { - newBase = base._primary; - newArguments = base._rest.concat($arguments); - } else { - newArguments = $arguments; - newBase = base; - } - key = newBase._canonicalRecipe + (";<" + A._Universe__canonicalRecipeJoin(newArguments) + ">"); - probe = universe.eC.get(key); - if (probe != null) - return probe; - rti = new A.Rti(null, null); - rti._kind = 10; - rti._primary = newBase; - rti._rest = newArguments; - rti._canonicalRecipe = key; - t1 = A._Universe__installTypeTests(universe, rti); - universe.eC.set(key, t1); - return t1; - }, - _Universe__lookupRecordRti(universe, partialShapeTag, fields) { - var rti, t1, - key = "+" + (partialShapeTag + "(" + A._Universe__canonicalRecipeJoin(fields) + ")"), - probe = universe.eC.get(key); - if (probe != null) - return probe; - rti = new A.Rti(null, null); - rti._kind = 11; - rti._primary = partialShapeTag; - rti._rest = fields; - rti._canonicalRecipe = key; - t1 = A._Universe__installTypeTests(universe, rti); - universe.eC.set(key, t1); - return t1; - }, - _Universe__lookupFunctionRti(universe, returnType, parameters) { - var sep, key, probe, rti, t1, - s = returnType._canonicalRecipe, - requiredPositional = parameters._requiredPositional, - requiredPositionalLength = requiredPositional.length, - optionalPositional = parameters._optionalPositional, - optionalPositionalLength = optionalPositional.length, - named = parameters._named, - namedLength = named.length, - recipe = "(" + A._Universe__canonicalRecipeJoin(requiredPositional); - if (optionalPositionalLength > 0) { - sep = requiredPositionalLength > 0 ? "," : ""; - recipe += sep + "[" + A._Universe__canonicalRecipeJoin(optionalPositional) + "]"; - } - if (namedLength > 0) { - sep = requiredPositionalLength > 0 ? "," : ""; - recipe += sep + "{" + A._Universe__canonicalRecipeJoinNamed(named) + "}"; - } - key = s + (recipe + ")"); - probe = universe.eC.get(key); - if (probe != null) - return probe; - rti = new A.Rti(null, null); - rti._kind = 12; - rti._primary = returnType; - rti._rest = parameters; - rti._canonicalRecipe = key; - t1 = A._Universe__installTypeTests(universe, rti); - universe.eC.set(key, t1); - return t1; - }, - _Universe__lookupGenericFunctionRti(universe, baseFunctionType, bounds, normalize) { - var t1, - key = baseFunctionType._canonicalRecipe + ("<" + A._Universe__canonicalRecipeJoin(bounds) + ">"), - probe = universe.eC.get(key); - if (probe != null) - return probe; - t1 = A._Universe__createGenericFunctionRti(universe, baseFunctionType, bounds, key, normalize); - universe.eC.set(key, t1); - return t1; - }, - _Universe__createGenericFunctionRti(universe, baseFunctionType, bounds, key, normalize) { - var $length, typeArguments, count, i, bound, substitutedBase, substitutedBounds, rti; - if (normalize) { - $length = bounds.length; - typeArguments = A._Utils_newArrayOrEmpty($length); - for (count = 0, i = 0; i < $length; ++i) { - bound = bounds[i]; - if (bound._kind === 1) { - typeArguments[i] = bound; - ++count; - } - } - if (count > 0) { - substitutedBase = A._substitute(universe, baseFunctionType, typeArguments, 0); - substitutedBounds = A._substituteArray(universe, bounds, typeArguments, 0); - return A._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, bounds !== substitutedBounds); - } - } - rti = new A.Rti(null, null); - rti._kind = 13; - rti._primary = baseFunctionType; - rti._rest = bounds; - rti._canonicalRecipe = key; - return A._Universe__installTypeTests(universe, rti); - }, - _Parser_create(universe, environment, recipe, normalize) { - return {u: universe, e: environment, r: recipe, s: [], p: 0, n: normalize}; - }, - _Parser_parse(parser) { - var t1, i, ch, universe, array, head, base, u, end, item, - source = parser.r, - stack = parser.s; - for (t1 = source.length, i = 0; i < t1;) { - ch = source.charCodeAt(i); - if (ch >= 48 && ch <= 57) - i = A._Parser_handleDigit(i + 1, ch, source, stack); - else if ((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36 || ch === 124) - i = A._Parser_handleIdentifier(parser, i, source, stack, false); - else if (ch === 46) - i = A._Parser_handleIdentifier(parser, i, source, stack, true); - else { - ++i; - switch (ch) { - case 44: - break; - case 58: - stack.push(false); - break; - case 33: - stack.push(true); - break; - case 59: - stack.push(A._Parser_toType(parser.u, parser.e, stack.pop())); - break; - case 94: - stack.push(A._Universe__lookupGenericFunctionParameterRti(parser.u, stack.pop())); - break; - case 35: - stack.push(A._Universe__lookupTerminalRti(parser.u, 5, "#")); - break; - case 64: - stack.push(A._Universe__lookupTerminalRti(parser.u, 2, "@")); - break; - case 126: - stack.push(A._Universe__lookupTerminalRti(parser.u, 3, "~")); - break; - case 60: - stack.push(parser.p); - parser.p = stack.length; - break; - case 62: - universe = parser.u; - array = stack.splice(parser.p); - A._Parser_toTypes(parser.u, parser.e, array); - parser.p = stack.pop(); - head = stack.pop(); - if (typeof head == "string") - stack.push(A._Universe__lookupInterfaceRti(universe, head, array)); - else { - base = A._Parser_toType(universe, parser.e, head); - switch (base._kind) { - case 12: - stack.push(A._Universe__lookupGenericFunctionRti(universe, base, array, parser.n)); - break; - default: - stack.push(A._Universe__lookupBindingRti(universe, base, array)); - break; - } - } - break; - case 38: - A._Parser_handleExtendedOperations(parser, stack); - break; - case 42: - u = parser.u; - stack.push(A._Universe__lookupStarRti(u, A._Parser_toType(u, parser.e, stack.pop()), parser.n)); - break; - case 63: - u = parser.u; - stack.push(A._Universe__lookupQuestionRti(u, A._Parser_toType(u, parser.e, stack.pop()), parser.n)); - break; - case 47: - u = parser.u; - stack.push(A._Universe__lookupFutureOrRti(u, A._Parser_toType(u, parser.e, stack.pop()), parser.n)); - break; - case 40: - stack.push(-3); - stack.push(parser.p); - parser.p = stack.length; - break; - case 41: - A._Parser_handleArguments(parser, stack); - break; - case 91: - stack.push(parser.p); - parser.p = stack.length; - break; - case 93: - array = stack.splice(parser.p); - A._Parser_toTypes(parser.u, parser.e, array); - parser.p = stack.pop(); - stack.push(array); - stack.push(-1); - break; - case 123: - stack.push(parser.p); - parser.p = stack.length; - break; - case 125: - array = stack.splice(parser.p); - A._Parser_toTypesNamed(parser.u, parser.e, array); - parser.p = stack.pop(); - stack.push(array); - stack.push(-2); - break; - case 43: - end = source.indexOf("(", i); - stack.push(source.substring(i, end)); - stack.push(-4); - stack.push(parser.p); - parser.p = stack.length; - i = end + 1; - break; - default: - throw "Bad character " + ch; - } - } - } - item = stack.pop(); - return A._Parser_toType(parser.u, parser.e, item); - }, - _Parser_handleDigit(i, digit, source, stack) { - var t1, ch, - value = digit - 48; - for (t1 = source.length; i < t1; ++i) { - ch = source.charCodeAt(i); - if (!(ch >= 48 && ch <= 57)) - break; - value = value * 10 + (ch - 48); - } - stack.push(value); - return i; - }, - _Parser_handleIdentifier(parser, start, source, stack, hasPeriod) { - var t1, ch, t2, string, environment, recipe, - i = start + 1; - for (t1 = source.length; i < t1; ++i) { - ch = source.charCodeAt(i); - if (ch === 46) { - if (hasPeriod) - break; - hasPeriod = true; - } else { - if (!((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36 || ch === 124)) - t2 = ch >= 48 && ch <= 57; - else - t2 = true; - if (!t2) - break; - } - } - string = source.substring(start, i); - if (hasPeriod) { - t1 = parser.u; - environment = parser.e; - if (environment._kind === 10) - environment = environment._primary; - recipe = A._Universe_findRule(t1, environment._primary)[string]; - if (recipe == null) - A.throwExpression('No "' + string + '" in "' + A.Rti__getCanonicalRecipe(environment) + '"'); - stack.push(A._Universe_evalInEnvironment(t1, environment, recipe)); - } else - stack.push(string); - return i; - }, - _Parser_handleArguments(parser, stack) { - var optionalPositional, named, requiredPositional, returnType, parameters, _null = null, - universe = parser.u, - head = stack.pop(); - if (typeof head == "number") - switch (head) { - case -1: - optionalPositional = stack.pop(); - named = _null; - break; - case -2: - named = stack.pop(); - optionalPositional = _null; - break; - default: - stack.push(head); - named = _null; - optionalPositional = named; - break; - } - else { - stack.push(head); - named = _null; - optionalPositional = named; - } - requiredPositional = A._Parser_collectArray(parser, stack); - head = stack.pop(); - switch (head) { - case -3: - head = stack.pop(); - if (optionalPositional == null) - optionalPositional = universe.sEA; - if (named == null) - named = universe.sEA; - returnType = A._Parser_toType(universe, parser.e, head); - parameters = new A._FunctionParameters(); - parameters._requiredPositional = requiredPositional; - parameters._optionalPositional = optionalPositional; - parameters._named = named; - stack.push(A._Universe__lookupFunctionRti(universe, returnType, parameters)); - return; - case -4: - stack.push(A._Universe__lookupRecordRti(universe, stack.pop(), requiredPositional)); - return; - default: - throw A.wrapException(A.AssertionError$("Unexpected state under `()`: " + A.S(head))); - } - }, - _Parser_handleExtendedOperations(parser, stack) { - var $top = stack.pop(); - if (0 === $top) { - stack.push(A._Universe__lookupTerminalRti(parser.u, 1, "0&")); - return; - } - if (1 === $top) { - stack.push(A._Universe__lookupTerminalRti(parser.u, 4, "1&")); - return; - } - throw A.wrapException(A.AssertionError$("Unexpected extended operation " + A.S($top))); - }, - _Parser_collectArray(parser, stack) { - var array = stack.splice(parser.p); - A._Parser_toTypes(parser.u, parser.e, array); - parser.p = stack.pop(); - return array; - }, - _Parser_toType(universe, environment, item) { - if (typeof item == "string") - return A._Universe__lookupInterfaceRti(universe, item, universe.sEA); - else if (typeof item == "number") { - environment.toString; - return A._Parser_indexToType(universe, environment, item); - } else - return item; - }, - _Parser_toTypes(universe, environment, items) { - var i, - $length = items.length; - for (i = 0; i < $length; ++i) - items[i] = A._Parser_toType(universe, environment, items[i]); - }, - _Parser_toTypesNamed(universe, environment, items) { - var i, - $length = items.length; - for (i = 2; i < $length; i += 3) - items[i] = A._Parser_toType(universe, environment, items[i]); - }, - _Parser_indexToType(universe, environment, index) { - var typeArguments, len, - kind = environment._kind; - if (kind === 10) { - if (index === 0) - return environment._primary; - typeArguments = environment._rest; - len = typeArguments.length; - if (index <= len) - return typeArguments[index - 1]; - index -= len; - environment = environment._primary; - kind = environment._kind; - } else if (index === 0) - return environment; - if (kind !== 9) - throw A.wrapException(A.AssertionError$("Indexed base must be an interface type")); - typeArguments = environment._rest; - if (index <= typeArguments.length) - return typeArguments[index - 1]; - throw A.wrapException(A.AssertionError$("Bad index " + index + " for " + environment.toString$0(0))); - }, - _isSubtype(universe, s, sEnv, t, tEnv) { - var t1, sKind, leftTypeVariable, tKind, sBounds, tBounds, sLength, i, sBound, tBound; - if (s === t) - return true; - if (!A.isStrongTopType(t)) - if (!(t === type$.legacy_Object)) - t1 = t === type$.Object; - else - t1 = true; - else - t1 = true; - if (t1) - return true; - sKind = s._kind; - if (sKind === 4) - return true; - if (A.isStrongTopType(s)) - return false; - if (s._kind !== 1) - t1 = s === type$.Null || s === type$.JSNull; - else - t1 = true; - if (t1) - return true; - leftTypeVariable = sKind === 14; - if (leftTypeVariable) - if (A._isSubtype(universe, sEnv[s._primary], sEnv, t, tEnv)) - return true; - tKind = t._kind; - if (sKind === 6) - return A._isSubtype(universe, s._primary, sEnv, t, tEnv); - if (tKind === 6) { - t1 = t._primary; - return A._isSubtype(universe, s, sEnv, t1, tEnv); - } - if (sKind === 8) { - if (!A._isSubtype(universe, s._primary, sEnv, t, tEnv)) - return false; - return A._isSubtype(universe, A.Rti__getFutureFromFutureOr(universe, s), sEnv, t, tEnv); - } - if (sKind === 7) { - t1 = A._isSubtype(universe, s._primary, sEnv, t, tEnv); - return t1; - } - if (tKind === 8) { - if (A._isSubtype(universe, s, sEnv, t._primary, tEnv)) - return true; - return A._isSubtype(universe, s, sEnv, A.Rti__getFutureFromFutureOr(universe, t), tEnv); - } - if (tKind === 7) { - t1 = A._isSubtype(universe, s, sEnv, t._primary, tEnv); - return t1; - } - if (leftTypeVariable) - return false; - t1 = sKind !== 12; - if ((!t1 || sKind === 13) && t === type$.Function) - return true; - if (tKind === 13) { - if (s === type$.JavaScriptFunction) - return true; - if (sKind !== 13) - return false; - sBounds = s._rest; - tBounds = t._rest; - sLength = sBounds.length; - if (sLength !== tBounds.length) - return false; - sEnv = sEnv == null ? sBounds : sBounds.concat(sEnv); - tEnv = tEnv == null ? tBounds : tBounds.concat(tEnv); - for (i = 0; i < sLength; ++i) { - sBound = sBounds[i]; - tBound = tBounds[i]; - if (!A._isSubtype(universe, sBound, sEnv, tBound, tEnv) || !A._isSubtype(universe, tBound, tEnv, sBound, sEnv)) - return false; - } - return A._isFunctionSubtype(universe, s._primary, sEnv, t._primary, tEnv); - } - if (tKind === 12) { - if (s === type$.JavaScriptFunction) - return true; - if (t1) - return false; - return A._isFunctionSubtype(universe, s, sEnv, t, tEnv); - } - if (sKind === 9) { - if (tKind !== 9) - return false; - return A._isInterfaceSubtype(universe, s, sEnv, t, tEnv); - } - t1 = sKind === 11; - if (t1 && t === type$.Record) - return true; - if (t1 && tKind === 11) - return A._isRecordSubtype(universe, s, sEnv, t, tEnv); - return false; - }, - _isFunctionSubtype(universe, s, sEnv, t, tEnv) { - var sParameters, tParameters, sRequiredPositional, tRequiredPositional, sRequiredPositionalLength, tRequiredPositionalLength, requiredPositionalDelta, sOptionalPositional, tOptionalPositional, sOptionalPositionalLength, tOptionalPositionalLength, i, t1, sNamed, tNamed, sNamedLength, tNamedLength, sIndex, tIndex, tName, sName; - if (!A._isSubtype(universe, s._primary, sEnv, t._primary, tEnv)) - return false; - sParameters = s._rest; - tParameters = t._rest; - sRequiredPositional = sParameters._requiredPositional; - tRequiredPositional = tParameters._requiredPositional; - sRequiredPositionalLength = sRequiredPositional.length; - tRequiredPositionalLength = tRequiredPositional.length; - if (sRequiredPositionalLength > tRequiredPositionalLength) - return false; - requiredPositionalDelta = tRequiredPositionalLength - sRequiredPositionalLength; - sOptionalPositional = sParameters._optionalPositional; - tOptionalPositional = tParameters._optionalPositional; - sOptionalPositionalLength = sOptionalPositional.length; - tOptionalPositionalLength = tOptionalPositional.length; - if (sRequiredPositionalLength + sOptionalPositionalLength < tRequiredPositionalLength + tOptionalPositionalLength) - return false; - for (i = 0; i < sRequiredPositionalLength; ++i) { - t1 = sRequiredPositional[i]; - if (!A._isSubtype(universe, tRequiredPositional[i], tEnv, t1, sEnv)) - return false; - } - for (i = 0; i < requiredPositionalDelta; ++i) { - t1 = sOptionalPositional[i]; - if (!A._isSubtype(universe, tRequiredPositional[sRequiredPositionalLength + i], tEnv, t1, sEnv)) - return false; - } - for (i = 0; i < tOptionalPositionalLength; ++i) { - t1 = sOptionalPositional[requiredPositionalDelta + i]; - if (!A._isSubtype(universe, tOptionalPositional[i], tEnv, t1, sEnv)) - return false; - } - sNamed = sParameters._named; - tNamed = tParameters._named; - sNamedLength = sNamed.length; - tNamedLength = tNamed.length; - for (sIndex = 0, tIndex = 0; tIndex < tNamedLength; tIndex += 3) { - tName = tNamed[tIndex]; - for (; true;) { - if (sIndex >= sNamedLength) - return false; - sName = sNamed[sIndex]; - sIndex += 3; - if (tName < sName) - return false; - if (sName < tName) - continue; - t1 = sNamed[sIndex - 1]; - if (!A._isSubtype(universe, tNamed[tIndex + 2], tEnv, t1, sEnv)) - return false; - break; - } - } - return true; - }, - _isInterfaceSubtype(universe, s, sEnv, t, tEnv) { - var rule, recipes, $length, supertypeArgs, i, t1, t2, - sName = s._primary, - tName = t._primary; - for (; sName !== tName;) { - rule = universe.tR[sName]; - if (rule == null) - return false; - if (typeof rule == "string") { - sName = rule; - continue; - } - recipes = rule[tName]; - if (recipes == null) - return false; - $length = recipes.length; - supertypeArgs = $length > 0 ? new Array($length) : init.typeUniverse.sEA; - for (i = 0; i < $length; ++i) - supertypeArgs[i] = A._Universe_evalInEnvironment(universe, s, recipes[i]); - return A._areArgumentsSubtypes(universe, supertypeArgs, null, sEnv, t._rest, tEnv); - } - t1 = s._rest; - t2 = t._rest; - return A._areArgumentsSubtypes(universe, t1, null, sEnv, t2, tEnv); - }, - _areArgumentsSubtypes(universe, sArgs, sVariances, sEnv, tArgs, tEnv) { - var i, t1, t2, - $length = sArgs.length; - for (i = 0; i < $length; ++i) { - t1 = sArgs[i]; - t2 = tArgs[i]; - if (!A._isSubtype(universe, t1, sEnv, t2, tEnv)) - return false; - } - return true; - }, - _isRecordSubtype(universe, s, sEnv, t, tEnv) { - var i, - sFields = s._rest, - tFields = t._rest, - sCount = sFields.length; - if (sCount !== tFields.length) - return false; - if (s._primary !== t._primary) - return false; - for (i = 0; i < sCount; ++i) - if (!A._isSubtype(universe, sFields[i], sEnv, tFields[i], tEnv)) - return false; - return true; - }, - isNullable(t) { - var t1, - kind = t._kind; - if (!(t === type$.Null || t === type$.JSNull)) - if (!A.isStrongTopType(t)) - if (kind !== 7) - if (!(kind === 6 && A.isNullable(t._primary))) - t1 = kind === 8 && A.isNullable(t._primary); - else - t1 = true; - else - t1 = true; - else - t1 = true; - else - t1 = true; - return t1; - }, - isTopType(t) { - var t1; - if (!A.isStrongTopType(t)) - if (!(t === type$.legacy_Object)) - t1 = t === type$.Object; - else - t1 = true; - else - t1 = true; - return t1; - }, - isStrongTopType(t) { - var kind = t._kind; - return kind === 2 || kind === 3 || kind === 4 || kind === 5 || t === type$.nullable_Object; - }, - _Utils_objectAssign(o, other) { - var i, key, - keys = Object.keys(other), - $length = keys.length; - for (i = 0; i < $length; ++i) { - key = keys[i]; - o[key] = other[key]; - } - }, - _Utils_newArrayOrEmpty($length) { - return $length > 0 ? new Array($length) : init.typeUniverse.sEA; - }, - Rti: function Rti(t0, t1) { - var _ = this; - _._as = t0; - _._is = t1; - _._cachedRuntimeType = _._specializedTestResource = _._precomputed1 = null; - _._kind = 0; - _._canonicalRecipe = _._bindCache = _._evalCache = _._rest = _._primary = null; - }, - _FunctionParameters: function _FunctionParameters() { - this._named = this._optionalPositional = this._requiredPositional = null; - }, - _Type: function _Type(t0) { - this._rti = t0; - }, - _Error: function _Error() { - }, - _TypeError: function _TypeError(t0) { - this.__rti$_message = t0; - }, - _AsyncRun__initializeScheduleImmediate() { - var div, span, t1 = {}; - if (self.scheduleImmediate != null) - return A.async__AsyncRun__scheduleImmediateJsOverride$closure(); - if (self.MutationObserver != null && self.document != null) { - div = self.document.createElement("div"); - span = self.document.createElement("span"); - t1.storedCallback = null; - new self.MutationObserver(A.convertDartClosureToJS(new A._AsyncRun__initializeScheduleImmediate_internalCallback(t1), 1)).observe(div, {childList: true}); - return new A._AsyncRun__initializeScheduleImmediate_closure(t1, div, span); - } else if (self.setImmediate != null) - return A.async__AsyncRun__scheduleImmediateWithSetImmediate$closure(); - return A.async__AsyncRun__scheduleImmediateWithTimer$closure(); - }, - _AsyncRun__scheduleImmediateJsOverride(callback) { - self.scheduleImmediate(A.convertDartClosureToJS(new A._AsyncRun__scheduleImmediateJsOverride_internalCallback(type$.void_Function._as(callback)), 0)); - }, - _AsyncRun__scheduleImmediateWithSetImmediate(callback) { - self.setImmediate(A.convertDartClosureToJS(new A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(type$.void_Function._as(callback)), 0)); - }, - _AsyncRun__scheduleImmediateWithTimer(callback) { - A.Timer__createTimer(B.Duration_0, type$.void_Function._as(callback)); - }, - Timer__createTimer(duration, callback) { - var t1 = duration._duration; - return A._TimerImpl$(t1 / 1000 | 0, callback); - }, - _TimerImpl$(milliseconds, callback) { - var t1 = new A._TimerImpl(true); - t1._TimerImpl$2(milliseconds, callback); - return t1; - }, - _TimerImpl$periodic(milliseconds, callback) { - var t1 = new A._TimerImpl(false); - t1._TimerImpl$periodic$2(milliseconds, callback); - return t1; - }, - AsyncError$(error, stackTrace) { - var t1 = A.checkNotNullable(error, "error", type$.Object); - return new A.AsyncError(t1, stackTrace == null ? A.AsyncError_defaultStackTrace(error) : stackTrace); - }, - AsyncError_defaultStackTrace(error) { - var stackTrace; - if (type$.Error._is(error)) { - stackTrace = error.get$stackTrace(); - if (stackTrace != null) - return stackTrace; - } - return B.C__StringStackTrace; - }, - _Future__chainCoreFuture(source, target) { - var t1, t2, listeners; - for (t1 = type$._Future_dynamic; t2 = source._state, (t2 & 4) !== 0;) - source = t1._as(source._resultOrListeners); - if ((t2 & 24) !== 0) { - listeners = target._removeListeners$0(); - target._cloneResult$1(source); - A._Future__propagateToListeners(target, listeners); - } else { - listeners = type$.nullable__FutureListener_dynamic_dynamic._as(target._resultOrListeners); - target._state = target._state & 1 | 4; - target._resultOrListeners = source; - source._prependListeners$1(listeners); - } - }, - _Future__propagateToListeners(source, listeners) { - var t2, t3, t4, _box_0, t5, t6, hasError, asyncError, nextListener, nextListener0, sourceResult, t7, zone, oldZone, result, current, _box_1 = {}, - t1 = _box_1.source = source; - for (t2 = type$.AsyncError, t3 = type$.nullable__FutureListener_dynamic_dynamic, t4 = type$.Future_dynamic; true;) { - _box_0 = {}; - t5 = t1._state; - t6 = (t5 & 16) === 0; - hasError = !t6; - if (listeners == null) { - if (hasError && (t5 & 1) === 0) { - asyncError = t2._as(t1._resultOrListeners); - t1._zone.handleUncaughtError$2(asyncError.error, asyncError.stackTrace); - } - return; - } - _box_0.listener = listeners; - nextListener = listeners._nextListener; - for (t1 = listeners; nextListener != null; t1 = nextListener, nextListener = nextListener0) { - t1._nextListener = null; - A._Future__propagateToListeners(_box_1.source, t1); - _box_0.listener = nextListener; - nextListener0 = nextListener._nextListener; - } - t5 = _box_1.source; - sourceResult = t5._resultOrListeners; - _box_0.listenerHasError = hasError; - _box_0.listenerValueOrError = sourceResult; - if (t6) { - t7 = t1.state; - t7 = (t7 & 1) !== 0 || (t7 & 15) === 8; - } else - t7 = true; - if (t7) { - zone = t1.result._zone; - if (hasError) { - t1 = t5._zone; - t1.toString; - t1 = !(t1 === zone || t1.get$errorZone() === zone.get$errorZone()); - } else - t1 = false; - if (t1) { - t1 = _box_1.source; - asyncError = t2._as(t1._resultOrListeners); - t1._zone.handleUncaughtError$2(asyncError.error, asyncError.stackTrace); - return; - } - oldZone = $.Zone__current; - if (oldZone != zone) - $.Zone__current = zone; - else - oldZone = null; - t1 = _box_0.listener.state; - if ((t1 & 15) === 8) - new A._Future__propagateToListeners_handleWhenCompleteCallback(_box_0, _box_1, hasError).call$0(); - else if (t6) { - if ((t1 & 1) !== 0) - new A._Future__propagateToListeners_handleValueCallback(_box_0, sourceResult).call$0(); - } else if ((t1 & 2) !== 0) - new A._Future__propagateToListeners_handleError(_box_1, _box_0).call$0(); - if (oldZone != null) - $.Zone__current = oldZone; - t1 = _box_0.listenerValueOrError; - if (t4._is(t1)) { - t5 = _box_0.listener.$ti; - t5 = t5._eval$1("Future<2>")._is(t1) || !t5._rest[1]._is(t1); - } else - t5 = false; - if (t5) { - t4._as(t1); - result = _box_0.listener.result; - if (t1 instanceof A._Future) - if ((t1._state & 24) !== 0) { - current = t3._as(result._resultOrListeners); - result._resultOrListeners = null; - listeners = result._reverseListeners$1(current); - result._state = t1._state & 30 | result._state & 1; - result._resultOrListeners = t1._resultOrListeners; - _box_1.source = t1; - continue; - } else - A._Future__chainCoreFuture(t1, result); - else - result._chainForeignFuture$1(t1); - return; - } - } - result = _box_0.listener.result; - current = t3._as(result._resultOrListeners); - result._resultOrListeners = null; - listeners = result._reverseListeners$1(current); - t1 = _box_0.listenerHasError; - t5 = _box_0.listenerValueOrError; - if (!t1) { - result.$ti._precomputed1._as(t5); - result._state = 8; - result._resultOrListeners = t5; - } else { - t2._as(t5); - result._state = result._state & 1 | 16; - result._resultOrListeners = t5; - } - _box_1.source = result; - t1 = result; - } - }, - _registerErrorHandler(errorHandler, zone) { - if (type$.dynamic_Function_Object_StackTrace._is(errorHandler)) - return zone.registerBinaryCallback$3$1(errorHandler, type$.dynamic, type$.Object, type$.StackTrace); - if (type$.dynamic_Function_Object._is(errorHandler)) - return zone.registerUnaryCallback$2$1(errorHandler, type$.dynamic, type$.Object); - throw A.wrapException(A.ArgumentError$value(errorHandler, "onError", string$.Error_)); - }, - _microtaskLoop() { - var entry, next; - for (entry = $._nextCallback; entry != null; entry = $._nextCallback) { - $._lastPriorityCallback = null; - next = entry.next; - $._nextCallback = next; - if (next == null) - $._lastCallback = null; - entry.callback.call$0(); - } - }, - _startMicrotaskLoop() { - $._isInCallbackLoop = true; - try { - A._microtaskLoop(); - } finally { - $._lastPriorityCallback = null; - $._isInCallbackLoop = false; - if ($._nextCallback != null) - $.$get$_AsyncRun__scheduleImmediateClosure().call$1(A.async___startMicrotaskLoop$closure()); - } - }, - _scheduleAsyncCallback(callback) { - var newEntry = new A._AsyncCallbackEntry(callback), - lastCallback = $._lastCallback; - if (lastCallback == null) { - $._nextCallback = $._lastCallback = newEntry; - if (!$._isInCallbackLoop) - $.$get$_AsyncRun__scheduleImmediateClosure().call$1(A.async___startMicrotaskLoop$closure()); - } else - $._lastCallback = lastCallback.next = newEntry; - }, - _schedulePriorityAsyncCallback(callback) { - var entry, lastPriorityCallback, next, - t1 = $._nextCallback; - if (t1 == null) { - A._scheduleAsyncCallback(callback); - $._lastPriorityCallback = $._lastCallback; - return; - } - entry = new A._AsyncCallbackEntry(callback); - lastPriorityCallback = $._lastPriorityCallback; - if (lastPriorityCallback == null) { - entry.next = t1; - $._nextCallback = $._lastPriorityCallback = entry; - } else { - next = lastPriorityCallback.next; - entry.next = next; - $._lastPriorityCallback = lastPriorityCallback.next = entry; - if (next == null) - $._lastCallback = entry; - } - }, - scheduleMicrotask(callback) { - var t1, _null = null, - currentZone = $.Zone__current; - if (B.C__RootZone === currentZone) { - A._rootScheduleMicrotask(_null, _null, B.C__RootZone, callback); - return; - } - if (B.C__RootZone === currentZone.get$_scheduleMicrotask().zone) - t1 = B.C__RootZone.get$errorZone() === currentZone.get$errorZone(); - else - t1 = false; - if (t1) { - A._rootScheduleMicrotask(_null, _null, currentZone, currentZone.registerCallback$1$1(callback, type$.void)); - return; - } - t1 = $.Zone__current; - t1.scheduleMicrotask$1(t1.bindCallbackGuarded$1(callback)); - }, - StreamController_StreamController$broadcast(sync, $T) { - return new A._SyncBroadcastStreamController(null, null, $T._eval$1("_SyncBroadcastStreamController<0>")); - }, - _runGuarded(notificationHandler) { - var e, s, exception; - if (notificationHandler == null) - return; - try { - notificationHandler.call$0(); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - $.Zone__current.handleUncaughtError$2(e, s); - } - }, - _BufferingStreamSubscription__registerDataHandler(zone, handleData, $T) { - var t1 = handleData == null ? A.async___nullDataHandler$closure() : handleData; - return zone.registerUnaryCallback$2$1(t1, type$.void, $T); - }, - _BufferingStreamSubscription__registerErrorHandler(zone, handleError) { - if (handleError == null) - handleError = A.async___nullErrorHandler$closure(); - if (type$.void_Function_Object_StackTrace._is(handleError)) - return zone.registerBinaryCallback$3$1(handleError, type$.dynamic, type$.Object, type$.StackTrace); - if (type$.void_Function_Object._is(handleError)) - return zone.registerUnaryCallback$2$1(handleError, type$.dynamic, type$.Object); - throw A.wrapException(A.ArgumentError$("handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace.", null)); - }, - _nullDataHandler(value) { - }, - _nullErrorHandler(error, stackTrace) { - type$.StackTrace._as(stackTrace); - $.Zone__current.handleUncaughtError$2(error, stackTrace); - }, - _nullDoneHandler() { - }, - _rootHandleUncaughtError($self, $parent, zone, error, stackTrace) { - A._rootHandleError(error, type$.StackTrace._as(stackTrace)); - }, - _rootHandleError(error, stackTrace) { - A._schedulePriorityAsyncCallback(new A._rootHandleError_closure(error, stackTrace)); - }, - _rootRun($self, $parent, zone, f, $R) { - var old, t1; - type$.nullable_Zone._as($self); - type$.nullable_ZoneDelegate._as($parent); - type$.Zone._as(zone); - $R._eval$1("0()")._as(f); - t1 = $.Zone__current; - if (t1 == zone) - return f.call$0(); - if (!(zone instanceof A._Zone)) - throw A.wrapException(A.ArgumentError$value(zone, "zone", "Can only run in platform zones")); - $.Zone__current = zone; - old = t1; - try { - t1 = f.call$0(); - return t1; - } finally { - $.Zone__current = old; - } - }, - _rootRunUnary($self, $parent, zone, f, arg, $R, $T) { - var old, t1; - type$.nullable_Zone._as($self); - type$.nullable_ZoneDelegate._as($parent); - type$.Zone._as(zone); - $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f); - $T._as(arg); - t1 = $.Zone__current; - if (t1 == zone) - return f.call$1(arg); - if (!(zone instanceof A._Zone)) - throw A.wrapException(A.ArgumentError$value(zone, "zone", "Can only run in platform zones")); - $.Zone__current = zone; - old = t1; - try { - t1 = f.call$1(arg); - return t1; - } finally { - $.Zone__current = old; - } - }, - _rootRunBinary($self, $parent, zone, f, arg1, arg2, $R, T1, T2) { - var old, t1; - type$.nullable_Zone._as($self); - type$.nullable_ZoneDelegate._as($parent); - type$.Zone._as(zone); - $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); - T1._as(arg1); - T2._as(arg2); - t1 = $.Zone__current; - if (t1 == zone) - return f.call$2(arg1, arg2); - if (!(zone instanceof A._Zone)) - throw A.wrapException(A.ArgumentError$value(zone, "zone", "Can only run in platform zones")); - $.Zone__current = zone; - old = t1; - try { - t1 = f.call$2(arg1, arg2); - return t1; - } finally { - $.Zone__current = old; - } - }, - _rootRegisterCallback($self, $parent, zone, f, $R) { - return $R._eval$1("0()")._as(f); - }, - _rootRegisterUnaryCallback($self, $parent, zone, f, $R, $T) { - return $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f); - }, - _rootRegisterBinaryCallback($self, $parent, zone, f, $R, T1, T2) { - return $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); - }, - _rootErrorCallback($self, $parent, zone, error, stackTrace) { - type$.nullable_StackTrace._as(stackTrace); - return null; - }, - _rootScheduleMicrotask($self, $parent, zone, f) { - var t1, t2; - type$.void_Function._as(f); - if (B.C__RootZone !== zone) { - t1 = B.C__RootZone.get$errorZone(); - t2 = zone.get$errorZone(); - f = t1 !== t2 ? zone.bindCallbackGuarded$1(f) : zone.bindCallback$1$1(f, type$.void); - } - A._scheduleAsyncCallback(f); - }, - _rootCreateTimer($self, $parent, zone, duration, callback) { - type$.Duration._as(duration); - type$.void_Function._as(callback); - return A.Timer__createTimer(duration, B.C__RootZone !== zone ? zone.bindCallback$1$1(callback, type$.void) : callback); - }, - _rootCreatePeriodicTimer($self, $parent, zone, duration, callback) { - var t1; - type$.Duration._as(duration); - type$.void_Function_Timer._as(callback); - if (B.C__RootZone !== zone) - callback = zone.bindUnaryCallback$2$1(callback, type$.void, type$.Timer); - t1 = duration._duration; - return A._TimerImpl$periodic(t1 / 1000 | 0, callback); - }, - _rootPrint($self, $parent, zone, line) { - A.printString(A.S(A._asStringS(line))); - }, - _rootFork($self, $parent, zone, specification, zoneValues) { - var valueMap, t1, run, runUnary, runBinary, scheduleMicrotask, createTimer, handleUncaughtError; - type$.nullable_ZoneSpecification._as(specification); - type$.nullable_Map_of_nullable_Object_and_nullable_Object._as(zoneValues); - if (specification == null) - specification = B._ZoneSpecification_ALf; - if (zoneValues == null) - valueMap = zone.get$_async$_map(); - else { - t1 = type$.nullable_Object; - valueMap = A.HashMap_HashMap$from(zoneValues, t1, t1); - } - t1 = new A._CustomZone(zone.get$_async$_run(), zone.get$_async$_runUnary(), zone.get$_async$_runBinary(), zone.get$_registerCallback(), zone.get$_registerUnaryCallback(), zone.get$_registerBinaryCallback(), zone.get$_errorCallback(), zone.get$_scheduleMicrotask(), zone.get$_async$_createTimer(), zone.get$_createPeriodicTimer(), zone.get$_print(), zone.get$_fork(), zone.get$_async$_handleUncaughtError(), zone, valueMap); - run = specification.run; - if (run != null) - t1.set$_async$_run(new A._ZoneFunction(t1, run, type$._ZoneFunction_of_A_Function_A_extends_nullable_Object_4_Zone_and_ZoneDelegate_and_Zone_and_A_Function)); - runUnary = specification.runUnary; - if (runUnary != null) - t1.set$_async$_runUnary(new A._ZoneFunction(t1, runUnary, type$._ZoneFunction_of_A_Function_A_extends_nullable_Object_and_B_extends_nullable_Object_5_Zone_and_ZoneDelegate_and_Zone_and_A_Function_B_and_B)); - runBinary = specification.runBinary; - if (runBinary != null) - t1.set$_async$_runBinary(new A._ZoneFunction(t1, runBinary, type$._ZoneFunction_of_A_Function_A_extends_nullable_Object_and_B_extends_nullable_Object_and_C_extends_nullable_Object_6_Zone_and_ZoneDelegate_and_Zone_and_A_Function_2_B_and_C_and_B_and_C)); - scheduleMicrotask = specification.scheduleMicrotask; - if (scheduleMicrotask != null) - t1.set$_scheduleMicrotask(new A._ZoneFunction(t1, scheduleMicrotask, type$._ZoneFunction_of_void_Function_4_Zone_and_ZoneDelegate_and_Zone_and_void_Function)); - createTimer = specification.createTimer; - if (createTimer != null) - t1.set$_async$_createTimer(new A._ZoneFunction(t1, createTimer, type$._ZoneFunction_of_Timer_Function_5_Zone_and_ZoneDelegate_and_Zone_and_Duration_and_void_Function)); - handleUncaughtError = specification.handleUncaughtError; - if (handleUncaughtError != null) - t1.set$_async$_handleUncaughtError(new A._ZoneFunction(t1, handleUncaughtError, type$._ZoneFunction_of_void_Function_Zone_ZoneDelegate_Zone_Object_StackTrace)); - return t1; - }, - _AsyncRun__initializeScheduleImmediate_internalCallback: function _AsyncRun__initializeScheduleImmediate_internalCallback(t0) { - this._box_0 = t0; - }, - _AsyncRun__initializeScheduleImmediate_closure: function _AsyncRun__initializeScheduleImmediate_closure(t0, t1, t2) { - this._box_0 = t0; - this.div = t1; - this.span = t2; - }, - _AsyncRun__scheduleImmediateJsOverride_internalCallback: function _AsyncRun__scheduleImmediateJsOverride_internalCallback(t0) { - this.callback = t0; - }, - _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback: function _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(t0) { - this.callback = t0; - }, - _TimerImpl: function _TimerImpl(t0) { - this._once = t0; - this._handle = null; - this._tick = 0; - }, - _TimerImpl_internalCallback: function _TimerImpl_internalCallback(t0, t1) { - this.$this = t0; - this.callback = t1; - }, - _TimerImpl$periodic_closure: function _TimerImpl$periodic_closure(t0, t1, t2, t3) { - var _ = this; - _.$this = t0; - _.milliseconds = t1; - _.start = t2; - _.callback = t3; - }, - AsyncError: function AsyncError(t0, t1) { - this.error = t0; - this.stackTrace = t1; - }, - _BroadcastStream: function _BroadcastStream(t0, t1) { - this._controller = t0; - this.$ti = t1; - }, - _BroadcastSubscription: function _BroadcastSubscription(t0, t1, t2, t3, t4, t5, t6) { - var _ = this; - _._eventState = 0; - _._previous = _._async$_next = null; - _._controller = t0; - _._onData = t1; - _._onError = t2; - _._onDone = t3; - _._zone = t4; - _._state = t5; - _._pending = _._cancelFuture = null; - _.$ti = t6; - }, - _BroadcastStreamController: function _BroadcastStreamController() { - }, - _SyncBroadcastStreamController: function _SyncBroadcastStreamController(t0, t1, t2) { - var _ = this; - _.onListen = t0; - _.onCancel = t1; - _._state = 0; - _._doneFuture = _._lastSubscription = _._firstSubscription = null; - _.$ti = t2; - }, - _SyncBroadcastStreamController__sendData_closure: function _SyncBroadcastStreamController__sendData_closure(t0, t1) { - this.$this = t0; - this.data = t1; - }, - _Completer: function _Completer() { - }, - _AsyncCompleter: function _AsyncCompleter(t0, t1) { - this.future = t0; - this.$ti = t1; - }, - _FutureListener: function _FutureListener(t0, t1, t2, t3, t4) { - var _ = this; - _._nextListener = null; - _.result = t0; - _.state = t1; - _.callback = t2; - _.errorCallback = t3; - _.$ti = t4; - }, - _Future: function _Future(t0, t1) { - var _ = this; - _._state = 0; - _._zone = t0; - _._resultOrListeners = null; - _.$ti = t1; - }, - _Future__addListener_closure: function _Future__addListener_closure(t0, t1) { - this.$this = t0; - this.listener = t1; - }, - _Future__prependListeners_closure: function _Future__prependListeners_closure(t0, t1) { - this._box_0 = t0; - this.$this = t1; - }, - _Future__chainForeignFuture_closure: function _Future__chainForeignFuture_closure(t0) { - this.$this = t0; - }, - _Future__chainForeignFuture_closure0: function _Future__chainForeignFuture_closure0(t0) { - this.$this = t0; - }, - _Future__chainForeignFuture_closure1: function _Future__chainForeignFuture_closure1(t0, t1, t2) { - this.$this = t0; - this.e = t1; - this.s = t2; - }, - _Future__asyncCompleteWithValue_closure: function _Future__asyncCompleteWithValue_closure(t0, t1) { - this.$this = t0; - this.value = t1; - }, - _Future__chainFuture_closure: function _Future__chainFuture_closure(t0, t1) { - this.$this = t0; - this.value = t1; - }, - _Future__asyncCompleteError_closure: function _Future__asyncCompleteError_closure(t0, t1, t2) { - this.$this = t0; - this.error = t1; - this.stackTrace = t2; - }, - _Future__propagateToListeners_handleWhenCompleteCallback: function _Future__propagateToListeners_handleWhenCompleteCallback(t0, t1, t2) { - this._box_0 = t0; - this._box_1 = t1; - this.hasError = t2; - }, - _Future__propagateToListeners_handleWhenCompleteCallback_closure: function _Future__propagateToListeners_handleWhenCompleteCallback_closure(t0) { - this.originalSource = t0; - }, - _Future__propagateToListeners_handleValueCallback: function _Future__propagateToListeners_handleValueCallback(t0, t1) { - this._box_0 = t0; - this.sourceResult = t1; - }, - _Future__propagateToListeners_handleError: function _Future__propagateToListeners_handleError(t0, t1) { - this._box_1 = t0; - this._box_0 = t1; - }, - _AsyncCallbackEntry: function _AsyncCallbackEntry(t0) { - this.callback = t0; - this.next = null; - }, - Stream: function Stream() { - }, - Stream_length_closure: function Stream_length_closure(t0, t1) { - this._box_0 = t0; - this.$this = t1; - }, - Stream_length_closure0: function Stream_length_closure0(t0, t1) { - this._box_0 = t0; - this.future = t1; - }, - _ControllerStream: function _ControllerStream() { - }, - _ControllerSubscription: function _ControllerSubscription() { - }, - _BufferingStreamSubscription: function _BufferingStreamSubscription() { - }, - _StreamImpl: function _StreamImpl() { - }, - _DelayedEvent: function _DelayedEvent() { - }, - _DelayedData: function _DelayedData(t0, t1) { - this.value = t0; - this.next = null; - this.$ti = t1; - }, - _PendingEvents: function _PendingEvents(t0) { - var _ = this; - _._state = 0; - _.lastPendingEvent = _.firstPendingEvent = null; - _.$ti = t0; - }, - _PendingEvents_schedule_closure: function _PendingEvents_schedule_closure(t0, t1) { - this.$this = t0; - this.dispatch = t1; - }, - _DoneStreamSubscription: function _DoneStreamSubscription(t0, t1, t2) { - var _ = this; - _._zone = t0; - _._state = 0; - _._onDone = t1; - _.$ti = t2; - }, - _ZoneFunction: function _ZoneFunction(t0, t1, t2) { - this.zone = t0; - this.$function = t1; - this.$ti = t2; - }, - _ZoneSpecification: function _ZoneSpecification(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) { - var _ = this; - _.handleUncaughtError = t0; - _.run = t1; - _.runUnary = t2; - _.runBinary = t3; - _.registerCallback = t4; - _.registerUnaryCallback = t5; - _.registerBinaryCallback = t6; - _.errorCallback = t7; - _.scheduleMicrotask = t8; - _.createTimer = t9; - _.createPeriodicTimer = t10; - _.print = t11; - _.fork = t12; - }, - _ZoneDelegate: function _ZoneDelegate(t0) { - this._delegationTarget = t0; - }, - _Zone: function _Zone() { - }, - _CustomZone: function _CustomZone(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) { - var _ = this; - _._async$_run = t0; - _._async$_runUnary = t1; - _._async$_runBinary = t2; - _._registerCallback = t3; - _._registerUnaryCallback = t4; - _._registerBinaryCallback = t5; - _._errorCallback = t6; - _._scheduleMicrotask = t7; - _._async$_createTimer = t8; - _._createPeriodicTimer = t9; - _._print = t10; - _._fork = t11; - _._async$_handleUncaughtError = t12; - _._delegateCache = null; - _.parent = t13; - _._async$_map = t14; - }, - _CustomZone_bindCallback_closure: function _CustomZone_bindCallback_closure(t0, t1, t2) { - this.$this = t0; - this.registered = t1; - this.R = t2; - }, - _CustomZone_bindUnaryCallback_closure: function _CustomZone_bindUnaryCallback_closure(t0, t1, t2, t3) { - var _ = this; - _.$this = t0; - _.registered = t1; - _.T = t2; - _.R = t3; - }, - _CustomZone_bindCallbackGuarded_closure: function _CustomZone_bindCallbackGuarded_closure(t0, t1) { - this.$this = t0; - this.registered = t1; - }, - _rootHandleError_closure: function _rootHandleError_closure(t0, t1) { - this.error = t0; - this.stackTrace = t1; - }, - _RootZone: function _RootZone() { - }, - _RootZone_bindCallback_closure: function _RootZone_bindCallback_closure(t0, t1, t2) { - this.$this = t0; - this.f = t1; - this.R = t2; - }, - _RootZone_bindUnaryCallback_closure: function _RootZone_bindUnaryCallback_closure(t0, t1, t2, t3) { - var _ = this; - _.$this = t0; - _.f = t1; - _.T = t2; - _.R = t3; - }, - _RootZone_bindCallbackGuarded_closure: function _RootZone_bindCallbackGuarded_closure(t0, t1) { - this.$this = t0; - this.f = t1; - }, - HashMap_HashMap($K, $V) { - return new A._HashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_HashMap<1,2>")); - }, - _HashMap__getTableEntry(table, key) { - var entry = table[key]; - return entry === table ? null : entry; - }, - _HashMap__setTableEntry(table, key, value) { - if (value == null) - table[key] = table; - else - table[key] = value; - }, - _HashMap__newHashTable() { - var table = Object.create(null); - A._HashMap__setTableEntry(table, "", table); - delete table[""]; - return table; - }, - LinkedHashMap_LinkedHashMap$_literal(keyValuePairs, $K, $V) { - return $K._eval$1("@<0>")._bind$1($V)._eval$1("LinkedHashMap<1,2>")._as(A.fillLiteralMap(keyValuePairs, new A.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>")))); - }, - LinkedHashMap_LinkedHashMap$_empty($K, $V) { - return new A.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>")); - }, - HashMap_HashMap$from(other, $K, $V) { - var result = A.HashMap_HashMap($K, $V); - other.forEach$1(0, new A.HashMap_HashMap$from_closure(result, $K, $V)); - return result; - }, - IterableBase_iterableToShortString(iterable, leftDelimiter, rightDelimiter) { - var parts, t1; - if (A._isToStringVisiting(iterable)) { - if (leftDelimiter === "(" && rightDelimiter === ")") - return "(...)"; - return leftDelimiter + "..." + rightDelimiter; - } - parts = A._setArrayType([], type$.JSArray_String); - B.JSArray_methods.add$1($._toStringVisiting, iterable); - try { - A._iterablePartsToStrings(iterable, parts); - } finally { - if (0 >= $._toStringVisiting.length) - return A.ioore($._toStringVisiting, -1); - $._toStringVisiting.pop(); - } - t1 = A.StringBuffer__writeAll(leftDelimiter, type$.Iterable_dynamic._as(parts), ", ") + rightDelimiter; - return t1.charCodeAt(0) == 0 ? t1 : t1; - }, - IterableBase_iterableToFullString(iterable, leftDelimiter, rightDelimiter) { - var buffer, t1; - if (A._isToStringVisiting(iterable)) - return leftDelimiter + "..." + rightDelimiter; - buffer = new A.StringBuffer(leftDelimiter); - B.JSArray_methods.add$1($._toStringVisiting, iterable); - try { - t1 = buffer; - t1._contents = A.StringBuffer__writeAll(t1._contents, iterable, ", "); - } finally { - if (0 >= $._toStringVisiting.length) - return A.ioore($._toStringVisiting, -1); - $._toStringVisiting.pop(); - } - buffer._contents += rightDelimiter; - t1 = buffer._contents; - return t1.charCodeAt(0) == 0 ? t1 : t1; - }, - _isToStringVisiting(o) { - var t1, i; - for (t1 = $._toStringVisiting.length, i = 0; i < t1; ++i) - if (o === $._toStringVisiting[i]) - return true; - return false; - }, - _iterablePartsToStrings(iterable, parts) { - var next, ultimateString, penultimateString, penultimate, ultimate, ultimate0, elision, - it = iterable.get$iterator(iterable), - $length = 0, count = 0; - while (true) { - if (!($length < 80 || count < 3)) - break; - if (!it.moveNext$0()) - return; - next = A.S(it.get$current()); - B.JSArray_methods.add$1(parts, next); - $length += next.length + 2; - ++count; - } - if (!it.moveNext$0()) { - if (count <= 5) - return; - if (0 >= parts.length) - return A.ioore(parts, -1); - ultimateString = parts.pop(); - if (0 >= parts.length) - return A.ioore(parts, -1); - penultimateString = parts.pop(); - } else { - penultimate = it.get$current(); - ++count; - if (!it.moveNext$0()) { - if (count <= 4) { - B.JSArray_methods.add$1(parts, A.S(penultimate)); - return; - } - ultimateString = A.S(penultimate); - if (0 >= parts.length) - return A.ioore(parts, -1); - penultimateString = parts.pop(); - $length += ultimateString.length + 2; - } else { - ultimate = it.get$current(); - ++count; - for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) { - ultimate0 = it.get$current(); - ++count; - if (count > 100) { - while (true) { - if (!($length > 75 && count > 3)) - break; - if (0 >= parts.length) - return A.ioore(parts, -1); - $length -= parts.pop().length + 2; - --count; - } - B.JSArray_methods.add$1(parts, "..."); - return; - } - } - penultimateString = A.S(penultimate); - ultimateString = A.S(ultimate); - $length += ultimateString.length + penultimateString.length + 4; - } - } - if (count > parts.length + 2) { - $length += 5; - elision = "..."; - } else - elision = null; - while (true) { - if (!($length > 80 && parts.length > 3)) - break; - if (0 >= parts.length) - return A.ioore(parts, -1); - $length -= parts.pop().length + 2; - if (elision == null) { - $length += 5; - elision = "..."; - } - } - if (elision != null) - B.JSArray_methods.add$1(parts, elision); - B.JSArray_methods.add$1(parts, penultimateString); - B.JSArray_methods.add$1(parts, ultimateString); - }, - MapBase_mapToString(m) { - var result, t1 = {}; - if (A._isToStringVisiting(m)) - return "{...}"; - result = new A.StringBuffer(""); - try { - B.JSArray_methods.add$1($._toStringVisiting, m); - result._contents += "{"; - t1.first = true; - m.forEach$1(0, new A.MapBase_mapToString_closure(t1, result)); - result._contents += "}"; - } finally { - if (0 >= $._toStringVisiting.length) - return A.ioore($._toStringVisiting, -1); - $._toStringVisiting.pop(); - } - t1 = result._contents; - return t1.charCodeAt(0) == 0 ? t1 : t1; - }, - _HashMap: function _HashMap(t0) { - var _ = this; - _._collection$_length = 0; - _._keys = _._collection$_rest = _._collection$_nums = _._collection$_strings = null; - _.$ti = t0; - }, - _HashMap_addAll_closure: function _HashMap_addAll_closure(t0) { - this.$this = t0; - }, - _IdentityHashMap: function _IdentityHashMap(t0) { - var _ = this; - _._collection$_length = 0; - _._keys = _._collection$_rest = _._collection$_nums = _._collection$_strings = null; - _.$ti = t0; - }, - _HashMapKeyIterable: function _HashMapKeyIterable(t0, t1) { - this._collection$_map = t0; - this.$ti = t1; - }, - _HashMapKeyIterator: function _HashMapKeyIterator(t0, t1, t2) { - var _ = this; - _._collection$_map = t0; - _._keys = t1; - _._offset = 0; - _._collection$_current = null; - _.$ti = t2; - }, - HashMap_HashMap$from_closure: function HashMap_HashMap$from_closure(t0, t1, t2) { - this.result = t0; - this.K = t1; - this.V = t2; - }, - ListMixin: function ListMixin() { - }, - MapBase: function MapBase() { - }, - MapBase_mapToString_closure: function MapBase_mapToString_closure(t0, t1) { - this._box_0 = t0; - this.result = t1; - }, - MapMixin: function MapMixin() { - }, - Error__objectToString(object) { - if (object instanceof A.Closure) - return object.toString$0(0); - return "Instance of '" + A.S(A.Primitives_objectTypeName(object)) + "'"; - }, - Error__throw(error, stackTrace) { - error = A.wrapException(error); - error.stack = J.toString$0$(stackTrace); - throw error; - throw A.wrapException("unreachable"); - }, - List_List$filled($length, fill, growable, $E) { - var i, - result = J.JSArray_JSArray$fixed($length, $E); - if ($length !== 0 && fill != null) - for (i = 0; i < $length; ++i) - result[i] = fill; - return result; - }, - StringBuffer__writeAll(string, objects, separator) { - var iterator = J.get$iterator$ax(objects); - if (!iterator.moveNext$0()) - return string; - if (separator.length === 0) { - do - string += A.S(iterator.get$current()); - while (iterator.moveNext$0()); - } else { - string += A.S(iterator.get$current()); - for (; iterator.moveNext$0();) - string = string + separator + A.S(iterator.get$current()); - } - return string; - }, - Error_safeToString(object) { - if (typeof object == "number" || A._isBool(object) || object == null) - return J.toString$0$(object); - if (typeof object == "string") - return JSON.stringify(object); - return A.Error__objectToString(object); - }, - Error_throwWithStackTrace(error, stackTrace) { - A.checkNotNullable(error, "error", type$.Object); - A.checkNotNullable(stackTrace, "stackTrace", type$.StackTrace); - A.Error__throw(error, stackTrace); - A.ReachabilityError$(string$._null_); - }, - AssertionError$(message) { - return new A.AssertionError(message); - }, - ArgumentError$(message, $name) { - return new A.ArgumentError(false, null, $name, message); - }, - ArgumentError$value(value, $name, message) { - return new A.ArgumentError(true, value, $name, message); - }, - RangeError$(message) { - var _null = null; - return new A.RangeError(_null, _null, false, _null, _null, message); - }, - RangeError$value(value, $name) { - return new A.RangeError(null, null, true, value, $name, "Value not in range"); - }, - RangeError$range(invalidValue, minValue, maxValue, $name, message) { - return new A.RangeError(minValue, maxValue, true, invalidValue, $name, "Invalid value"); - }, - RangeError_checkNotNegative(value, $name) { - return value; - }, - IndexError$withLength(invalidValue, $length, indexable, $name) { - return new A.IndexError($length, true, invalidValue, $name, "Index out of range"); - }, - UnsupportedError$(message) { - return new A.UnsupportedError(message); - }, - UnimplementedError$(message) { - return new A.UnimplementedError(message); - }, - StateError$(message) { - return new A.StateError(message); - }, - ConcurrentModificationError$(modifiedObject) { - return new A.ConcurrentModificationError(modifiedObject); - }, - Duration: function Duration(t0) { - this._duration = t0; - }, - _Enum: function _Enum() { - }, - Error: function Error() { - }, - AssertionError: function AssertionError(t0) { - this.message = t0; - }, - TypeError: function TypeError() { - }, - NullThrownError: function NullThrownError() { - }, - ArgumentError: function ArgumentError(t0, t1, t2, t3) { - var _ = this; - _._hasValue = t0; - _.invalidValue = t1; - _.name = t2; - _.message = t3; - }, - RangeError: function RangeError(t0, t1, t2, t3, t4, t5) { - var _ = this; - _.start = t0; - _.end = t1; - _._hasValue = t2; - _.invalidValue = t3; - _.name = t4; - _.message = t5; - }, - IndexError: function IndexError(t0, t1, t2, t3, t4) { - var _ = this; - _.length = t0; - _._hasValue = t1; - _.invalidValue = t2; - _.name = t3; - _.message = t4; - }, - UnsupportedError: function UnsupportedError(t0) { - this.message = t0; - }, - UnimplementedError: function UnimplementedError(t0) { - this.message = t0; - }, - StateError: function StateError(t0) { - this.message = t0; - }, - ConcurrentModificationError: function ConcurrentModificationError(t0) { - this.modifiedObject = t0; - }, - OutOfMemoryError: function OutOfMemoryError() { - }, - StackOverflowError: function StackOverflowError() { - }, - CyclicInitializationError: function CyclicInitializationError(t0) { - this.variableName = t0; - }, - _Exception: function _Exception(t0) { - this.message = t0; - }, - Iterable: function Iterable() { - }, - Null: function Null() { - }, - Object: function Object() { - }, - _StringStackTrace: function _StringStackTrace() { - }, - StringBuffer: function StringBuffer(t0) { - this._contents = t0; - }, - HtmlElement: function HtmlElement() { - }, - AnchorElement: function AnchorElement() { - }, - AreaElement: function AreaElement() { - }, - CharacterData: function CharacterData() { - }, - DomException: function DomException() { - }, - DomTokenList: function DomTokenList() { - }, - Element: function Element() { - }, - EventTarget: function EventTarget() { - }, - FormElement: function FormElement() { - }, - Node: function Node() { - }, - SelectElement: function SelectElement() { - }, - StyleElement: function StyleElement() { - }, - _JSRandom: function _JSRandom() { - }, - _createRandomAppId() { - var t1 = new A._createRandomAppId_char(B.C__JSRandom); - return A.S(t1.call$0()) + A.S(t1.call$0()) + A.S(t1.call$0()); - }, - _createRandomAppId_char: function _createRandomAppId_char(t0) { - this.random = t0; - }, - appInjector(userProvidedInjector) { - var applicationRef, ngZone, userInjector, injector, - t1 = type$.Object, - t2 = new A._IdentityHashMap(type$._IdentityHashMap_Object_Object); - t2.addAll$1(0, A.LinkedHashMap_LinkedHashMap$_literal([B.C_OpaqueToken, A._createRandomAppId(), B.Type_ExceptionHandler_qBE, B.C_ExceptionHandler, B.Type_ComponentLoader_7xV, B.C_ComponentLoader], t1, t1)); - applicationRef = A._Cell$named("applicationRef"); - ngZone = A.NgZone___new_tearOff(); - t1 = A.LinkedHashMap_LinkedHashMap$_literal([B.Type_ApplicationRef_Aij, new A.appInjector_closure(applicationRef), B.Type_AppViewUtils_NWH, new A.appInjector_closure0(), B.Type_NgZone_6ty, new A.appInjector_closure1(ngZone)], t1, type$.Object_Function); - userInjector = userProvidedInjector.call$1(new A._LazyInjector(t1, new A._MapInjector(t2, B.C__EmptyInjector))); - ngZone.toString; - t1 = type$.Injector_Function._as(new A.appInjector_closure2(applicationRef, ngZone, userInjector)); - t2 = ngZone.__NgZone__innerZone_F; - t2 === $ && A.throwLateFieldNI("_innerZone"); - injector = t2.run$1$1(t1, type$.Injector); - return injector; - }, - _identityInjector($parent) { - return $parent; - }, - appInjector_closure: function appInjector_closure(t0) { - this.applicationRef = t0; - }, - appInjector_closure0: function appInjector_closure0() { - }, - appInjector_closure1: function appInjector_closure1(t0) { - this.ngZone = t0; - }, - appInjector_closure2: function appInjector_closure2(t0, t1, t2) { - this.applicationRef = t0; - this.ngZone = t1; - this.userInjector = t2; - }, - _LazyInjector: function _LazyInjector(t0, t1) { - this._providers = t0; - this._parent = t1; - }, - NgIf: function NgIf(t0, t1) { - this._templateRef = t0; - this._viewContainer = t1; - this._prevCondition = false; - }, - ApplicationRef$_(_ngZone, _exceptionHandler, _injector) { - var t1 = new A.ApplicationRef(A._setArrayType([], type$.JSArray_of_void_Function), A._setArrayType([], type$.JSArray_ComponentRef_void), _exceptionHandler, _injector, _ngZone, A._setArrayType([], type$.JSArray_ChangeDetectorRef)); - t1.ApplicationRef$_$3(_ngZone, _exceptionHandler, _injector); - return t1; - }, - ApplicationRef: function ApplicationRef(t0, t1, t2, t3, t4, t5) { - var _ = this; - _._disposeListeners = t0; - _._rootComponents = t1; - _._exceptionHandler = t2; - _._injector = t3; - _._ngZone = t4; - _.__ApplicationRef__onMicroSub_F = _.__ApplicationRef__onErrorSub_F = $; - _._lastCaughtTrace = _._lastCaughtException = _._lastGuardedView = null; - _._runningTick = false; - _._changeDetectors = t5; - }, - ApplicationRef$__closure: function ApplicationRef$__closure(t0) { - this.$this = t0; - }, - ApplicationRef$__closure0: function ApplicationRef$__closure0(t0) { - this.$this = t0; - }, - ApplicationRef_bootstrap_closure: function ApplicationRef_bootstrap_closure(t0, t1, t2) { - this.$this = t0; - this.componentFactory = t1; - this.T = t2; - }, - ApplicationRef__loadedRootComponent_closure: function ApplicationRef__loadedRootComponent_closure(t0, t1, t2) { - this.$this = t0; - this.component = t1; - this.node = t2; - }, - ChangeDetectionHost: function ChangeDetectionHost() { - }, - ChangeDetectionHost_run_closure: function ChangeDetectionHost_run_closure(t0, t1, t2, t3, t4) { - var _ = this; - _._box_0 = t0; - _.$this = t1; - _.callback = t2; - _.completer = t3; - _.R = t4; - }, - ChangeDetectionHost_run__closure: function ChangeDetectionHost_run__closure(t0, t1) { - this.completer = t0; - this.R = t1; - }, - ChangeDetectionHost_run__closure0: function ChangeDetectionHost_run__closure0(t0, t1) { - this.$this = t0; - this.completer = t1; - }, - ExceptionHandler_exceptionToString(exception, stackTrace, reason) { - var t1 = "EXCEPTION: " + A.S(exception) + "\n"; - if (stackTrace != null) - t1 = t1 + "STACKTRACE: \n" + (A.S(J.toString$0$(stackTrace)) + "\n"); - return t1.charCodeAt(0) == 0 ? t1 : t1; - }, - ExceptionHandler: function ExceptionHandler() { - }, - AppViewUtils: function AppViewUtils() { - }, - ComponentRef: function ComponentRef(t0, t1, t2) { - this._hostView = t0; - this._nativeElement = t1; - this.$ti = t2; - }, - ComponentFactory: function ComponentFactory(t0, t1, t2) { - this.selector = t0; - this._viewFactory = t1; - this.$ti = t2; - }, - ComponentLoader: function ComponentLoader() { - }, - _UnscopedComponentStyles$(styles, componentUrl) { - var t1 = new A._UnscopedComponentStyles(componentUrl, styles); - t1._appendStyles$0(); - return t1; - }, - _flattenStyles(styles, target, componentId) { - return target; - }, - ComponentStyles: function ComponentStyles() { - }, - _UnscopedComponentStyles: function _UnscopedComponentStyles(t0, t1) { - this._componentUrl = t0; - this._styles = t1; - }, - TemplateRef: function TemplateRef(t0, t1) { - this._template_ref$_viewContainer = t0; - this._template_ref$_viewFactory = t1; - }, - ViewContainer: function ViewContainer(t0, t1, t2) { - var _ = this; - _.index = t0; - _.parentView = t1; - _.nativeElement = t2; - _.nestedViews = null; - }, - ViewFragment_ViewFragment(nodesOrViewContainers) { - return new A.ViewFragment(nodesOrViewContainers); - }, - ViewFragment__flattenDomNodes(target, nodes) { - var i; - for (i = 0; i < 1; ++i) - B.JSArray_methods.add$1(target, nodes[i]); - return target; - }, - ViewFragment: function ViewFragment(t0) { - this._nodesOrViewContainers = t0; - }, - _ComponentViewData__ComponentViewData(parentView, parentIndex, changeDetectionMode) { - return new A._ComponentViewData(parentView, parentIndex, changeDetectionMode, B.ChangeDetectorState_0); - }, - ComponentView: function ComponentView() { - }, - _ComponentViewData: function _ComponentViewData(t0, t1, t2, t3) { - var _ = this; - _.parentView = t0; - _.parentIndex = t1; - _.___ComponentViewData_projectedNodes_F = $; - _._changeDetectionMode = t2; - _._component_view$_changeDetectorState = t3; - _._component_view$_shouldSkipChangeDetection = _._component_view$_destroyed = false; - }, - _EmbeddedViewData__EmbeddedViewData(parentView, parentIndex, $T) { - return new A._EmbeddedViewData(parentView.get$ctx(), parentView.get$componentStyles(), parentView, parentIndex, parentView.get$projectedNodes(), A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic), B.ChangeDetectorState_0, $T._eval$1("_EmbeddedViewData<0>")); - }, - EmbeddedView: function EmbeddedView() { - }, - _EmbeddedViewData: function _EmbeddedViewData(t0, t1, t2, t3, t4, t5, t6, t7) { - var _ = this; - _.ctx = t0; - _.componentStyles = t1; - _.parentView = t2; - _.parentIndex = t3; - _.projectedNodes = t4; - _.locals = t5; - _._embedded_view$_onDestroyCallbacks = _.subscriptions = _.viewFragment = null; - _._embedded_view$_changeDetectorState = t6; - _._embedded_view$_shouldSkipChangeDetection = _._embedded_view$_destroyed = false; - _.$ti = t7; - }, - HostView: function HostView() { - }, - _HostViewData: function _HostViewData(t0) { - var _ = this; - _._onDestroyCallbacks = _.viewFragment = null; - _._changeDetectorState = t0; - _._shouldSkipChangeDetection = _._destroyed = false; - }, - RenderView: function RenderView() { - }, - View: function View() { - }, - _ElementInjector: function _ElementInjector(t0, t1) { - this._view = t0; - this._nodeIndex = t1; - }, - NgZone___new_tearOff() { - var t5, t6, _null = null, - t1 = new A.Object(), - t2 = type$.void, - t3 = A.StreamController_StreamController$broadcast(true, t2), - t4 = A.StreamController_StreamController$broadcast(true, t2); - t2 = A.StreamController_StreamController$broadcast(true, t2); - t5 = A.StreamController_StreamController$broadcast(true, type$.UncaughtError); - t6 = $.Zone__current; - t5 = new A.NgZone(t1, t3, t4, t2, t5, t6, A._setArrayType([], type$.JSArray__WrappedTimer)); - t2 = type$.nullable_Object; - t2 = t6.fork$2$specification$zoneValues(new A._ZoneSpecification(type$.void_Function_Zone_ZoneDelegate_Zone_Object_StackTrace._as(t5.get$_handleUncaughtError()), t5.get$_run(), t5.get$_runUnary(), t5.get$_runBinary(), _null, _null, _null, _null, t5.get$_ng_zone$_scheduleMicrotask(), t5.get$_createTimer(), _null, _null, _null), A.LinkedHashMap_LinkedHashMap$_literal([t1, true], t2, t2)); - t5.__NgZone__innerZone_F !== $ && A.throwLateFieldAI("_innerZone"); - t5.__NgZone__innerZone_F = t2; - return t5; - }, - NgZone: function NgZone(t0, t1, t2, t3, t4, t5, t6) { - var _ = this; - _._thisZoneKey = t0; - _._onTurnStart = t1; - _._onMicrotaskEmpty = t2; - _._onTurnDone = t3; - _._onUncaughtError = t4; - _._outerZone = t5; - _.__NgZone__innerZone_F = $; - _._hasPendingMicrotasks = false; - _._isStable = true; - _._nesting = 0; - _._isRunning = false; - _._pendingMicrotasks = 0; - _._pendingTimers = t6; - }, - NgZone__scheduleMicrotask_safeMicrotask: function NgZone__scheduleMicrotask_safeMicrotask(t0, t1) { - this.$this = t0; - this.fn = t1; - }, - NgZone__run_closure: function NgZone__run_closure(t0, t1, t2) { - this.$this = t0; - this.fn = t1; - this.R = t2; - }, - NgZone__runUnary_closure: function NgZone__runUnary_closure(t0, t1, t2, t3) { - var _ = this; - _.$this = t0; - _.fn = t1; - _.T = t2; - _.R = t3; - }, - NgZone__runBinary_closure: function NgZone__runBinary_closure(t0, t1, t2, t3, t4) { - var _ = this; - _.$this = t0; - _.fn = t1; - _.T1 = t2; - _.T2 = t3; - _.R = t4; - }, - NgZone__createTimer_onDone: function NgZone__createTimer_onDone(t0, t1) { - this.$this = t0; - this.wrappedTimer = t1; - }, - NgZone__createTimer_callback: function NgZone__createTimer_callback(t0, t1) { - this.fn = t0; - this.onDone = t1; - }, - NgZone__checkStable_closure: function NgZone__checkStable_closure(t0) { - this.$this = t0; - }, - _WrappedTimer: function _WrappedTimer(t0, t1) { - this._timer = t0; - this._onCancel = t1; - }, - UncaughtError: function UncaughtError(t0, t1) { - this.error = t0; - this.stackTrace = t1; - }, - Injector: function Injector() { - }, - HierarchicalInjector: function HierarchicalInjector() { - }, - _EmptyInjector: function _EmptyInjector() { - }, - _MapInjector: function _MapInjector(t0, t1) { - this._injector$_providers = t0; - this._parent = t1; - }, - ChangeDetectorState: function ChangeDetectorState(t0) { - this._name = t0; - }, - ChangeDetectionCheckedState: function ChangeDetectionCheckedState(t0) { - this._name = t0; - }, - OpaqueToken: function OpaqueToken(t0) { - this.$ti = t0; - }, - JsTestability: function JsTestability() { - }, - JsTestabilityRegistry: function JsTestabilityRegistry() { - }, - main() { - A.appInjector(A.run___identityInjector$closure()).$get$1(B.Type_ApplicationRef_Aij).bootstrap$1$1(new A.ComponentFactory("golden", A.large_templates_opt_out_template__viewFactory_GoldenComponentHost0$closure(), type$.ComponentFactory_legacy_GoldenComponent), type$.legacy_GoldenComponent); - }, - GoldenComponent: function GoldenComponent() { - }, - ChildComponent: function ChildComponent() { - }, - viewFactory_GoldenComponent1(parentView, parentIndex) { - return new A._ViewGoldenComponent1(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent2(parentView, parentIndex) { - return new A._ViewGoldenComponent2(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent3(parentView, parentIndex) { - return new A._ViewGoldenComponent3(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent4(parentView, parentIndex) { - return new A._ViewGoldenComponent4(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent5(parentView, parentIndex) { - return new A._ViewGoldenComponent5(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent6(parentView, parentIndex) { - return new A._ViewGoldenComponent6(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent7(parentView, parentIndex) { - return new A._ViewGoldenComponent7(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent8(parentView, parentIndex) { - return new A._ViewGoldenComponent8(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent9(parentView, parentIndex) { - return new A._ViewGoldenComponent9(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent10(parentView, parentIndex) { - return new A._ViewGoldenComponent10(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent11(parentView, parentIndex) { - return new A._ViewGoldenComponent11(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent12(parentView, parentIndex) { - return new A._ViewGoldenComponent12(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent13(parentView, parentIndex) { - return new A._ViewGoldenComponent13(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent14(parentView, parentIndex) { - return new A._ViewGoldenComponent14(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent15(parentView, parentIndex) { - return new A._ViewGoldenComponent15(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent16(parentView, parentIndex) { - return new A._ViewGoldenComponent16(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent17(parentView, parentIndex) { - return new A._ViewGoldenComponent17(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent18(parentView, parentIndex) { - return new A._ViewGoldenComponent18(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent19(parentView, parentIndex) { - return new A._ViewGoldenComponent19(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent20(parentView, parentIndex) { - return new A._ViewGoldenComponent20(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent21(parentView, parentIndex) { - return new A._ViewGoldenComponent21(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent22(parentView, parentIndex) { - return new A._ViewGoldenComponent22(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent23(parentView, parentIndex) { - return new A._ViewGoldenComponent23(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent24(parentView, parentIndex) { - return new A._ViewGoldenComponent24(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent25(parentView, parentIndex) { - return new A._ViewGoldenComponent25(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent26(parentView, parentIndex) { - return new A._ViewGoldenComponent26(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent27(parentView, parentIndex) { - return new A._ViewGoldenComponent27(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent28(parentView, parentIndex) { - return new A._ViewGoldenComponent28(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent29(parentView, parentIndex) { - return new A._ViewGoldenComponent29(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent30(parentView, parentIndex) { - return new A._ViewGoldenComponent30(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent31(parentView, parentIndex) { - return new A._ViewGoldenComponent31(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent32(parentView, parentIndex) { - return new A._ViewGoldenComponent32(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent33(parentView, parentIndex) { - return new A._ViewGoldenComponent33(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent34(parentView, parentIndex) { - return new A._ViewGoldenComponent34(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent35(parentView, parentIndex) { - return new A._ViewGoldenComponent35(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent36(parentView, parentIndex) { - return new A._ViewGoldenComponent36(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent37(parentView, parentIndex) { - return new A._ViewGoldenComponent37(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent38(parentView, parentIndex) { - return new A._ViewGoldenComponent38(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent39(parentView, parentIndex) { - return new A._ViewGoldenComponent39(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent40(parentView, parentIndex) { - return new A._ViewGoldenComponent40(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent41(parentView, parentIndex) { - return new A._ViewGoldenComponent41(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent42(parentView, parentIndex) { - return new A._ViewGoldenComponent42(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent43(parentView, parentIndex) { - return new A._ViewGoldenComponent43(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent44(parentView, parentIndex) { - return new A._ViewGoldenComponent44(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent45(parentView, parentIndex) { - return new A._ViewGoldenComponent45(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent46(parentView, parentIndex) { - return new A._ViewGoldenComponent46(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent47(parentView, parentIndex) { - return new A._ViewGoldenComponent47(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent48(parentView, parentIndex) { - return new A._ViewGoldenComponent48(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent49(parentView, parentIndex) { - return new A._ViewGoldenComponent49(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent50(parentView, parentIndex) { - return new A._ViewGoldenComponent50(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent51(parentView, parentIndex) { - return new A._ViewGoldenComponent51(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent52(parentView, parentIndex) { - return new A._ViewGoldenComponent52(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent53(parentView, parentIndex) { - return new A._ViewGoldenComponent53(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent54(parentView, parentIndex) { - return new A._ViewGoldenComponent54(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent55(parentView, parentIndex) { - return new A._ViewGoldenComponent55(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent56(parentView, parentIndex) { - return new A._ViewGoldenComponent56(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent57(parentView, parentIndex) { - return new A._ViewGoldenComponent57(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent58(parentView, parentIndex) { - return new A._ViewGoldenComponent58(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent59(parentView, parentIndex) { - return new A._ViewGoldenComponent59(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent60(parentView, parentIndex) { - return new A._ViewGoldenComponent60(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent61(parentView, parentIndex) { - return new A._ViewGoldenComponent61(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent62(parentView, parentIndex) { - return new A._ViewGoldenComponent62(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent63(parentView, parentIndex) { - return new A._ViewGoldenComponent63(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent64(parentView, parentIndex) { - return new A._ViewGoldenComponent64(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent65(parentView, parentIndex) { - return new A._ViewGoldenComponent65(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent66(parentView, parentIndex) { - return new A._ViewGoldenComponent66(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent67(parentView, parentIndex) { - return new A._ViewGoldenComponent67(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent68(parentView, parentIndex) { - return new A._ViewGoldenComponent68(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent69(parentView, parentIndex) { - return new A._ViewGoldenComponent69(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent70(parentView, parentIndex) { - return new A._ViewGoldenComponent70(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent71(parentView, parentIndex) { - return new A._ViewGoldenComponent71(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent72(parentView, parentIndex) { - return new A._ViewGoldenComponent72(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent73(parentView, parentIndex) { - return new A._ViewGoldenComponent73(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent74(parentView, parentIndex) { - return new A._ViewGoldenComponent74(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent75(parentView, parentIndex) { - return new A._ViewGoldenComponent75(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent76(parentView, parentIndex) { - return new A._ViewGoldenComponent76(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent77(parentView, parentIndex) { - return new A._ViewGoldenComponent77(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent78(parentView, parentIndex) { - return new A._ViewGoldenComponent78(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent79(parentView, parentIndex) { - return new A._ViewGoldenComponent79(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent80(parentView, parentIndex) { - return new A._ViewGoldenComponent80(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent81(parentView, parentIndex) { - return new A._ViewGoldenComponent81(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent82(parentView, parentIndex) { - return new A._ViewGoldenComponent82(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent83(parentView, parentIndex) { - return new A._ViewGoldenComponent83(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponent84(parentView, parentIndex) { - return new A._ViewGoldenComponent84(A._EmbeddedViewData__EmbeddedViewData(type$.legacy_RenderView._as(parentView), A._asIntS(parentIndex), type$.legacy_GoldenComponent)); - }, - viewFactory_GoldenComponentHost0() { - return new A._ViewGoldenComponentHost0(new A._HostViewData(B.ChangeDetectorState_0)); - }, - ViewChildComponent0$(parentView, parentIndex) { - var t2, - t1 = new A.ViewChildComponent0(A._ComponentViewData__ComponentViewData(parentView, parentIndex, B.ChangeDetectionCheckedState_2)), - styles = $.ViewChildComponent0__componentStyles; - if (styles == null) - styles = $.ViewChildComponent0__componentStyles = A._UnscopedComponentStyles$(B.List_empty0, null); - t1.__ComponentView_componentStyles_F = styles; - t2 = document.createElement("child"); - t1.__ComponentView_rootElement_F = type$.HtmlElement._as(t2); - return t1; - }, - ViewGoldenComponent0: function ViewGoldenComponent0(t0) { - var _ = this; - _._NgIf_14_9 = _._appEl_14 = _._NgIf_13_9 = _._appEl_13 = _._NgIf_12_9 = _._appEl_12 = _._NgIf_11_9 = _._appEl_11 = _._NgIf_10_9 = _._appEl_10 = _._NgIf_9_9 = _._appEl_9 = _._NgIf_8_9 = _._appEl_8 = _._NgIf_7_9 = _._appEl_7 = _._NgIf_6_9 = _._appEl_6 = _._NgIf_5_9 = _._appEl_5 = _._NgIf_4_9 = _._appEl_4 = _._NgIf_3_9 = _._appEl_3 = _._NgIf_2_9 = _._appEl_2 = _._NgIf_1_9 = _._appEl_1 = _._NgIf_0_9 = _._appEl_0 = null; - _._NgIf_29_9 = _._appEl_29 = _._NgIf_28_9 = _._appEl_28 = _._NgIf_27_9 = _._appEl_27 = _._NgIf_26_9 = _._appEl_26 = _._NgIf_25_9 = _._appEl_25 = _._NgIf_24_9 = _._appEl_24 = _._NgIf_23_9 = _._appEl_23 = _._NgIf_22_9 = _._appEl_22 = _._NgIf_21_9 = _._appEl_21 = _._NgIf_20_9 = _._appEl_20 = _._NgIf_19_9 = _._appEl_19 = _._NgIf_18_9 = _._appEl_18 = _._NgIf_17_9 = _._appEl_17 = _._NgIf_16_9 = _._appEl_16 = _._NgIf_15_9 = _._appEl_15 = null; - _._NgIf_44_9 = _._appEl_44 = _._NgIf_43_9 = _._appEl_43 = _._NgIf_42_9 = _._appEl_42 = _._NgIf_41_9 = _._appEl_41 = _._NgIf_40_9 = _._appEl_40 = _._NgIf_39_9 = _._appEl_39 = _._NgIf_38_9 = _._appEl_38 = _._NgIf_37_9 = _._appEl_37 = _._NgIf_36_9 = _._appEl_36 = _._NgIf_35_9 = _._appEl_35 = _._NgIf_34_9 = _._appEl_34 = _._NgIf_33_9 = _._appEl_33 = _._NgIf_32_9 = _._appEl_32 = _._NgIf_31_9 = _._appEl_31 = _._NgIf_30_9 = _._appEl_30 = null; - _._NgIf_59_9 = _._appEl_59 = _._NgIf_58_9 = _._appEl_58 = _._NgIf_57_9 = _._appEl_57 = _._NgIf_56_9 = _._appEl_56 = _._NgIf_55_9 = _._appEl_55 = _._NgIf_54_9 = _._appEl_54 = _._NgIf_53_9 = _._appEl_53 = _._NgIf_52_9 = _._appEl_52 = _._NgIf_51_9 = _._appEl_51 = _._NgIf_50_9 = _._appEl_50 = _._NgIf_49_9 = _._appEl_49 = _._NgIf_48_9 = _._appEl_48 = _._NgIf_47_9 = _._appEl_47 = _._NgIf_46_9 = _._appEl_46 = _._NgIf_45_9 = _._appEl_45 = null; - _._NgIf_74_9 = _._appEl_74 = _._NgIf_73_9 = _._appEl_73 = _._NgIf_72_9 = _._appEl_72 = _._NgIf_71_9 = _._appEl_71 = _._NgIf_70_9 = _._appEl_70 = _._NgIf_69_9 = _._appEl_69 = _._NgIf_68_9 = _._appEl_68 = _._NgIf_67_9 = _._appEl_67 = _._NgIf_66_9 = _._appEl_66 = _._NgIf_65_9 = _._appEl_65 = _._NgIf_64_9 = _._appEl_64 = _._NgIf_63_9 = _._appEl_63 = _._NgIf_62_9 = _._appEl_62 = _._NgIf_61_9 = _._appEl_61 = _._NgIf_60_9 = _._appEl_60 = null; - _._NgIf_83_9 = _._appEl_83 = _._NgIf_82_9 = _._appEl_82 = _._NgIf_81_9 = _._appEl_81 = _._NgIf_80_9 = _._appEl_80 = _._NgIf_79_9 = _._appEl_79 = _._NgIf_78_9 = _._appEl_78 = _._NgIf_77_9 = _._appEl_77 = _._NgIf_76_9 = _._appEl_76 = _._NgIf_75_9 = _._appEl_75 = null; - _.__ComponentView_rootElement_F = _.__ComponentView_componentStyles_F = _.__ComponentView_ctx_F = $; - _._component_view$_data = t0; - }, - _ViewGoldenComponent1: function _ViewGoldenComponent1(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent2: function _ViewGoldenComponent2(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent3: function _ViewGoldenComponent3(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent4: function _ViewGoldenComponent4(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent5: function _ViewGoldenComponent5(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent6: function _ViewGoldenComponent6(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent7: function _ViewGoldenComponent7(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent8: function _ViewGoldenComponent8(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent9: function _ViewGoldenComponent9(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent10: function _ViewGoldenComponent10(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent11: function _ViewGoldenComponent11(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent12: function _ViewGoldenComponent12(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent13: function _ViewGoldenComponent13(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent14: function _ViewGoldenComponent14(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent15: function _ViewGoldenComponent15(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent16: function _ViewGoldenComponent16(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent17: function _ViewGoldenComponent17(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent18: function _ViewGoldenComponent18(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent19: function _ViewGoldenComponent19(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent20: function _ViewGoldenComponent20(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent21: function _ViewGoldenComponent21(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent22: function _ViewGoldenComponent22(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent23: function _ViewGoldenComponent23(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent24: function _ViewGoldenComponent24(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent25: function _ViewGoldenComponent25(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent26: function _ViewGoldenComponent26(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent27: function _ViewGoldenComponent27(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent28: function _ViewGoldenComponent28(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent29: function _ViewGoldenComponent29(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent30: function _ViewGoldenComponent30(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent31: function _ViewGoldenComponent31(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent32: function _ViewGoldenComponent32(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent33: function _ViewGoldenComponent33(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent34: function _ViewGoldenComponent34(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent35: function _ViewGoldenComponent35(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent36: function _ViewGoldenComponent36(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent37: function _ViewGoldenComponent37(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent38: function _ViewGoldenComponent38(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent39: function _ViewGoldenComponent39(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent40: function _ViewGoldenComponent40(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent41: function _ViewGoldenComponent41(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent42: function _ViewGoldenComponent42(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent43: function _ViewGoldenComponent43(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent44: function _ViewGoldenComponent44(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent45: function _ViewGoldenComponent45(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent46: function _ViewGoldenComponent46(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent47: function _ViewGoldenComponent47(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent48: function _ViewGoldenComponent48(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent49: function _ViewGoldenComponent49(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent50: function _ViewGoldenComponent50(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent51: function _ViewGoldenComponent51(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent52: function _ViewGoldenComponent52(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent53: function _ViewGoldenComponent53(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent54: function _ViewGoldenComponent54(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent55: function _ViewGoldenComponent55(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent56: function _ViewGoldenComponent56(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent57: function _ViewGoldenComponent57(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent58: function _ViewGoldenComponent58(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent59: function _ViewGoldenComponent59(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent60: function _ViewGoldenComponent60(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent61: function _ViewGoldenComponent61(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent62: function _ViewGoldenComponent62(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent63: function _ViewGoldenComponent63(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent64: function _ViewGoldenComponent64(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent65: function _ViewGoldenComponent65(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent66: function _ViewGoldenComponent66(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent67: function _ViewGoldenComponent67(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent68: function _ViewGoldenComponent68(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent69: function _ViewGoldenComponent69(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent70: function _ViewGoldenComponent70(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent71: function _ViewGoldenComponent71(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent72: function _ViewGoldenComponent72(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent73: function _ViewGoldenComponent73(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent74: function _ViewGoldenComponent74(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent75: function _ViewGoldenComponent75(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent76: function _ViewGoldenComponent76(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent77: function _ViewGoldenComponent77(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent78: function _ViewGoldenComponent78(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent79: function _ViewGoldenComponent79(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent80: function _ViewGoldenComponent80(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent81: function _ViewGoldenComponent81(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent82: function _ViewGoldenComponent82(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent83: function _ViewGoldenComponent83(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponent84: function _ViewGoldenComponent84(t0) { - this._ChildComponent_0_5 = this._compView_0 = null; - this._embedded_view$_data = t0; - }, - _ViewGoldenComponentHost0: function _ViewGoldenComponentHost0(t0) { - var _ = this; - _.__HostView__injector_F = _.__HostView_componentView_F = _.__HostView_component_F = $; - _._data = t0; - }, - ViewChildComponent0: function ViewChildComponent0(t0) { - var _ = this; - _.__ComponentView_rootElement_F = _.__ComponentView_componentStyles_F = _.__ComponentView_ctx_F = $; - _._component_view$_data = t0; - }, - printString(string) { - if (typeof dartPrint == "function") { - dartPrint(string); - return; - } - if (typeof console == "object" && typeof console.log != "undefined") { - console.log(string); - return; - } - if (typeof window == "object") - return; - if (typeof print == "function") { - print(string); - return; - } - throw "Unable to print message: " + String(string); - }, - noProviderError(token) { - return new A.ArgumentError(false, null, null, "No provider found for " + token.toString$0(0)); - }, - appendAnchor($parent) { - var t1 = document; - return $parent.appendChild(t1.createComment("")); - }, - insertNodesBefore(nodes, $parent, sibling) { - var l, t1, i; - for (l = nodes.length, t1 = J.getInterceptor$x($parent), i = 0; i < l; ++i) { - if (!(i < nodes.length)) - return A.ioore(nodes, i); - t1.insertBefore$2($parent, nodes[i], sibling); - } - }, - appendNodes(nodes, $parent) { - var l, i; - for (l = nodes.length, i = 0; i < l; ++i) { - if (!(i < nodes.length)) - return A.ioore(nodes, i); - $parent.appendChild(nodes[i]); - } - }, - removeNodes(nodes) { - var l, i, t1, t2; - for (l = nodes.length, i = 0; i < l; ++i) { - if (!(i < nodes.length)) - return A.ioore(nodes, i); - t1 = nodes[i]; - t2 = t1.parentNode; - if (t2 != null) - t2.removeChild(t1); - } - }, - insertNodesAsSibling(nodes, sibling) { - var nextSibling, - parentOfSibling = sibling.parentNode; - if (nodes.length === 0 || parentOfSibling == null) - return; - nextSibling = sibling.nextSibling; - if (nextSibling == null) - A.appendNodes(nodes, parentOfSibling); - else - A.insertNodesBefore(nodes, parentOfSibling, nextSibling); - } - }, - J = { - makeDispatchRecord(interceptor, proto, extension, indexability) { - return {i: interceptor, p: proto, e: extension, x: indexability}; - }, - getNativeInterceptor(object) { - var proto, objectProto, $constructor, interceptor, t1, - record = object[init.dispatchPropertyName]; - if (record == null) - if ($.initNativeDispatchFlag == null) { - A.initNativeDispatch(); - record = object[init.dispatchPropertyName]; - } - if (record != null) { - proto = record.p; - if (false === proto) - return record.i; - if (true === proto) - return object; - objectProto = Object.getPrototypeOf(object); - if (proto === objectProto) - return record.i; - if (record.e === objectProto) - throw A.wrapException(A.UnimplementedError$("Return interceptor for " + A.S(proto(object, record)))); - } - $constructor = object.constructor; - if ($constructor == null) - interceptor = null; - else { - t1 = $._JS_INTEROP_INTERCEPTOR_TAG; - if (t1 == null) - t1 = $._JS_INTEROP_INTERCEPTOR_TAG = init.getIsolateTag("_$dart_js"); - interceptor = $constructor[t1]; - } - if (interceptor != null) - return interceptor; - interceptor = A.lookupAndCacheInterceptor(object); - if (interceptor != null) - return interceptor; - if (typeof object == "function") - return B.JavaScriptFunction_methods; - proto = Object.getPrototypeOf(object); - if (proto == null) - return B.PlainJavaScriptObject_methods; - if (proto === Object.prototype) - return B.PlainJavaScriptObject_methods; - if (typeof $constructor == "function") { - t1 = $._JS_INTEROP_INTERCEPTOR_TAG; - if (t1 == null) - t1 = $._JS_INTEROP_INTERCEPTOR_TAG = init.getIsolateTag("_$dart_js"); - Object.defineProperty($constructor, t1, {value: B.UnknownJavaScriptObject_methods, enumerable: false, writable: true, configurable: true}); - return B.UnknownJavaScriptObject_methods; - } - return B.UnknownJavaScriptObject_methods; - }, - JSArray_JSArray$fixed($length, $E) { - if ($length < 0 || $length > 4294967295) - throw A.wrapException(A.RangeError$range($length, 0, 4294967295, "length", null)); - return J.JSArray_JSArray$markFixed(new Array($length), $E); - }, - JSArray_JSArray$markFixed(allocation, $E) { - return J.JSArray_markFixedList(A._setArrayType(allocation, $E._eval$1("JSArray<0>")), $E); - }, - JSArray_markFixedList(list, $T) { - list.fixed$length = Array; - return list; - }, - getInterceptor$(receiver) { - if (typeof receiver == "number") { - if (Math.floor(receiver) == receiver) - return J.JSInt.prototype; - return J.JSNumNotInt.prototype; - } - if (typeof receiver == "string") - return J.JSString.prototype; - if (receiver == null) - return J.JSNull.prototype; - if (typeof receiver == "boolean") - return J.JSBool.prototype; - if (receiver.constructor == Array) - return J.JSArray.prototype; - if (typeof receiver != "object") { - if (typeof receiver == "function") - return J.JavaScriptFunction.prototype; - return receiver; - } - if (receiver instanceof A.Object) - return receiver; - return J.getNativeInterceptor(receiver); - }, - getInterceptor$asx(receiver) { - if (typeof receiver == "string") - return J.JSString.prototype; - if (receiver == null) - return receiver; - if (receiver.constructor == Array) - return J.JSArray.prototype; - if (typeof receiver != "object") { - if (typeof receiver == "function") - return J.JavaScriptFunction.prototype; - return receiver; - } - if (receiver instanceof A.Object) - return receiver; - return J.getNativeInterceptor(receiver); - }, - getInterceptor$ax(receiver) { - if (receiver == null) - return receiver; - if (receiver.constructor == Array) - return J.JSArray.prototype; - if (typeof receiver != "object") { - if (typeof receiver == "function") - return J.JavaScriptFunction.prototype; - return receiver; - } - if (receiver instanceof A.Object) - return receiver; - return J.getNativeInterceptor(receiver); - }, - getInterceptor$ns(receiver) { - if (typeof receiver == "number") - return J.JSNumber.prototype; - if (typeof receiver == "string") - return J.JSString.prototype; - if (receiver == null) - return receiver; - if (!(receiver instanceof A.Object)) - return J.UnknownJavaScriptObject.prototype; - return receiver; - }, - getInterceptor$x(receiver) { - if (receiver == null) - return receiver; - if (typeof receiver != "object") { - if (typeof receiver == "function") - return J.JavaScriptFunction.prototype; - return receiver; - } - if (receiver instanceof A.Object) - return receiver; - return J.getNativeInterceptor(receiver); - }, - getInterceptor$z(receiver) { - if (receiver == null) - return receiver; - if (!(receiver instanceof A.Object)) - return J.UnknownJavaScriptObject.prototype; - return receiver; - }, - get$hashCode$(receiver) { - return J.getInterceptor$(receiver).get$hashCode(receiver); - }, - get$iterator$ax(receiver) { - return J.getInterceptor$ax(receiver).get$iterator(receiver); - }, - get$length$asx(receiver) { - return J.getInterceptor$asx(receiver).get$length(receiver); - }, - get$parent$z(receiver) { - return J.getInterceptor$z(receiver).get$parent(receiver); - }, - $add$ns(receiver, a0) { - if (typeof receiver == "number" && typeof a0 == "number") - return receiver + a0; - return J.getInterceptor$ns(receiver).$add(receiver, a0); - }, - $eq$(receiver, a0) { - if (receiver == null) - return a0 == null; - if (typeof receiver != "object") - return a0 != null && receiver === a0; - return J.getInterceptor$(receiver).$eq(receiver, a0); - }, - _replaceChild$2$x(receiver, a0, a1) { - return J.getInterceptor$x(receiver)._replaceChild$2(receiver, a0, a1); - }, - remove$0$ax(receiver) { - return J.getInterceptor$ax(receiver).remove$0(receiver); - }, - replaceWith$1$x(receiver, a0) { - return J.getInterceptor$x(receiver).replaceWith$1(receiver, a0); - }, - toString$0$(receiver) { - return J.getInterceptor$(receiver).toString$0(receiver); - }, - Interceptor: function Interceptor() { - }, - JSBool: function JSBool() { - }, - JSNull: function JSNull() { - }, - JavaScriptObject: function JavaScriptObject() { - }, - LegacyJavaScriptObject: function LegacyJavaScriptObject() { - }, - PlainJavaScriptObject: function PlainJavaScriptObject() { - }, - UnknownJavaScriptObject: function UnknownJavaScriptObject() { - }, - JavaScriptFunction: function JavaScriptFunction() { - }, - JSArray: function JSArray(t0) { - this.$ti = t0; - }, - JSUnmodifiableArray: function JSUnmodifiableArray(t0) { - this.$ti = t0; - }, - ArrayIterator: function ArrayIterator(t0, t1, t2) { - var _ = this; - _._iterable = t0; - _._length = t1; - _._index = 0; - _._current = null; - _.$ti = t2; - }, - JSNumber: function JSNumber() { - }, - JSInt: function JSInt() { - }, - JSNumNotInt: function JSNumNotInt() { - }, - JSString: function JSString() { - } - }, - B = {}; - var holders = [A, J, B]; - var $ = {}; - A.JS_CONST.prototype = {}; - J.Interceptor.prototype = { - $eq(receiver, other) { - return receiver === other; - }, - get$hashCode(receiver) { - return A.Primitives_objectHashCode(receiver); - }, - toString$0(receiver) { - return "Instance of '" + A.S(A.Primitives_objectTypeName(receiver)) + "'"; - } - }; - J.JSBool.prototype = { - toString$0(receiver) { - return String(receiver); - }, - get$hashCode(receiver) { - return receiver ? 519018 : 218159; - }, - $isbool: 1 - }; - J.JSNull.prototype = { - $eq(receiver, other) { - return null == other; - }, - toString$0(receiver) { - return "null"; - }, - get$hashCode(receiver) { - return 0; - }, - $isNull: 1 - }; - J.JavaScriptObject.prototype = {}; - J.LegacyJavaScriptObject.prototype = { - get$hashCode(receiver) { - return 0; - }, - toString$0(receiver) { - return String(receiver); - } - }; - J.PlainJavaScriptObject.prototype = {}; - J.UnknownJavaScriptObject.prototype = {}; - J.JavaScriptFunction.prototype = { - toString$0(receiver) { - var dartClosure = receiver[$.$get$DART_CLOSURE_PROPERTY_NAME()]; - if (dartClosure == null) - return this.super$LegacyJavaScriptObject$toString(receiver); - return "JavaScript function for " + A.S(J.toString$0$(dartClosure)); - }, - $isFunction: 1 - }; - J.JSArray.prototype = { - add$1(receiver, value) { - A._arrayInstanceType(receiver)._precomputed1._as(value); - if (!!receiver.fixed$length) - A.throwExpression(A.UnsupportedError$("add")); - receiver.push(value); - }, - removeAt$1(receiver, index) { - if (!!receiver.fixed$length) - A.throwExpression(A.UnsupportedError$("removeAt")); - if (index < 0 || index >= receiver.length) - throw A.wrapException(A.RangeError$value(index, null)); - return receiver.splice(index, 1)[0]; - }, - insert$2(receiver, index, value) { - var t1; - A._arrayInstanceType(receiver)._precomputed1._as(value); - if (!!receiver.fixed$length) - A.throwExpression(A.UnsupportedError$("insert")); - t1 = receiver.length; - if (index > t1) - throw A.wrapException(A.RangeError$value(index, null)); - receiver.splice(index, 0, value); - }, - remove$1(receiver, element) { - var i; - if (!!receiver.fixed$length) - A.throwExpression(A.UnsupportedError$("remove")); - for (i = 0; i < receiver.length; ++i) - if (J.$eq$(receiver[i], element)) { - receiver.splice(i, 1); - return true; - } - return false; - }, - join$1(receiver, separator) { - var i, - list = A.List_List$filled(receiver.length, "", false, type$.String); - for (i = 0; i < receiver.length; ++i) - this.$indexSet(list, i, A.S(receiver[i])); - return list.join(separator); - }, - join$0($receiver) { - return this.join$1($receiver, ""); - }, - get$last(receiver) { - var t1 = receiver.length; - if (t1 > 0) - return receiver[t1 - 1]; - throw A.wrapException(A.IterableElementError_noElement()); - }, - toString$0(receiver) { - return A.IterableBase_iterableToFullString(receiver, "[", "]"); - }, - get$iterator(receiver) { - return new J.ArrayIterator(receiver, receiver.length, A._arrayInstanceType(receiver)._eval$1("ArrayIterator<1>")); - }, - get$hashCode(receiver) { - return A.Primitives_objectHashCode(receiver); - }, - get$length(receiver) { - return receiver.length; - }, - $indexSet(receiver, index, value) { - A._arrayInstanceType(receiver)._precomputed1._as(value); - if (!!receiver.immutable$list) - A.throwExpression(A.UnsupportedError$("indexed set")); - if (!(index >= 0 && index < receiver.length)) - throw A.wrapException(A.diagnoseIndexError(receiver, index)); - receiver[index] = value; - }, - $isIterable: 1, - $isList: 1 - }; - J.JSUnmodifiableArray.prototype = {}; - J.ArrayIterator.prototype = { - get$current() { - return this._current; - }, - moveNext$0() { - var t2, _this = this, - t1 = _this._iterable, - $length = t1.length; - if (_this._length !== $length) - throw A.wrapException(A.throwConcurrentModificationError(t1)); - t2 = _this._index; - if (t2 >= $length) { - _this.set$_current(null); - return false; - } - _this.set$_current(t1[t2]); - ++_this._index; - return true; - }, - set$_current(_current) { - this._current = this.$ti._eval$1("1?")._as(_current); - } - }; - J.JSNumber.prototype = { - toString$0(receiver) { - if (receiver === 0 && 1 / receiver < 0) - return "-0.0"; - else - return "" + receiver; - }, - get$hashCode(receiver) { - var absolute, floorLog2, factor, scaled, - intValue = receiver | 0; - if (receiver === intValue) - return intValue & 536870911; - absolute = Math.abs(receiver); - floorLog2 = Math.log(absolute) / 0.6931471805599453 | 0; - factor = Math.pow(2, floorLog2); - scaled = absolute < 1 ? absolute / factor : factor / absolute; - return ((scaled * 9007199254740992 | 0) + (scaled * 3542243181176521 | 0)) * 599197 + floorLog2 * 1259 & 536870911; - }, - $tdiv(receiver, other) { - if ((receiver | 0) === receiver) - if (other >= 1 || other < -1) - return receiver / other | 0; - return this._tdivSlow$1(receiver, other); - }, - _tdivFast$1(receiver, other) { - return (receiver | 0) === receiver ? receiver / other | 0 : this._tdivSlow$1(receiver, other); - }, - _tdivSlow$1(receiver, other) { - var quotient = receiver / other; - if (quotient >= -2147483648 && quotient <= 2147483647) - return quotient | 0; - if (quotient > 0) { - if (quotient !== 1 / 0) - return Math.floor(quotient); - } else if (quotient > -1 / 0) - return Math.ceil(quotient); - throw A.wrapException(A.UnsupportedError$("Result of truncating division is " + A.S(quotient) + ": " + A.S(receiver) + " ~/ " + other)); - }, - _shrOtherPositive$1(receiver, other) { - var t1; - if (receiver > 0) - t1 = this._shrBothPositive$1(receiver, other); - else { - t1 = other > 31 ? 31 : other; - t1 = receiver >> t1 >>> 0; - } - return t1; - }, - _shrBothPositive$1(receiver, other) { - return other > 31 ? 0 : receiver >>> other; - }, - $isnum: 1 - }; - J.JSInt.prototype = {$isint: 1}; - J.JSNumNotInt.prototype = {}; - J.JSString.prototype = { - $add(receiver, other) { - if (typeof other != "string") - throw A.wrapException(A.ArgumentError$value(other, null, null)); - return receiver + other; - }, - $mul(receiver, times) { - var s, result; - if (0 >= times) - return ""; - if (times === 1 || receiver.length === 0) - return receiver; - if (times !== times >>> 0) - throw A.wrapException(B.C_OutOfMemoryError); - for (s = receiver, result = ""; true;) { - if ((times & 1) === 1) - result = s + result; - times = times >>> 1; - if (times === 0) - break; - s += s; - } - return result; - }, - padLeft$2(receiver, width, padding) { - var delta = width - receiver.length; - if (delta <= 0) - return receiver; - return this.$mul(padding, delta) + receiver; - }, - toString$0(receiver) { - return receiver; - }, - get$hashCode(receiver) { - var t1, hash, i; - for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) { - hash = hash + receiver.charCodeAt(i) & 536870911; - hash = hash + ((hash & 524287) << 10) & 536870911; - hash ^= hash >> 6; - } - hash = hash + ((hash & 67108863) << 3) & 536870911; - hash ^= hash >> 11; - return hash + ((hash & 16383) << 15) & 536870911; - }, - get$length(receiver) { - return receiver.length; - }, - $isPattern: 1, - $isString: 1 - }; - A.LateError.prototype = { - toString$0(_) { - return "LateInitializationError: " + this._message; - } - }; - A.ReachabilityError.prototype = { - toString$0(_) { - return "ReachabilityError: " + this._message; - } - }; - A.NotNullableError.prototype = { - toString$0(_) { - return "Null is not a valid value for '" + this.__internal$_name + "' of type '" + A.createRuntimeType(this.$ti._precomputed1).toString$0(0) + "'"; - }, - $isTypeError: 1 - }; - A.EfficientLengthIterable.prototype = {}; - A.ListIterator.prototype = { - get$current() { - return this.__internal$_current; - }, - moveNext$0() { - var t3, _this = this, - t1 = _this.__internal$_iterable, - t2 = J.getInterceptor$asx(t1), - $length = t2.get$length(t1); - if (_this.__internal$_length !== $length) - throw A.wrapException(A.ConcurrentModificationError$(t1)); - t3 = _this.__internal$_index; - if (t3 >= $length) { - _this.set$__internal$_current(null); - return false; - } - _this.set$__internal$_current(t2.elementAt$1(t1, t3)); - ++_this.__internal$_index; - return true; - }, - set$__internal$_current(_current) { - this.__internal$_current = this.$ti._eval$1("1?")._as(_current); - } - }; - A.FixedLengthListMixin.prototype = {}; - A.TypeErrorDecoder.prototype = { - matchTypeError$1(message) { - var result, t1, _this = this, - match = new RegExp(_this._pattern).exec(message); - if (match == null) - return null; - result = Object.create(null); - t1 = _this._arguments; - if (t1 !== -1) - result.arguments = match[t1 + 1]; - t1 = _this._argumentsExpr; - if (t1 !== -1) - result.argumentsExpr = match[t1 + 1]; - t1 = _this._expr; - if (t1 !== -1) - result.expr = match[t1 + 1]; - t1 = _this._method; - if (t1 !== -1) - result.method = match[t1 + 1]; - t1 = _this._receiver; - if (t1 !== -1) - result.receiver = match[t1 + 1]; - return result; - } - }; - A.NullError.prototype = { - toString$0(_) { - var t1 = this._method; - if (t1 == null) - return "NoSuchMethodError: " + A.S(this.__js_helper$_message); - return "NoSuchMethodError: method not found: '" + t1 + "' on null"; - } - }; - A.JsNoSuchMethodError.prototype = { - toString$0(_) { - var t2, _this = this, - _s38_ = "NoSuchMethodError: method not found: '", - t1 = _this._method; - if (t1 == null) - return "NoSuchMethodError: " + A.S(_this.__js_helper$_message); - t2 = _this._receiver; - if (t2 == null) - return _s38_ + t1 + "' (" + A.S(_this.__js_helper$_message) + ")"; - return _s38_ + t1 + "' on '" + t2 + "' (" + A.S(_this.__js_helper$_message) + ")"; - } - }; - A.UnknownJsTypeError.prototype = { - toString$0(_) { - var t1 = this.__js_helper$_message; - return t1.length === 0 ? "Error" : "Error: " + t1; - } - }; - A.NullThrownFromJavaScriptException.prototype = { - toString$0(_) { - return "Throw of null ('" + (this._irritant === null ? "null" : "undefined") + "' from JavaScript)"; - } - }; - A.ExceptionAndStackTrace.prototype = {}; - A._StackTrace.prototype = { - toString$0(_) { - var trace, - t1 = this._trace; - if (t1 != null) - return t1; - t1 = this._exception; - trace = t1 !== null && typeof t1 === "object" ? t1.stack : null; - return this._trace = trace == null ? "" : trace; - }, - $isStackTrace: 1 - }; - A.Closure.prototype = { - toString$0(_) { - var $constructor = this.constructor, - $name = $constructor == null ? null : $constructor.name; - return "Closure '" + A.unminifyOrTag($name == null ? "unknown" : $name) + "'"; - }, - $isFunction: 1, - get$$call() { - return this; - }, - "call*": "call$1", - $requiredArgCount: 1, - $defaultValues: null - }; - A.Closure0Args.prototype = {"call*": "call$0", $requiredArgCount: 0}; - A.Closure2Args.prototype = {"call*": "call$2", $requiredArgCount: 2}; - A.TearOffClosure.prototype = {}; - A.StaticClosure.prototype = { - toString$0(_) { - var $name = this.$static_name; - if ($name == null) - return "Closure of unknown static method"; - return "Closure '" + A.unminifyOrTag($name) + "'"; - } - }; - A.BoundClosure.prototype = { - $eq(_, other) { - if (other == null) - return false; - if (this === other) - return true; - if (!(other instanceof A.BoundClosure)) - return false; - return this.$_target === other.$_target && this._receiver === other._receiver; - }, - get$hashCode(_) { - var receiverHashCode = A.objectHashCode(this._receiver), - t1 = A.Primitives_objectHashCode(this.$_target); - if (typeof receiverHashCode !== "number") - return receiverHashCode.$xor(); - return (receiverHashCode ^ t1) >>> 0; - }, - toString$0(_) { - return "Closure '" + A.S(this.$_name) + "' of " + ("Instance of '" + A.S(A.Primitives_objectTypeName(this._receiver)) + "'"); - } - }; - A.RuntimeError.prototype = { - toString$0(_) { - return "RuntimeError: " + this.message; - } - }; - A._AssertionError.prototype = { - toString$0(_) { - return "Assertion failed: " + A.Error_safeToString(this.message); - } - }; - A.JsLinkedHashMap.prototype = { - get$length(_) { - return this.__js_helper$_length; - }, - get$keys() { - return new A.LinkedHashMapKeyIterable(this, A._instanceType(this)._eval$1("LinkedHashMapKeyIterable<1>")); - }, - $index(_, key) { - var strings, cell, t1, nums, _null = null; - if (typeof key == "string") { - strings = this._strings; - if (strings == null) - return _null; - cell = strings[key]; - t1 = cell == null ? _null : cell.hashMapCellValue; - return t1; - } else if (typeof key == "number" && (key & 0x3fffffff) === key) { - nums = this._nums; - if (nums == null) - return _null; - cell = nums[key]; - t1 = cell == null ? _null : cell.hashMapCellValue; - return t1; - } else - return this.internalGet$1(key); - }, - internalGet$1(key) { - var bucket, index, - rest = this.__js_helper$_rest; - if (rest == null) - return null; - bucket = rest[this.internalComputeHashCode$1(key)]; - index = this.internalFindBucketIndex$2(bucket, key); - if (index < 0) - return null; - return bucket[index].hashMapCellValue; - }, - $indexSet(_, key, value) { - var strings, nums, _this = this, - t1 = A._instanceType(_this); - t1._precomputed1._as(key); - t1._rest[1]._as(value); - if (typeof key == "string") { - strings = _this._strings; - _this.__js_helper$_addHashTableEntry$3(strings == null ? _this._strings = _this._newHashTable$0() : strings, key, value); - } else if (typeof key == "number" && (key & 0x3fffffff) === key) { - nums = _this._nums; - _this.__js_helper$_addHashTableEntry$3(nums == null ? _this._nums = _this._newHashTable$0() : nums, key, value); - } else - _this.internalSet$2(key, value); - }, - internalSet$2(key, value) { - var rest, hash, bucket, index, _this = this, - t1 = A._instanceType(_this); - t1._precomputed1._as(key); - t1._rest[1]._as(value); - rest = _this.__js_helper$_rest; - if (rest == null) - rest = _this.__js_helper$_rest = _this._newHashTable$0(); - hash = _this.internalComputeHashCode$1(key); - bucket = rest[hash]; - if (bucket == null) - rest[hash] = [_this._newLinkedCell$2(key, value)]; - else { - index = _this.internalFindBucketIndex$2(bucket, key); - if (index >= 0) - bucket[index].hashMapCellValue = value; - else - bucket.push(_this._newLinkedCell$2(key, value)); - } - }, - forEach$1(_, action) { - var cell, modifications, _this = this; - A._instanceType(_this)._eval$1("~(1,2)")._as(action); - cell = _this._first; - modifications = _this._modifications; - for (; cell != null;) { - action.call$2(cell.hashMapCellKey, cell.hashMapCellValue); - if (modifications !== _this._modifications) - throw A.wrapException(A.ConcurrentModificationError$(_this)); - cell = cell._next; - } - }, - __js_helper$_addHashTableEntry$3(table, key, value) { - var cell, - t1 = A._instanceType(this); - t1._precomputed1._as(key); - t1._rest[1]._as(value); - cell = table[key]; - if (cell == null) - table[key] = this._newLinkedCell$2(key, value); - else - cell.hashMapCellValue = value; - }, - _modified$0() { - this._modifications = this._modifications + 1 & 1073741823; - }, - _newLinkedCell$2(key, value) { - var _this = this, - t1 = A._instanceType(_this), - cell = new A.LinkedHashMapCell(t1._precomputed1._as(key), t1._rest[1]._as(value)); - if (_this._first == null) - _this._first = _this._last = cell; - else { - t1 = _this._last; - t1.toString; - cell.__js_helper$_previous = t1; - _this._last = t1._next = cell; - } - ++_this.__js_helper$_length; - _this._modified$0(); - return cell; - }, - internalComputeHashCode$1(key) { - return J.get$hashCode$(key) & 0x3fffffff; - }, - internalFindBucketIndex$2(bucket, key) { - var $length, i; - if (bucket == null) - return -1; - $length = bucket.length; - for (i = 0; i < $length; ++i) - if (J.$eq$(bucket[i].hashMapCellKey, key)) - return i; - return -1; - }, - toString$0(_) { - return A.MapBase_mapToString(this); - }, - _newHashTable$0() { - var table = Object.create(null); - table[""] = table; - delete table[""]; - return table; - }, - $isLinkedHashMap: 1 - }; - A.LinkedHashMapCell.prototype = {}; - A.LinkedHashMapKeyIterable.prototype = { - get$length(_) { - return this._map.__js_helper$_length; - }, - get$iterator(_) { - var t1 = this._map, - t2 = new A.LinkedHashMapKeyIterator(t1, t1._modifications, this.$ti._eval$1("LinkedHashMapKeyIterator<1>")); - t2._cell = t1._first; - return t2; - } - }; - A.LinkedHashMapKeyIterator.prototype = { - get$current() { - return this.__js_helper$_current; - }, - moveNext$0() { - var cell, _this = this, - t1 = _this._map; - if (_this._modifications !== t1._modifications) - throw A.wrapException(A.ConcurrentModificationError$(t1)); - cell = _this._cell; - if (cell == null) { - _this.set$__js_helper$_current(null); - return false; - } else { - _this.set$__js_helper$_current(cell.hashMapCellKey); - _this._cell = cell._next; - return true; - } - }, - set$__js_helper$_current(_current) { - this.__js_helper$_current = this.$ti._eval$1("1?")._as(_current); - } - }; - A.initHooks_closure.prototype = { - call$1(o) { - return this.getTag(o); - }, - $signature: 14 - }; - A.initHooks_closure0.prototype = { - call$2(o, tag) { - return this.getUnknownTag(o, tag); - }, - $signature: 25 - }; - A.initHooks_closure1.prototype = { - call$1(tag) { - return this.prototypeForTag(A._asStringS(tag)); - }, - $signature: 15 - }; - A._Cell.prototype = { - _readLocal$0() { - var t1 = this._value; - if (t1 === this) - throw A.wrapException(new A.LateError("Local '" + this.__late_helper$_name + "' has not been initialized.")); - return t1; - }, - _readField$0() { - var t1 = this._value; - if (t1 === this) - throw A.wrapException(A.LateError$fieldNI(this.__late_helper$_name)); - return t1; - }, - set$finalLocalValue(v) { - var _this = this; - if (_this._value !== _this) - throw A.wrapException(new A.LateError("Local '" + _this.__late_helper$_name + "' has already been initialized.")); - _this._value = v; - } - }; - A.NativeTypedData.prototype = {}; - A.NativeTypedArray.prototype = { - get$length(receiver) { - return receiver.length; - }, - $isJavaScriptIndexingBehavior: 1 - }; - A.NativeTypedArrayOfInt.prototype = {$isIterable: 1, $isList: 1}; - A.NativeUint8List.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.prototype = {}; - A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {}; - A.Rti.prototype = { - _eval$1(recipe) { - return A._Universe_evalInEnvironment(init.typeUniverse, this, recipe); - }, - _bind$1(typeOrTuple) { - return A._Universe_bind(init.typeUniverse, this, typeOrTuple); - } - }; - A._FunctionParameters.prototype = {}; - A._Type.prototype = { - toString$0(_) { - return A._rtiToString(this._rti, null); - }, - $isType: 1 - }; - A._Error.prototype = { - toString$0(_) { - return this.__rti$_message; - } - }; - A._TypeError.prototype = {$isTypeError: 1}; - A._AsyncRun__initializeScheduleImmediate_internalCallback.prototype = { - call$1(_) { - var t1 = this._box_0, - f = t1.storedCallback; - t1.storedCallback = null; - f.call$0(); - }, - $signature: 4 - }; - A._AsyncRun__initializeScheduleImmediate_closure.prototype = { - call$1(callback) { - var t1, t2; - this._box_0.storedCallback = type$.void_Function._as(callback); - t1 = this.div; - t2 = this.span; - t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2); - }, - $signature: 26 - }; - A._AsyncRun__scheduleImmediateJsOverride_internalCallback.prototype = { - call$0() { - this.callback.call$0(); - }, - $signature: 2 - }; - A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback.prototype = { - call$0() { - this.callback.call$0(); - }, - $signature: 2 - }; - A._TimerImpl.prototype = { - _TimerImpl$2(milliseconds, callback) { - if (self.setTimeout != null) - this._handle = self.setTimeout(A.convertDartClosureToJS(new A._TimerImpl_internalCallback(this, callback), 0), milliseconds); - else - throw A.wrapException(A.UnsupportedError$("`setTimeout()` not found.")); - }, - _TimerImpl$periodic$2(milliseconds, callback) { - if (self.setTimeout != null) - this._handle = self.setInterval(A.convertDartClosureToJS(new A._TimerImpl$periodic_closure(this, milliseconds, Date.now(), callback), 0), milliseconds); - else - throw A.wrapException(A.UnsupportedError$("Periodic timer.")); - }, - $isTimer: 1 - }; - A._TimerImpl_internalCallback.prototype = { - call$0() { - var t1 = this.$this; - t1._handle = null; - t1._tick = 1; - this.callback.call$0(); - }, - $signature: 1 - }; - A._TimerImpl$periodic_closure.prototype = { - call$0() { - var duration, _this = this, - t1 = _this.$this, - tick = t1._tick + 1, - t2 = _this.milliseconds; - if (t2 > 0) { - duration = Date.now() - _this.start; - if (duration > (tick + 1) * t2) - tick = B.JSInt_methods.$tdiv(duration, t2); - } - t1._tick = tick; - _this.callback.call$1(t1); - }, - $signature: 2 - }; - A.AsyncError.prototype = { - toString$0(_) { - return A.S(this.error); - }, - $isError: 1, - get$stackTrace() { - return this.stackTrace; - } - }; - A._BroadcastStream.prototype = {}; - A._BroadcastSubscription.prototype = { - _onPause$0() { - }, - _onResume$0() { - }, - set$_async$_next(_next) { - this._async$_next = this.$ti._eval$1("_BroadcastSubscription<1>?")._as(_next); - }, - set$_previous(_previous) { - this._previous = this.$ti._eval$1("_BroadcastSubscription<1>?")._as(_previous); - } - }; - A._BroadcastStreamController.prototype = { - get$_mayAddEvent() { - return this._state < 4; - }, - _removeListener$1(subscription) { - var previous, next; - A._instanceType(this)._eval$1("_BroadcastSubscription<1>")._as(subscription); - previous = subscription._previous; - next = subscription._async$_next; - if (previous == null) - this.set$_firstSubscription(next); - else - previous.set$_async$_next(next); - if (next == null) - this.set$_lastSubscription(previous); - else - next.set$_previous(previous); - subscription.set$_previous(subscription); - subscription.set$_async$_next(subscription); - }, - _subscribe$4(onData, onError, onDone, cancelOnError) { - var t2, t3, t4, t5, t6, subscription, oldLast, _this = this, - t1 = A._instanceType(_this); - t1._eval$1("~(1)?")._as(onData); - type$.nullable_void_Function._as(onDone); - if ((_this._state & 4) !== 0) { - t1 = new A._DoneStreamSubscription($.Zone__current, onDone, t1._eval$1("_DoneStreamSubscription<1>")); - t1._schedule$0(); - return t1; - } - t2 = $.Zone__current; - t3 = cancelOnError ? 1 : 0; - t4 = A._BufferingStreamSubscription__registerDataHandler(t2, onData, t1._precomputed1); - t5 = A._BufferingStreamSubscription__registerErrorHandler(t2, onError); - t6 = onDone == null ? A.async___nullDoneHandler$closure() : onDone; - t1 = t1._eval$1("_BroadcastSubscription<1>"); - subscription = new A._BroadcastSubscription(_this, t4, t5, t2.registerCallback$1$1(t6, type$.void), t2, t3, t1); - subscription.set$_previous(subscription); - subscription.set$_async$_next(subscription); - t1._as(subscription); - subscription._eventState = _this._state & 1; - oldLast = _this._lastSubscription; - _this.set$_lastSubscription(subscription); - subscription.set$_async$_next(null); - subscription.set$_previous(oldLast); - if (oldLast == null) - _this.set$_firstSubscription(subscription); - else - oldLast.set$_async$_next(subscription); - if (_this._firstSubscription == _this._lastSubscription) - A._runGuarded(_this.onListen); - return subscription; - }, - _recordPause$1(subscription) { - A._instanceType(this)._eval$1("StreamSubscription<1>")._as(subscription); - }, - _recordResume$1(subscription) { - A._instanceType(this)._eval$1("StreamSubscription<1>")._as(subscription); - }, - _addEventError$0() { - if ((this._state & 4) !== 0) - return new A.StateError("Cannot add new events after calling close"); - return new A.StateError("Cannot add new events while doing an addStream"); - }, - add$1(_, data) { - var _this = this; - A._instanceType(_this)._precomputed1._as(data); - if (!_this.get$_mayAddEvent()) - throw A.wrapException(_this._addEventError$0()); - _this._sendData$1(data); - }, - _forEachListener$1(action) { - var t1, subscription, id, next, _this = this; - A._instanceType(_this)._eval$1("~(_BufferingStreamSubscription<1>)")._as(action); - t1 = _this._state; - if ((t1 & 2) !== 0) - throw A.wrapException(A.StateError$(string$.Cannot)); - subscription = _this._firstSubscription; - if (subscription == null) - return; - id = t1 & 1; - _this._state = t1 ^ 3; - for (; subscription != null;) { - t1 = subscription._eventState; - if ((t1 & 1) === id) { - subscription._eventState = t1 | 2; - action.call$1(subscription); - t1 = subscription._eventState ^= 1; - next = subscription._async$_next; - if ((t1 & 4) !== 0) - _this._removeListener$1(subscription); - subscription._eventState &= 4294967293; - subscription = next; - } else - subscription = subscription._async$_next; - } - _this._state &= 4294967293; - if (_this._firstSubscription == null) - _this._callOnCancel$0(); - }, - _callOnCancel$0() { - if ((this._state & 4) !== 0) { - var doneFuture = this._doneFuture; - if ((doneFuture._state & 30) === 0) - doneFuture._asyncComplete$1(null); - } - A._runGuarded(this.onCancel); - }, - set$_firstSubscription(_firstSubscription) { - this._firstSubscription = A._instanceType(this)._eval$1("_BroadcastSubscription<1>?")._as(_firstSubscription); - }, - set$_lastSubscription(_lastSubscription) { - this._lastSubscription = A._instanceType(this)._eval$1("_BroadcastSubscription<1>?")._as(_lastSubscription); - }, - $isStreamController: 1, - $is_StreamControllerLifecycle: 1, - $is_EventDispatch: 1 - }; - A._SyncBroadcastStreamController.prototype = { - get$_mayAddEvent() { - return A._BroadcastStreamController.prototype.get$_mayAddEvent.call(this) && (this._state & 2) === 0; - }, - _addEventError$0() { - if ((this._state & 2) !== 0) - return new A.StateError(string$.Cannot); - return this.super$_BroadcastStreamController$_addEventError(); - }, - _sendData$1(data) { - var t1, _this = this; - _this.$ti._precomputed1._as(data); - t1 = _this._firstSubscription; - if (t1 == null) - return; - if (t1 === _this._lastSubscription) { - _this._state |= 2; - t1._add$1(data); - _this._state &= 4294967293; - if (_this._firstSubscription == null) - _this._callOnCancel$0(); - return; - } - _this._forEachListener$1(new A._SyncBroadcastStreamController__sendData_closure(_this, data)); - } - }; - A._SyncBroadcastStreamController__sendData_closure.prototype = { - call$1(subscription) { - this.$this.$ti._eval$1("_BufferingStreamSubscription<1>")._as(subscription)._add$1(this.data); - }, - $signature() { - return this.$this.$ti._eval$1("~(_BufferingStreamSubscription<1>)"); - } - }; - A._Completer.prototype = { - completeError$2(error, stackTrace) { - var t1, replacement; - type$.nullable_StackTrace._as(stackTrace); - A.checkNotNullable(error, "error", type$.Object); - t1 = this.future; - if ((t1._state & 30) !== 0) - throw A.wrapException(A.StateError$("Future already completed")); - replacement = $.Zone__current.errorCallback$2(error, stackTrace); - if (replacement != null) { - error = replacement.error; - stackTrace = replacement.stackTrace; - } else if (stackTrace == null) - stackTrace = A.AsyncError_defaultStackTrace(error); - t1._asyncCompleteError$2(error, stackTrace); - } - }; - A._AsyncCompleter.prototype = { - complete$1(_, value) { - var t2, - t1 = this.$ti; - t1._eval$1("1/?")._as(value); - t2 = this.future; - if ((t2._state & 30) !== 0) - throw A.wrapException(A.StateError$("Future already completed")); - t2._asyncComplete$1(t1._eval$1("1/")._as(value)); - } - }; - A._FutureListener.prototype = { - matchesErrorTest$1(asyncError) { - if ((this.state & 15) !== 6) - return true; - return this.result._zone.runUnary$2$2(type$.bool_Function_Object._as(this.callback), asyncError.error, type$.bool, type$.Object); - }, - handleError$1(asyncError) { - var exception, _this = this, - errorCallback = _this.errorCallback, - result = null, - t1 = type$.dynamic, - t2 = type$.Object, - t3 = _this.result._zone; - if (type$.dynamic_Function_Object_StackTrace._is(errorCallback)) - result = t3.runBinary$3$3(errorCallback, asyncError.error, asyncError.stackTrace, t1, t2, type$.StackTrace); - else - result = t3.runUnary$2$2(type$.dynamic_Function_Object._as(errorCallback), asyncError.error, t1, t2); - try { - t1 = _this.$ti._eval$1("2/")._as(result); - return t1; - } catch (exception) { - if (type$.TypeError._is(A.unwrapException(exception))) { - if ((_this.state & 1) !== 0) - throw A.wrapException(A.ArgumentError$("The error handler of Future.then must return a value of the returned future's type", "onError")); - throw A.wrapException(A.ArgumentError$("The error handler of Future.catchError must return a value of the future's type", "onError")); - } else - throw exception; - } - } - }; - A._Future.prototype = { - then$1$2$onError(f, onError, $R) { - var currentZone, result, t2, - t1 = this.$ti; - t1._bind$1($R)._eval$1("1/(2)")._as(f); - currentZone = $.Zone__current; - if (currentZone === B.C__RootZone) { - if (onError != null && !type$.dynamic_Function_Object_StackTrace._is(onError) && !type$.dynamic_Function_Object._is(onError)) - throw A.wrapException(A.ArgumentError$value(onError, "onError", string$.Error_)); - } else { - f = currentZone.registerUnaryCallback$2$1(f, $R._eval$1("0/"), t1._precomputed1); - if (onError != null) - onError = A._registerErrorHandler(onError, currentZone); - } - result = new A._Future($.Zone__current, $R._eval$1("_Future<0>")); - t2 = onError == null ? 1 : 3; - this._addListener$1(new A._FutureListener(result, t2, f, onError, t1._eval$1("@<1>")._bind$1($R)._eval$1("_FutureListener<1,2>"))); - return result; - }, - then$1$1(f, $R) { - return this.then$1$2$onError(f, null, $R); - }, - _setErrorObject$1(error) { - this._state = this._state & 1 | 16; - this._resultOrListeners = error; - }, - _cloneResult$1(source) { - this._state = source._state & 30 | this._state & 1; - this._resultOrListeners = source._resultOrListeners; - }, - _addListener$1(listener) { - var source, _this = this, - t1 = _this._state; - if (t1 <= 3) { - listener._nextListener = type$.nullable__FutureListener_dynamic_dynamic._as(_this._resultOrListeners); - _this._resultOrListeners = listener; - } else { - if ((t1 & 4) !== 0) { - source = type$._Future_dynamic._as(_this._resultOrListeners); - if ((source._state & 24) === 0) { - source._addListener$1(listener); - return; - } - _this._cloneResult$1(source); - } - _this._zone.scheduleMicrotask$1(new A._Future__addListener_closure(_this, listener)); - } - }, - _prependListeners$1(listeners) { - var t1, existingListeners, next, cursor, next0, source, _this = this, _box_0 = {}; - _box_0.listeners = listeners; - if (listeners == null) - return; - t1 = _this._state; - if (t1 <= 3) { - existingListeners = type$.nullable__FutureListener_dynamic_dynamic._as(_this._resultOrListeners); - _this._resultOrListeners = listeners; - if (existingListeners != null) { - next = listeners._nextListener; - for (cursor = listeners; next != null; cursor = next, next = next0) - next0 = next._nextListener; - cursor._nextListener = existingListeners; - } - } else { - if ((t1 & 4) !== 0) { - source = type$._Future_dynamic._as(_this._resultOrListeners); - if ((source._state & 24) === 0) { - source._prependListeners$1(listeners); - return; - } - _this._cloneResult$1(source); - } - _box_0.listeners = _this._reverseListeners$1(listeners); - _this._zone.scheduleMicrotask$1(new A._Future__prependListeners_closure(_box_0, _this)); - } - }, - _removeListeners$0() { - var current = type$.nullable__FutureListener_dynamic_dynamic._as(this._resultOrListeners); - this._resultOrListeners = null; - return this._reverseListeners$1(current); - }, - _reverseListeners$1(listeners) { - var current, prev, next; - for (current = listeners, prev = null; current != null; prev = current, current = next) { - next = current._nextListener; - current._nextListener = prev; - } - return prev; - }, - _chainForeignFuture$1(source) { - var e, s, exception, _this = this; - _this._state ^= 2; - try { - source.then$1$2$onError(new A._Future__chainForeignFuture_closure(_this), new A._Future__chainForeignFuture_closure0(_this), type$.Null); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - A.scheduleMicrotask(new A._Future__chainForeignFuture_closure1(_this, e, s)); - } - }, - _complete$1(value) { - var listeners, _this = this, - t1 = _this.$ti; - t1._eval$1("1/")._as(value); - if (t1._eval$1("Future<1>")._is(value)) - if (t1._is(value)) - A._Future__chainCoreFuture(value, _this); - else - _this._chainForeignFuture$1(value); - else { - listeners = _this._removeListeners$0(); - t1._precomputed1._as(value); - _this._state = 8; - _this._resultOrListeners = value; - A._Future__propagateToListeners(_this, listeners); - } - }, - _completeWithValue$1(value) { - var listeners, _this = this; - _this.$ti._precomputed1._as(value); - listeners = _this._removeListeners$0(); - _this._state = 8; - _this._resultOrListeners = value; - A._Future__propagateToListeners(_this, listeners); - }, - _completeError$2(error, stackTrace) { - var listeners; - type$.StackTrace._as(stackTrace); - listeners = this._removeListeners$0(); - this._setErrorObject$1(A.AsyncError$(error, stackTrace)); - A._Future__propagateToListeners(this, listeners); - }, - _asyncComplete$1(value) { - var t1 = this.$ti; - t1._eval$1("1/")._as(value); - if (t1._eval$1("Future<1>")._is(value)) { - this._chainFuture$1(value); - return; - } - this._asyncCompleteWithValue$1(t1._precomputed1._as(value)); - }, - _asyncCompleteWithValue$1(value) { - var _this = this; - _this.$ti._precomputed1._as(value); - _this._state ^= 2; - _this._zone.scheduleMicrotask$1(new A._Future__asyncCompleteWithValue_closure(_this, value)); - }, - _chainFuture$1(value) { - var _this = this, - t1 = _this.$ti; - t1._eval$1("Future<1>")._as(value); - if (t1._is(value)) { - if ((value._state & 16) !== 0) { - _this._state ^= 2; - _this._zone.scheduleMicrotask$1(new A._Future__chainFuture_closure(_this, value)); - } else - A._Future__chainCoreFuture(value, _this); - return; - } - _this._chainForeignFuture$1(value); - }, - _asyncCompleteError$2(error, stackTrace) { - type$.StackTrace._as(stackTrace); - this._state ^= 2; - this._zone.scheduleMicrotask$1(new A._Future__asyncCompleteError_closure(this, error, stackTrace)); - }, - $isFuture: 1 - }; - A._Future__addListener_closure.prototype = { - call$0() { - A._Future__propagateToListeners(this.$this, this.listener); - }, - $signature: 1 - }; - A._Future__prependListeners_closure.prototype = { - call$0() { - A._Future__propagateToListeners(this.$this, this._box_0.listeners); - }, - $signature: 1 - }; - A._Future__chainForeignFuture_closure.prototype = { - call$1(value) { - var error, stackTrace, exception, - t1 = this.$this; - t1._state ^= 2; - try { - t1._completeWithValue$1(t1.$ti._precomputed1._as(value)); - } catch (exception) { - error = A.unwrapException(exception); - stackTrace = A.getTraceFromException(exception); - t1._completeError$2(error, stackTrace); - } - }, - $signature: 4 - }; - A._Future__chainForeignFuture_closure0.prototype = { - call$2(error, stackTrace) { - this.$this._completeError$2(error, type$.StackTrace._as(stackTrace)); - }, - $signature: 41 - }; - A._Future__chainForeignFuture_closure1.prototype = { - call$0() { - this.$this._completeError$2(this.e, this.s); - }, - $signature: 1 - }; - A._Future__asyncCompleteWithValue_closure.prototype = { - call$0() { - this.$this._completeWithValue$1(this.value); - }, - $signature: 1 - }; - A._Future__chainFuture_closure.prototype = { - call$0() { - A._Future__chainCoreFuture(this.value, this.$this); - }, - $signature: 1 - }; - A._Future__asyncCompleteError_closure.prototype = { - call$0() { - this.$this._completeError$2(this.error, this.stackTrace); - }, - $signature: 1 - }; - A._Future__propagateToListeners_handleWhenCompleteCallback.prototype = { - call$0() { - var e, s, t1, exception, t2, originalSource, _this = this, completeResult = null; - try { - t1 = _this._box_0.listener; - completeResult = t1.result._zone.run$1$1(type$.dynamic_Function._as(t1.callback), type$.dynamic); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - if (_this.hasError) { - t1 = type$.AsyncError._as(_this._box_1.source._resultOrListeners).error; - t2 = e; - t2 = t1 == null ? t2 == null : t1 === t2; - t1 = t2; - } else - t1 = false; - t2 = _this._box_0; - if (t1) - t2.listenerValueOrError = type$.AsyncError._as(_this._box_1.source._resultOrListeners); - else - t2.listenerValueOrError = A.AsyncError$(e, s); - t2.listenerHasError = true; - return; - } - if (completeResult instanceof A._Future && (completeResult._state & 24) !== 0) { - if ((completeResult._state & 16) !== 0) { - t1 = _this._box_0; - t1.listenerValueOrError = type$.AsyncError._as(completeResult._resultOrListeners); - t1.listenerHasError = true; - } - return; - } - if (type$.Future_dynamic._is(completeResult)) { - originalSource = _this._box_1.source; - t1 = _this._box_0; - t1.listenerValueOrError = completeResult.then$1$1(new A._Future__propagateToListeners_handleWhenCompleteCallback_closure(originalSource), type$.dynamic); - t1.listenerHasError = false; - } - }, - $signature: 1 - }; - A._Future__propagateToListeners_handleWhenCompleteCallback_closure.prototype = { - call$1(_) { - return this.originalSource; - }, - $signature: 9 - }; - A._Future__propagateToListeners_handleValueCallback.prototype = { - call$0() { - var e, s, t1, t2, t3, t4, t5, exception; - try { - t1 = this._box_0; - t2 = t1.listener; - t3 = t2.$ti; - t4 = t3._precomputed1; - t5 = t4._as(this.sourceResult); - t1.listenerValueOrError = t2.result._zone.runUnary$2$2(t3._eval$1("2/(1)")._as(t2.callback), t5, t3._eval$1("2/"), t4); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - t1 = this._box_0; - t1.listenerValueOrError = A.AsyncError$(e, s); - t1.listenerHasError = true; - } - }, - $signature: 1 - }; - A._Future__propagateToListeners_handleError.prototype = { - call$0() { - var asyncError, e, s, t1, exception, t2, t3, t4, _this = this; - try { - asyncError = type$.AsyncError._as(_this._box_1.source._resultOrListeners); - t1 = _this._box_0; - if (A.boolConversionCheck(t1.listener.matchesErrorTest$1(asyncError)) && t1.listener.errorCallback != null) { - t1.listenerValueOrError = t1.listener.handleError$1(asyncError); - t1.listenerHasError = false; - } - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - t1 = type$.AsyncError._as(_this._box_1.source._resultOrListeners); - t2 = t1.error; - t3 = e; - t4 = _this._box_0; - if (t2 == null ? t3 == null : t2 === t3) - t4.listenerValueOrError = t1; - else - t4.listenerValueOrError = A.AsyncError$(e, s); - t4.listenerHasError = true; - } - }, - $signature: 1 - }; - A._AsyncCallbackEntry.prototype = {}; - A.Stream.prototype = { - get$length(_) { - var t1 = {}, - future = new A._Future($.Zone__current, type$._Future_int); - t1.count = 0; - this.listen$4$cancelOnError$onDone$onError(new A.Stream_length_closure(t1, this), true, new A.Stream_length_closure0(t1, future), future.get$_completeError()); - return future; - } - }; - A.Stream_length_closure.prototype = { - call$1(_) { - A._instanceType(this.$this)._precomputed1._as(_); - ++this._box_0.count; - }, - $signature() { - return A._instanceType(this.$this)._eval$1("~(1)"); - } - }; - A.Stream_length_closure0.prototype = { - call$0() { - this.future._complete$1(this._box_0.count); - }, - $signature: 1 - }; - A._ControllerStream.prototype = { - get$hashCode(_) { - return (A.Primitives_objectHashCode(this._controller) ^ 892482866) >>> 0; - }, - $eq(_, other) { - if (other == null) - return false; - if (this === other) - return true; - return other instanceof A._ControllerStream && other._controller === this._controller; - } - }; - A._ControllerSubscription.prototype = { - _onPause$0() { - this._controller._recordPause$1(this); - }, - _onResume$0() { - this._controller._recordResume$1(this); - } - }; - A._BufferingStreamSubscription.prototype = { - _add$1(data) { - var t2, _this = this, - t1 = A._instanceType(_this); - t1._precomputed1._as(data); - t2 = _this._state; - if ((t2 & 8) !== 0) - return; - if (t2 < 32) - _this._sendData$1(data); - else - _this._addPending$1(new A._DelayedData(data, t1._eval$1("_DelayedData<1>"))); - }, - _onPause$0() { - }, - _onResume$0() { - }, - _addPending$1($event) { - var t1, _this = this, - pending = _this._pending; - if (pending == null) { - pending = new A._PendingEvents(A._instanceType(_this)._eval$1("_PendingEvents<1>")); - _this.set$_pending(pending); - } - pending.add$1(0, $event); - t1 = _this._state; - if ((t1 & 64) === 0) { - t1 = (t1 | 64) >>> 0; - _this._state = t1; - if (t1 < 128) - pending.schedule$1(_this); - } - }, - _sendData$1(data) { - var t2, _this = this, - t1 = A._instanceType(_this)._precomputed1; - t1._as(data); - t2 = _this._state; - _this._state = (t2 | 32) >>> 0; - _this._zone.runUnaryGuarded$1$2(_this._onData, data, t1); - _this._state = (_this._state & 4294967263) >>> 0; - _this._checkState$1((t2 & 4) !== 0); - }, - _checkState$1(wasInputPaused) { - var t2, isInputPaused, _this = this, - t1 = _this._state; - if ((t1 & 64) !== 0 && _this._pending.lastPendingEvent == null) { - t1 = _this._state = (t1 & 4294967231) >>> 0; - if ((t1 & 4) !== 0) - if (t1 < 128) { - t2 = _this._pending; - t2 = t2 == null ? null : t2.lastPendingEvent == null; - t2 = t2 !== false; - } else - t2 = false; - else - t2 = false; - if (t2) { - t1 = (t1 & 4294967291) >>> 0; - _this._state = t1; - } - } - for (; true; wasInputPaused = isInputPaused) { - if ((t1 & 8) !== 0) { - _this.set$_pending(null); - return; - } - isInputPaused = (t1 & 4) !== 0; - if (wasInputPaused === isInputPaused) - break; - _this._state = (t1 ^ 32) >>> 0; - if (isInputPaused) - _this._onPause$0(); - else - _this._onResume$0(); - t1 = (_this._state & 4294967263) >>> 0; - _this._state = t1; - } - if ((t1 & 64) !== 0 && t1 < 128) - _this._pending.schedule$1(_this); - }, - set$_pending(_pending) { - this._pending = A._instanceType(this)._eval$1("_PendingEvents<1>?")._as(_pending); - }, - $isStreamSubscription: 1, - $is_EventDispatch: 1 - }; - A._StreamImpl.prototype = { - listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDone, onError) { - var t1 = A._instanceType(this); - t1._eval$1("~(1)?")._as(onData); - type$.nullable_void_Function._as(onDone); - return this._controller._subscribe$4(t1._eval$1("~(1)?")._as(onData), onError, onDone, cancelOnError === true); - }, - listen$1(onData) { - return this.listen$4$cancelOnError$onDone$onError(onData, null, null, null); - } - }; - A._DelayedEvent.prototype = { - set$next(next) { - this.next = type$.nullable__DelayedEvent_dynamic._as(next); - }, - get$next() { - return this.next; - } - }; - A._DelayedData.prototype = { - perform$1(dispatch) { - this.$ti._eval$1("_EventDispatch<1>")._as(dispatch)._sendData$1(this.value); - } - }; - A._PendingEvents.prototype = { - schedule$1(dispatch) { - var t1, _this = this; - _this.$ti._eval$1("_EventDispatch<1>")._as(dispatch); - t1 = _this._state; - if (t1 === 1) - return; - if (t1 >= 1) { - _this._state = 1; - return; - } - A.scheduleMicrotask(new A._PendingEvents_schedule_closure(_this, dispatch)); - _this._state = 1; - }, - add$1(_, $event) { - var _this = this, - lastEvent = _this.lastPendingEvent; - if (lastEvent == null) - _this.firstPendingEvent = _this.lastPendingEvent = $event; - else { - lastEvent.set$next($event); - _this.lastPendingEvent = $event; - } - } - }; - A._PendingEvents_schedule_closure.prototype = { - call$0() { - var t2, $event, nextEvent, - t1 = this.$this, - oldState = t1._state; - t1._state = 0; - if (oldState === 3) - return; - t2 = t1.$ti._eval$1("_EventDispatch<1>")._as(this.dispatch); - $event = t1.firstPendingEvent; - nextEvent = $event.get$next(); - t1.firstPendingEvent = nextEvent; - if (nextEvent == null) - t1.lastPendingEvent = null; - $event.perform$1(t2); - }, - $signature: 1 - }; - A._DoneStreamSubscription.prototype = { - _schedule$0() { - var _this = this; - if ((_this._state & 2) !== 0) - return; - _this._zone.scheduleMicrotask$1(_this.get$_sendDone()); - _this._state = (_this._state | 2) >>> 0; - }, - _sendDone$0() { - var doneHandler, _this = this, - t1 = _this._state = (_this._state & 4294967293) >>> 0; - if (t1 >= 4) - return; - _this._state = (t1 | 1) >>> 0; - doneHandler = _this._onDone; - if (doneHandler != null) - _this._zone.runGuarded$1(doneHandler); - }, - $isStreamSubscription: 1 - }; - A._ZoneFunction.prototype = {}; - A._ZoneSpecification.prototype = {$isZoneSpecification: 1}; - A._ZoneDelegate.prototype = {$isZoneDelegate: 1}; - A._Zone.prototype = { - _processUncaughtError$3(zone, error, stackTrace) { - var implZone, handler, parentDelegate, parentZone, currentZone, e, s, implementation, t1, exception; - type$.StackTrace._as(stackTrace); - implementation = this.get$_async$_handleUncaughtError(); - implZone = implementation.zone; - if (implZone === B.C__RootZone) { - A._rootHandleError(error, stackTrace); - return; - } - handler = implementation.$function; - parentDelegate = implZone.get$_parentDelegate(); - t1 = J.get$parent$z(implZone); - t1.toString; - parentZone = t1; - currentZone = $.Zone__current; - try { - $.Zone__current = parentZone; - handler.call$5(implZone, parentDelegate, zone, error, stackTrace); - $.Zone__current = currentZone; - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - $.Zone__current = currentZone; - t1 = e; - t1 = (error == null ? t1 == null : error === t1) ? stackTrace : s; - parentZone._processUncaughtError$3(implZone, e, t1); - } - }, - $isZone: 1 - }; - A._CustomZone.prototype = { - get$_delegate() { - var t1 = this._delegateCache; - return t1 == null ? this._delegateCache = new A._ZoneDelegate(this) : t1; - }, - get$_parentDelegate() { - return this.parent.get$_delegate(); - }, - get$errorZone() { - return this._async$_handleUncaughtError.zone; - }, - runGuarded$1(f) { - var e, s, exception; - type$.void_Function._as(f); - try { - this.run$1$1(f, type$.void); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - this._processUncaughtError$3(this, e, type$.StackTrace._as(s)); - } - }, - runUnaryGuarded$1$2(f, arg, $T) { - var e, s, exception; - $T._eval$1("~(0)")._as(f); - $T._as(arg); - try { - this.runUnary$2$2(f, arg, type$.void, $T); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - this._processUncaughtError$3(this, e, type$.StackTrace._as(s)); - } - }, - bindCallback$1$1(f, $R) { - return new A._CustomZone_bindCallback_closure(this, this.registerCallback$1$1($R._eval$1("0()")._as(f), $R), $R); - }, - bindUnaryCallback$2$1(f, $R, $T) { - return new A._CustomZone_bindUnaryCallback_closure(this, this.registerUnaryCallback$2$1($R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f), $R, $T), $T, $R); - }, - bindCallbackGuarded$1(f) { - return new A._CustomZone_bindCallbackGuarded_closure(this, this.registerCallback$1$1(type$.void_Function._as(f), type$.void)); - }, - handleUncaughtError$2(error, stackTrace) { - this._processUncaughtError$3(this, error, type$.StackTrace._as(stackTrace)); - }, - fork$2$specification$zoneValues(specification, zoneValues) { - var implementation = this._fork, - t1 = implementation.zone; - return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, specification, zoneValues); - }, - run$1$1(f, $R) { - var implementation, t1; - $R._eval$1("0()")._as(f); - implementation = this._async$_run; - t1 = implementation.zone; - return implementation.$function.call$1$4(t1, t1.get$_parentDelegate(), this, f, $R); - }, - runUnary$2$2(f, arg, $R, $T) { - var implementation, t1; - $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f); - $T._as(arg); - implementation = this._async$_runUnary; - t1 = implementation.zone; - return implementation.$function.call$2$5(t1, t1.get$_parentDelegate(), this, f, arg, $R, $T); - }, - runBinary$3$3(f, arg1, arg2, $R, T1, T2) { - var implementation, t1; - $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); - T1._as(arg1); - T2._as(arg2); - implementation = this._async$_runBinary; - t1 = implementation.zone; - return implementation.$function.call$3$6(t1, t1.get$_parentDelegate(), this, f, arg1, arg2, $R, T1, T2); - }, - registerCallback$1$1(callback, $R) { - var implementation, t1; - $R._eval$1("0()")._as(callback); - implementation = this._registerCallback; - t1 = implementation.zone; - return implementation.$function.call$1$4(t1, t1.get$_parentDelegate(), this, callback, $R); - }, - registerUnaryCallback$2$1(callback, $R, $T) { - var implementation, t1; - $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(callback); - implementation = this._registerUnaryCallback; - t1 = implementation.zone; - return implementation.$function.call$2$4(t1, t1.get$_parentDelegate(), this, callback, $R, $T); - }, - registerBinaryCallback$3$1(callback, $R, T1, T2) { - var implementation, t1; - $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(callback); - implementation = this._registerBinaryCallback; - t1 = implementation.zone; - return implementation.$function.call$3$4(t1, t1.get$_parentDelegate(), this, callback, $R, T1, T2); - }, - errorCallback$2(error, stackTrace) { - var implementation, implementationZone; - A.checkNotNullable(error, "error", type$.Object); - implementation = this._errorCallback; - implementationZone = implementation.zone; - if (implementationZone === B.C__RootZone) - return null; - return implementation.$function.call$5(implementationZone, implementationZone.get$_parentDelegate(), this, error, stackTrace); - }, - scheduleMicrotask$1(f) { - var implementation, t1; - type$.void_Function._as(f); - implementation = this._scheduleMicrotask; - t1 = implementation.zone; - return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, f); - }, - set$_async$_run(_run) { - this._async$_run = type$._ZoneFunction_of_A_Function_A_extends_nullable_Object_4_Zone_and_ZoneDelegate_and_Zone_and_A_Function._as(_run); - }, - set$_async$_runUnary(_runUnary) { - this._async$_runUnary = type$._ZoneFunction_of_A_Function_A_extends_nullable_Object_and_B_extends_nullable_Object_5_Zone_and_ZoneDelegate_and_Zone_and_A_Function_B_and_B._as(_runUnary); - }, - set$_async$_runBinary(_runBinary) { - this._async$_runBinary = type$._ZoneFunction_of_A_Function_A_extends_nullable_Object_and_B_extends_nullable_Object_and_C_extends_nullable_Object_6_Zone_and_ZoneDelegate_and_Zone_and_A_Function_2_B_and_C_and_B_and_C._as(_runBinary); - }, - set$_scheduleMicrotask(_scheduleMicrotask) { - this._scheduleMicrotask = type$._ZoneFunction_of_void_Function_4_Zone_and_ZoneDelegate_and_Zone_and_void_Function._as(_scheduleMicrotask); - }, - set$_async$_createTimer(_createTimer) { - this._async$_createTimer = type$._ZoneFunction_of_Timer_Function_5_Zone_and_ZoneDelegate_and_Zone_and_Duration_and_void_Function._as(_createTimer); - }, - set$_async$_handleUncaughtError(_handleUncaughtError) { - this._async$_handleUncaughtError = type$._ZoneFunction_of_void_Function_Zone_ZoneDelegate_Zone_Object_StackTrace._as(_handleUncaughtError); - }, - get$_async$_run() { - return this._async$_run; - }, - get$_async$_runUnary() { - return this._async$_runUnary; - }, - get$_async$_runBinary() { - return this._async$_runBinary; - }, - get$_registerCallback() { - return this._registerCallback; - }, - get$_registerUnaryCallback() { - return this._registerUnaryCallback; - }, - get$_registerBinaryCallback() { - return this._registerBinaryCallback; - }, - get$_errorCallback() { - return this._errorCallback; - }, - get$_scheduleMicrotask() { - return this._scheduleMicrotask; - }, - get$_async$_createTimer() { - return this._async$_createTimer; - }, - get$_createPeriodicTimer() { - return this._createPeriodicTimer; - }, - get$_print() { - return this._print; - }, - get$_fork() { - return this._fork; - }, - get$_async$_handleUncaughtError() { - return this._async$_handleUncaughtError; - }, - get$parent(receiver) { - return this.parent; - }, - get$_async$_map() { - return this._async$_map; - } - }; - A._CustomZone_bindCallback_closure.prototype = { - call$0() { - return this.$this.run$1$1(this.registered, this.R); - }, - $signature() { - return this.R._eval$1("0()"); - } - }; - A._CustomZone_bindUnaryCallback_closure.prototype = { - call$1(arg) { - var _this = this, - t1 = _this.T; - return _this.$this.runUnary$2$2(_this.registered, t1._as(arg), _this.R, t1); - }, - $signature() { - return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)"); - } - }; - A._CustomZone_bindCallbackGuarded_closure.prototype = { - call$0() { - return this.$this.runGuarded$1(this.registered); - }, - $signature: 1 - }; - A._rootHandleError_closure.prototype = { - call$0() { - A.Error_throwWithStackTrace(this.error, this.stackTrace); - A.ReachabilityError$(string$._null_); - }, - $signature: 1 - }; - A._RootZone.prototype = { - get$_async$_run() { - return B._ZoneFunction__RootZone__rootRun; - }, - get$_async$_runUnary() { - return B._ZoneFunction__RootZone__rootRunUnary; - }, - get$_async$_runBinary() { - return B._ZoneFunction__RootZone__rootRunBinary; - }, - get$_registerCallback() { - return B._ZoneFunction__RootZone__rootRegisterCallback; - }, - get$_registerUnaryCallback() { - return B._ZoneFunction_Eeh; - }, - get$_registerBinaryCallback() { - return B._ZoneFunction_7G2; - }, - get$_errorCallback() { - return B._ZoneFunction__RootZone__rootErrorCallback; - }, - get$_scheduleMicrotask() { - return B._ZoneFunction__RootZone__rootScheduleMicrotask; - }, - get$_async$_createTimer() { - return B._ZoneFunction__RootZone__rootCreateTimer; - }, - get$_createPeriodicTimer() { - return B._ZoneFunction_3bB; - }, - get$_print() { - return B._ZoneFunction__RootZone__rootPrint; - }, - get$_fork() { - return B._ZoneFunction__RootZone__rootFork; - }, - get$_async$_handleUncaughtError() { - return B._ZoneFunction_NMc; - }, - get$parent(_) { - return null; - }, - get$_async$_map() { - return $.$get$_RootZone__rootMap(); - }, - get$_delegate() { - var t1 = $._RootZone__rootDelegate; - return t1 == null ? $._RootZone__rootDelegate = new A._ZoneDelegate(this) : t1; - }, - get$_parentDelegate() { - var t1 = $._RootZone__rootDelegate; - return t1 == null ? $._RootZone__rootDelegate = new A._ZoneDelegate(this) : t1; - }, - get$errorZone() { - return this; - }, - runGuarded$1(f) { - var e, s, exception; - type$.void_Function._as(f); - try { - if (B.C__RootZone === $.Zone__current) { - f.call$0(); - return; - } - A._rootRun(null, null, this, f, type$.void); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - A._rootHandleError(e, type$.StackTrace._as(s)); - } - }, - runUnaryGuarded$1$2(f, arg, $T) { - var e, s, exception; - $T._eval$1("~(0)")._as(f); - $T._as(arg); - try { - if (B.C__RootZone === $.Zone__current) { - f.call$1(arg); - return; - } - A._rootRunUnary(null, null, this, f, arg, type$.void, $T); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - A._rootHandleError(e, type$.StackTrace._as(s)); - } - }, - bindCallback$1$1(f, $R) { - return new A._RootZone_bindCallback_closure(this, $R._eval$1("0()")._as(f), $R); - }, - bindUnaryCallback$2$1(f, $R, $T) { - return new A._RootZone_bindUnaryCallback_closure(this, $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f), $T, $R); - }, - bindCallbackGuarded$1(f) { - return new A._RootZone_bindCallbackGuarded_closure(this, type$.void_Function._as(f)); - }, - handleUncaughtError$2(error, stackTrace) { - A._rootHandleError(error, type$.StackTrace._as(stackTrace)); - }, - fork$2$specification$zoneValues(specification, zoneValues) { - return A._rootFork(null, null, this, specification, zoneValues); - }, - run$1$1(f, $R) { - $R._eval$1("0()")._as(f); - if ($.Zone__current === B.C__RootZone) - return f.call$0(); - return A._rootRun(null, null, this, f, $R); - }, - runUnary$2$2(f, arg, $R, $T) { - $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f); - $T._as(arg); - if ($.Zone__current === B.C__RootZone) - return f.call$1(arg); - return A._rootRunUnary(null, null, this, f, arg, $R, $T); - }, - runBinary$3$3(f, arg1, arg2, $R, T1, T2) { - $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); - T1._as(arg1); - T2._as(arg2); - if ($.Zone__current === B.C__RootZone) - return f.call$2(arg1, arg2); - return A._rootRunBinary(null, null, this, f, arg1, arg2, $R, T1, T2); - }, - registerCallback$1$1(f, $R) { - return $R._eval$1("0()")._as(f); - }, - registerUnaryCallback$2$1(f, $R, $T) { - return $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f); - }, - registerBinaryCallback$3$1(f, $R, T1, T2) { - return $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); - }, - errorCallback$2(error, stackTrace) { - return null; - }, - scheduleMicrotask$1(f) { - A._rootScheduleMicrotask(null, null, this, type$.void_Function._as(f)); - } - }; - A._RootZone_bindCallback_closure.prototype = { - call$0() { - return this.$this.run$1$1(this.f, this.R); - }, - $signature() { - return this.R._eval$1("0()"); - } - }; - A._RootZone_bindUnaryCallback_closure.prototype = { - call$1(arg) { - var _this = this, - t1 = _this.T; - return _this.$this.runUnary$2$2(_this.f, t1._as(arg), _this.R, t1); - }, - $signature() { - return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)"); - } - }; - A._RootZone_bindCallbackGuarded_closure.prototype = { - call$0() { - return this.$this.runGuarded$1(this.f); - }, - $signature: 1 - }; - A._HashMap.prototype = { - get$length(_) { - return this._collection$_length; - }, - get$keys() { - return new A._HashMapKeyIterable(this, A._instanceType(this)._eval$1("_HashMapKeyIterable<1>")); - }, - addAll$1(_, other) { - A._instanceType(this)._eval$1("Map<1,2>")._as(other).forEach$1(0, new A._HashMap_addAll_closure(this)); - }, - $index(_, key) { - var strings, t1, nums; - if (typeof key == "string" && key !== "__proto__") { - strings = this._collection$_strings; - t1 = strings == null ? null : A._HashMap__getTableEntry(strings, key); - return t1; - } else if (typeof key == "number" && (key & 1073741823) === key) { - nums = this._collection$_nums; - t1 = nums == null ? null : A._HashMap__getTableEntry(nums, key); - return t1; - } else - return this._get$1(key); - }, - _get$1(key) { - var bucket, index, - rest = this._collection$_rest; - if (rest == null) - return null; - bucket = this._getBucket$2(rest, key); - index = this._findBucketIndex$2(bucket, key); - return index < 0 ? null : bucket[index + 1]; - }, - $indexSet(_, key, value) { - var strings, nums, _this = this, - t1 = A._instanceType(_this); - t1._precomputed1._as(key); - t1._rest[1]._as(value); - if (typeof key == "string" && key !== "__proto__") { - strings = _this._collection$_strings; - _this._addHashTableEntry$3(strings == null ? _this._collection$_strings = A._HashMap__newHashTable() : strings, key, value); - } else if (typeof key == "number" && (key & 1073741823) === key) { - nums = _this._collection$_nums; - _this._addHashTableEntry$3(nums == null ? _this._collection$_nums = A._HashMap__newHashTable() : nums, key, value); - } else - _this._set$2(key, value); - }, - _set$2(key, value) { - var rest, hash, bucket, index, _this = this, - t1 = A._instanceType(_this); - t1._precomputed1._as(key); - t1._rest[1]._as(value); - rest = _this._collection$_rest; - if (rest == null) - rest = _this._collection$_rest = A._HashMap__newHashTable(); - hash = _this._computeHashCode$1(key); - bucket = rest[hash]; - if (bucket == null) { - A._HashMap__setTableEntry(rest, hash, [key, value]); - ++_this._collection$_length; - _this._keys = null; - } else { - index = _this._findBucketIndex$2(bucket, key); - if (index >= 0) - bucket[index + 1] = value; - else { - bucket.push(key, value); - ++_this._collection$_length; - _this._keys = null; - } - } - }, - forEach$1(_, action) { - var keys, $length, i, key, _this = this, - t1 = A._instanceType(_this); - t1._eval$1("~(1,2)")._as(action); - keys = _this._computeKeys$0(); - for ($length = keys.length, t1 = t1._precomputed1, i = 0; i < $length; ++i) { - key = keys[i]; - action.call$2(t1._as(key), _this.$index(0, key)); - if (keys !== _this._keys) - throw A.wrapException(A.ConcurrentModificationError$(_this)); - } - }, - _computeKeys$0() { - var strings, names, entries, index, i, nums, rest, bucket, $length, i0, _this = this, - result = _this._keys; - if (result != null) - return result; - result = A.List_List$filled(_this._collection$_length, null, false, type$.dynamic); - strings = _this._collection$_strings; - if (strings != null) { - names = Object.getOwnPropertyNames(strings); - entries = names.length; - for (index = 0, i = 0; i < entries; ++i) { - result[index] = names[i]; - ++index; - } - } else - index = 0; - nums = _this._collection$_nums; - if (nums != null) { - names = Object.getOwnPropertyNames(nums); - entries = names.length; - for (i = 0; i < entries; ++i) { - result[index] = +names[i]; - ++index; - } - } - rest = _this._collection$_rest; - if (rest != null) { - names = Object.getOwnPropertyNames(rest); - entries = names.length; - for (i = 0; i < entries; ++i) { - bucket = rest[names[i]]; - $length = bucket.length; - for (i0 = 0; i0 < $length; i0 += 2) { - result[index] = bucket[i0]; - ++index; - } - } - } - return _this._keys = result; - }, - _addHashTableEntry$3(table, key, value) { - var t1 = A._instanceType(this); - t1._precomputed1._as(key); - t1._rest[1]._as(value); - if (table[key] == null) { - ++this._collection$_length; - this._keys = null; - } - A._HashMap__setTableEntry(table, key, value); - }, - _computeHashCode$1(key) { - return J.get$hashCode$(key) & 1073741823; - }, - _getBucket$2(table, key) { - return table[this._computeHashCode$1(key)]; - }, - _findBucketIndex$2(bucket, key) { - var $length, i; - if (bucket == null) - return -1; - $length = bucket.length; - for (i = 0; i < $length; i += 2) - if (J.$eq$(bucket[i], key)) - return i; - return -1; - } - }; - A._HashMap_addAll_closure.prototype = { - call$2(key, value) { - var t1 = this.$this, - t2 = A._instanceType(t1); - t1.$indexSet(0, t2._precomputed1._as(key), t2._rest[1]._as(value)); - }, - $signature() { - return A._instanceType(this.$this)._eval$1("~(1,2)"); - } - }; - A._IdentityHashMap.prototype = { - _computeHashCode$1(key) { - return A.objectHashCode(key) & 1073741823; - }, - _findBucketIndex$2(bucket, key) { - var $length, i, t1; - if (bucket == null) - return -1; - $length = bucket.length; - for (i = 0; i < $length; i += 2) { - t1 = bucket[i]; - if (t1 == null ? key == null : t1 === key) - return i; - } - return -1; - } - }; - A._HashMapKeyIterable.prototype = { - get$length(_) { - return this._collection$_map._collection$_length; - }, - get$iterator(_) { - var t1 = this._collection$_map; - return new A._HashMapKeyIterator(t1, t1._computeKeys$0(), this.$ti._eval$1("_HashMapKeyIterator<1>")); - } - }; - A._HashMapKeyIterator.prototype = { - get$current() { - return this._collection$_current; - }, - moveNext$0() { - var _this = this, - keys = _this._keys, - offset = _this._offset, - t1 = _this._collection$_map; - if (keys !== t1._keys) - throw A.wrapException(A.ConcurrentModificationError$(t1)); - else if (offset >= keys.length) { - _this.set$_collection$_current(null); - return false; - } else { - _this.set$_collection$_current(keys[offset]); - _this._offset = offset + 1; - return true; - } - }, - set$_collection$_current(_current) { - this._collection$_current = this.$ti._eval$1("1?")._as(_current); - } - }; - A.HashMap_HashMap$from_closure.prototype = { - call$2(k, v) { - this.result.$indexSet(0, this.K._as(k), this.V._as(v)); - }, - $signature: 10 - }; - A.ListMixin.prototype = { - get$iterator(receiver) { - return new A.ListIterator(receiver, receiver.length, A.instanceType(receiver)._eval$1("ListIterator")); - }, - elementAt$1(receiver, index) { - if (!(index >= 0 && index < receiver.length)) - return A.ioore(receiver, index); - return receiver[index]; - }, - toString$0(receiver) { - return A.IterableBase_iterableToFullString(receiver, "[", "]"); - } - }; - A.MapBase.prototype = {}; - A.MapBase_mapToString_closure.prototype = { - call$2(k, v) { - var t2, - t1 = this._box_0; - if (!t1.first) - this.result._contents += ", "; - t1.first = false; - t1 = this.result; - t2 = t1._contents += A.S(k); - t1._contents = t2 + ": "; - t1._contents += A.S(v); - }, - $signature: 11 - }; - A.MapMixin.prototype = { - forEach$1(_, action) { - var t1, key; - A._instanceType(this)._eval$1("~(1,2)")._as(action); - for (t1 = this.get$keys(), t1 = t1.get$iterator(t1); t1.moveNext$0();) { - key = t1.get$current(); - action.call$2(key, this.$index(0, key)); - } - }, - get$length(_) { - var t1 = this.get$keys(); - return t1.get$length(t1); - }, - toString$0(_) { - return A.MapBase_mapToString(this); - }, - $isMap: 1 - }; - A.Duration.prototype = { - $eq(_, other) { - if (other == null) - return false; - return other instanceof A.Duration && this._duration === other._duration; - }, - get$hashCode(_) { - return B.JSInt_methods.get$hashCode(this._duration); - }, - toString$0(_) { - var minutesPadding, seconds, secondsPadding, - microseconds = this._duration, - microseconds0 = microseconds % 3600000000, - minutes = B.JSInt_methods._tdivFast$1(microseconds0, 60000000); - microseconds0 %= 60000000; - minutesPadding = minutes < 10 ? "0" : ""; - seconds = B.JSInt_methods._tdivFast$1(microseconds0, 1000000); - secondsPadding = seconds < 10 ? "0" : ""; - return "" + Math.abs(microseconds / 3600000000 | 0) + ":" + minutesPadding + minutes + ":" + secondsPadding + seconds + "." + B.JSString_methods.padLeft$2(B.JSInt_methods.toString$0(microseconds0 % 1000000), 6, "0"); - } - }; - A._Enum.prototype = { - toString$0(_) { - return this._enumToString$0(); - } - }; - A.Error.prototype = { - get$stackTrace() { - return A.getTraceFromException(this.$thrownJsError); - } - }; - A.AssertionError.prototype = { - toString$0(_) { - var t1 = this.message; - if (t1 != null) - return "Assertion failed: " + A.Error_safeToString(t1); - return "Assertion failed"; - } - }; - A.TypeError.prototype = {}; - A.NullThrownError.prototype = { - toString$0(_) { - return "Throw of null."; - }, - $isTypeError: 1 - }; - A.ArgumentError.prototype = { - get$_errorName() { - return "Invalid argument" + (!this._hasValue ? "(s)" : ""); - }, - get$_errorExplanation() { - return ""; - }, - toString$0(_) { - var _this = this, - $name = _this.name, - nameString = $name == null ? "" : " (" + $name + ")", - message = _this.message, - messageString = message == null ? "" : ": " + message, - prefix = _this.get$_errorName() + nameString + messageString; - if (!_this._hasValue) - return prefix; - return prefix + _this.get$_errorExplanation() + ": " + A.Error_safeToString(_this.get$invalidValue()); - }, - get$invalidValue() { - return this.invalidValue; - } - }; - A.RangeError.prototype = { - get$invalidValue() { - return A._asNumQ(this.invalidValue); - }, - get$_errorName() { - return "RangeError"; - }, - get$_errorExplanation() { - var explanation, - start = this.start, - end = this.end; - if (start == null) - explanation = end != null ? ": Not less than or equal to " + A.S(end) : ""; - else if (end == null) - explanation = ": Not greater than or equal to " + A.S(start); - else if (end > start) - explanation = ": Not in inclusive range " + A.S(start) + ".." + A.S(end); - else - explanation = end < start ? ": Valid value range is empty" : ": Only valid value is " + A.S(start); - return explanation; - } - }; - A.IndexError.prototype = { - get$invalidValue() { - return A._asIntS(this.invalidValue); - }, - get$_errorName() { - return "RangeError"; - }, - get$_errorExplanation() { - var t1, - invalidValue = A._asIntS(this.invalidValue); - if (typeof invalidValue !== "number") - return invalidValue.$lt(); - if (invalidValue < 0) - return ": index must not be negative"; - t1 = this.length; - if (t1 === 0) - return ": no indices are valid"; - return ": index should be less than " + A.S(t1); - }, - get$length(receiver) { - return this.length; - } - }; - A.UnsupportedError.prototype = { - toString$0(_) { - return "Unsupported operation: " + this.message; - } - }; - A.UnimplementedError.prototype = { - toString$0(_) { - var message = this.message; - return message != null ? "UnimplementedError: " + message : "UnimplementedError"; - } - }; - A.StateError.prototype = { - toString$0(_) { - return "Bad state: " + this.message; - } - }; - A.ConcurrentModificationError.prototype = { - toString$0(_) { - var t1 = this.modifiedObject; - if (t1 == null) - return "Concurrent modification during iteration."; - return "Concurrent modification during iteration: " + A.Error_safeToString(t1) + "."; - } - }; - A.OutOfMemoryError.prototype = { - toString$0(_) { - return "Out of Memory"; - }, - get$stackTrace() { - return null; - }, - $isError: 1 - }; - A.StackOverflowError.prototype = { - toString$0(_) { - return "Stack Overflow"; - }, - get$stackTrace() { - return null; - }, - $isError: 1 - }; - A.CyclicInitializationError.prototype = { - toString$0(_) { - var variableName = this.variableName; - return variableName == null ? "Reading static variable during its initialization" : "Reading static variable '" + variableName + "' during its initialization"; - } - }; - A._Exception.prototype = { - toString$0(_) { - return "Exception: " + this.message; - } - }; - A.Iterable.prototype = { - get$length(_) { - var count, - it = this.get$iterator(this); - for (count = 0; it.moveNext$0();) - ++count; - return count; - }, - elementAt$1(_, index) { - var t1, elementIndex, element; - A.RangeError_checkNotNegative(index, "index"); - for (t1 = this.get$iterator(this), elementIndex = 0; t1.moveNext$0();) { - element = t1.get$current(); - if (index === elementIndex) - return element; - ++elementIndex; - } - throw A.wrapException(A.IndexError$withLength(index, elementIndex, this, "index")); - }, - toString$0(_) { - return A.IterableBase_iterableToShortString(this, "(", ")"); - } - }; - A.Null.prototype = { - get$hashCode(_) { - return A.Object.prototype.get$hashCode.call(this, this); - }, - toString$0(_) { - return "null"; - } - }; - A.Object.prototype = {$isObject: 1, - $eq(_, other) { - return this === other; - }, - get$hashCode(_) { - return A.Primitives_objectHashCode(this); - }, - toString$0(_) { - return "Instance of '" + A.S(A.Primitives_objectTypeName(this)) + "'"; - }, - toString() { - return this.toString$0(this); - } - }; - A._StringStackTrace.prototype = { - toString$0(_) { - return ""; - }, - $isStackTrace: 1 - }; - A.StringBuffer.prototype = { - get$length(_) { - return this._contents.length; - }, - toString$0(_) { - var t1 = this._contents; - return t1.charCodeAt(0) == 0 ? t1 : t1; - } - }; - A.HtmlElement.prototype = {$isHtmlElement: 1}; - A.AnchorElement.prototype = { - toString$0(receiver) { - return String(receiver); - } - }; - A.AreaElement.prototype = { - toString$0(receiver) { - return String(receiver); - } - }; - A.CharacterData.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.DomException.prototype = { - toString$0(receiver) { - return String(receiver); - } - }; - A.DomTokenList.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.Element.prototype = { - toString$0(receiver) { - return receiver.localName; - }, - $isElement: 1 - }; - A.EventTarget.prototype = {}; - A.FormElement.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.Node.prototype = { - remove$0(receiver) { - var t1 = receiver.parentNode; - if (t1 != null) - t1.removeChild(receiver); - }, - replaceWith$1(receiver, otherNode) { - var $parent, t1, exception; - try { - t1 = receiver.parentNode; - t1.toString; - $parent = t1; - J._replaceChild$2$x($parent, otherNode, receiver); - } catch (exception) { - } - return receiver; - }, - toString$0(receiver) { - var value = receiver.nodeValue; - return value == null ? this.super$Interceptor$toString(receiver) : value; - }, - set$text(receiver, value) { - receiver.textContent = value; - }, - insertBefore$2(receiver, node, child) { - return receiver.insertBefore(node, child); - }, - _replaceChild$2(receiver, node, child) { - return receiver.replaceChild(node, child); - }, - $isNode: 1 - }; - A.SelectElement.prototype = { - get$length(receiver) { - return receiver.length; - } - }; - A.StyleElement.prototype = {}; - A._JSRandom.prototype = { - nextInt$1(max) { - if (max <= 0 || max > 4294967296) - throw A.wrapException(A.RangeError$("max must be in range 0 < max \u2264 2^32, was " + max)); - return Math.random() * max >>> 0; - } - }; - A._createRandomAppId_char.prototype = { - call$0() { - return A.Primitives_stringFromCharCode(97 + this.random.nextInt$1(26)); - }, - $signature: 12 - }; - A.appInjector_closure.prototype = { - call$0() { - return this.applicationRef._readLocal$0(); - }, - $signature: 13 - }; - A.appInjector_closure0.prototype = { - call$0() { - return $.__appViewUtils._readField$0(); - }, - $signature: 8 - }; - A.appInjector_closure1.prototype = { - call$0() { - return this.ngZone; - }, - $signature: 6 - }; - A.appInjector_closure2.prototype = { - call$0() { - var t1 = this.userInjector; - this.applicationRef.set$finalLocalValue(A.ApplicationRef$_(this.ngZone, t1.$get$1(B.Type_ExceptionHandler_qBE), t1)); - t1.$get$1(type$.OpaqueToken_String._as(B.C_OpaqueToken)); - $.__appViewUtils._value = new A.AppViewUtils(); - return t1; - }, - $signature: 16 - }; - A._LazyInjector.prototype = { - injectFromSelfOptional$2(token, orElse) { - var result = this._providers.$index(0, token); - if (result == null) { - if (token === B.Type_Injector_aJC) - return this; - return orElse; - } - return result.call$0(); - } - }; - A.NgIf.prototype = { - set$ngIf(newCondition) { - var t1, t2, t3, view, views, refRenderNode, _this = this; - newCondition = newCondition === true; - t1 = _this._prevCondition; - if (t1 === newCondition) - return; - t1 = _this._viewContainer; - if (newCondition) { - t2 = _this._templateRef; - t1.toString; - t3 = t2._template_ref$_viewContainer; - view = t2._template_ref$_viewFactory.call$2(t3.parentView, t3.index); - view.build$0(); - t3 = t1.get$length(t1); - views = t1.nestedViews; - if (views == null) - views = A._setArrayType([], type$.JSArray_DynamicView); - B.JSArray_methods.insert$2(views, t3, view); - type$.List_DynamicView._as(views); - if (t3 > 0) { - t2 = t3 - 1; - if (!(t2 < views.length)) - return A.ioore(views, t2); - refRenderNode = views[t2].get$viewFragment().findLastDomNode$0(); - } else - refRenderNode = t1.nativeElement; - t1.set$nestedViews(views); - if (refRenderNode != null) - view.addRootNodesAfter$1(refRenderNode); - view.wasInserted$1(t1); - } else - t1.clear$0(0); - _this._prevCondition = newCondition; - } - }; - A.ApplicationRef.prototype = { - ApplicationRef$_$3(_ngZone, _exceptionHandler, _injector) { - var _this = this, - t1 = _this._ngZone, - t2 = t1._onUncaughtError; - t2 = new A._BroadcastStream(t2, A._instanceType(t2)._eval$1("_BroadcastStream<1>")).listen$1(new A.ApplicationRef$__closure(_this)); - _this.__ApplicationRef__onErrorSub_F !== $ && A.throwLateFieldAI("_onErrorSub"); - _this.__ApplicationRef__onErrorSub_F = t2; - t1 = t1._onMicrotaskEmpty; - t1 = new A._BroadcastStream(t1, A._instanceType(t1)._eval$1("_BroadcastStream<1>")).listen$1(new A.ApplicationRef$__closure0(_this)); - _this.__ApplicationRef__onMicroSub_F !== $ && A.throwLateFieldAI("_onMicroSub"); - _this.__ApplicationRef__onMicroSub_F = t1; - }, - bootstrap$1$1(componentFactory, $T) { - return this.run$1$1(new A.ApplicationRef_bootstrap_closure(this, $T._eval$1("ComponentFactory<0>")._as(componentFactory), $T), $T._eval$1("ComponentRef<0>")); - }, - _loadedRootComponent$2(component, node) { - var t1, t2, t3, t4, _this = this; - B.JSArray_methods.add$1(_this._rootComponents, component); - t1 = type$.void_Function._as(new A.ApplicationRef__loadedRootComponent_closure(_this, component, node)); - t2 = component._hostView; - t3 = t2._data; - t4 = t3._onDestroyCallbacks; - if (t4 == null) { - t4 = A._setArrayType([], type$.JSArray_of_void_Function); - t3.set$_onDestroyCallbacks(t4); - t3 = t4; - } else - t3 = t4; - B.JSArray_methods.add$1(t3, t1); - B.JSArray_methods.add$1(_this._changeDetectors, t2); - _this.tick$0(); - }, - _destroyedRootComponent$1(component) { - if (!B.JSArray_methods.remove$1(this._rootComponents, component)) - return; - B.JSArray_methods.remove$1(this._changeDetectors, component._hostView); - } - }; - A.ApplicationRef$__closure.prototype = { - call$1(e) { - var t1, t2; - type$.UncaughtError._as(e); - t1 = e.error; - t2 = e.stackTrace; - this.$this._exceptionHandler.toString; - window; - t2 = A.ExceptionHandler_exceptionToString(t1, t2, null); - if (typeof console != "undefined") - window.console.error(t2); - }, - $signature: 17 - }; - A.ApplicationRef$__closure0.prototype = { - call$1(_) { - var t1 = this.$this, - t2 = t1._ngZone; - t2.toString; - t1 = type$.void_Function._as(t1.get$tick()); - t2 = t2.__NgZone__innerZone_F; - t2 === $ && A.throwLateFieldNI("_innerZone"); - t2.runGuarded$1(t1); - }, - $signature: 18 - }; - A.ApplicationRef_bootstrap_closure.prototype = { - call$0() { - var hostView, t3, styles, t4, t5, t6, t7, component, existing, replacement, - _s11_ = "rootElement", - _s13_ = "componentView", - _s9_ = "component", - t1 = this.componentFactory, - t2 = this.$this; - type$.nullable_List_List_Object._as(null); - hostView = t1._viewFactory.call$0(); - hostView.toString; - type$.List_List_Object._as(B.List_empty); - hostView.__HostView__injector_F !== $ && A.throwLateFieldAI("_injector"); - hostView.__HostView__injector_F = t2._injector; - t3 = new A.ViewGoldenComponent0(A._ComponentViewData__ComponentViewData(hostView, 0, B.ChangeDetectionCheckedState_2)); - styles = $.ViewGoldenComponent0__componentStyles; - if (styles == null) - styles = $.ViewGoldenComponent0__componentStyles = A._UnscopedComponentStyles$(B.List_empty0, null); - t3.__ComponentView_componentStyles_F = styles; - t4 = document; - t5 = t4.createElement("golden"); - t3.__ComponentView_rootElement_F = type$.HtmlElement._as(t5); - t5 = A._instanceType(hostView); - t5._eval$1("ComponentView")._as(t3); - hostView.__HostView_componentView_F !== $ && A.throwLateFieldAI(_s13_); - hostView.set$__HostView_componentView_F(t3); - t3 = hostView.__HostView_componentView_F; - t3 === $ && A.throwLateFieldNI(_s13_); - t6 = t3.__ComponentView_rootElement_F; - t6 === $ && A.throwLateFieldNI(_s11_); - t7 = t5._eval$1("HostView.T")._as(new A.GoldenComponent()); - hostView.__HostView_component_F !== $ && A.throwLateFieldAI(_s9_); - hostView.set$__HostView_component_F(t7); - hostView.initRootNode$1(t6); - t6 = hostView.__HostView_component_F; - t6 === $ && A.throwLateFieldNI(_s9_); - t3.createAndProject$2(t6, B.List_empty); - t3 = t3.__ComponentView_rootElement_F; - t3 === $ && A.throwLateFieldNI(_s11_); - component = new A.ComponentRef(hostView, t3, t5._eval$1("ComponentRef")); - existing = t4.querySelector(t1.selector); - if (existing != null) { - if (t3.id.length === 0) - t3.id = existing.id; - J.replaceWith$1$x(existing, t3); - replacement = t3; - } else { - t4.body.appendChild(t3); - replacement = null; - } - new A._ElementInjector(hostView, 0).$get$2(B.Type_Testability_h8g, null); - t2._loadedRootComponent$2(component, replacement); - return component; - }, - $signature() { - return this.T._eval$1("ComponentRef<0>()"); - } - }; - A.ApplicationRef__loadedRootComponent_closure.prototype = { - call$0() { - this.$this._destroyedRootComponent$1(this.component); - var t1 = this.node; - if (t1 != null) - J.remove$0$ax(t1); - }, - $signature: 1 - }; - A.ChangeDetectionHost.prototype = { - tick$0() { - var e, s, exception, t1, _this = this; - try { - $.ChangeDetectionHost__current = _this; - _this._runningTick = true; - _this._runTick$0(); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - if (!_this._runTickGuarded$0()) { - t1 = type$.nullable_StackTrace._as(s); - _this._exceptionHandler.toString; - window; - t1 = A.ExceptionHandler_exceptionToString(e, t1, "DigestTick"); - if (typeof console != "undefined") - window.console.error(t1); - } - throw exception; - } finally { - $.ChangeDetectionHost__current = null; - _this._runningTick = false; - _this._resetViewErrors$0(); - } - }, - _runTick$0() { - var i, - detectors = this._changeDetectors, - $length = detectors.length; - for (i = 0; i < $length; ++i) { - if (!(i < detectors.length)) - return A.ioore(detectors, i); - detectors[i].detectChangesDeprecated$0(); - } - }, - _runTickGuarded$0() { - var i, detector, - detectors = this._changeDetectors, - $length = detectors.length; - for (i = 0; i < $length; ++i) { - if (!(i < detectors.length)) - return A.ioore(detectors, i); - detector = detectors[i]; - this._lastGuardedView = detector; - detector.detectChangesDeprecated$0(); - } - return this._checkForChangeDetectionError$0(); - }, - _checkForChangeDetectionError$0() { - var t1, _this = this, - lastGuardedView = _this._lastGuardedView; - if (lastGuardedView != null) { - t1 = _this._lastCaughtException; - _this.reportViewException$3(lastGuardedView, t1, _this._lastCaughtTrace); - _this._resetViewErrors$0(); - return true; - } - return false; - }, - _resetViewErrors$0() { - this._lastGuardedView = this._lastCaughtException = this._lastCaughtTrace = null; - }, - reportViewException$3(view, error, trace) { - var t1; - view.disableChangeDetection$0(); - this._exceptionHandler.toString; - window; - t1 = A.ExceptionHandler_exceptionToString(error, trace, null); - if (typeof console != "undefined") - window.console.error(t1); - }, - run$1$1(callback, $R) { - var t2, t3, t4, r, t1 = {}; - $R._eval$1("0/()")._as(callback); - t2 = new A._Future($.Zone__current, $R._eval$1("_Future<0>")); - t1.result = null; - t3 = type$.Null_Function._as(new A.ChangeDetectionHost_run_closure(t1, this, callback, new A._AsyncCompleter(t2, $R._eval$1("_AsyncCompleter<0>")), $R)); - t4 = this._ngZone.__NgZone__innerZone_F; - t4 === $ && A.throwLateFieldNI("_innerZone"); - t4.run$1$1(t3, type$.Null); - r = t1.result; - if (r == null) - return r; - else if (type$.Future_Object._is(r)) - return t2; - else - return r; - } - }; - A.ChangeDetectionHost_run_closure.prototype = { - call$0() { - var resultCast, e, s, result, t1, exception, _this = this; - try { - result = _this.callback.call$0(); - _this._box_0.result = result; - if (type$.Future_Object._is(result)) { - resultCast = result; - t1 = _this.completer; - resultCast.then$1$2$onError(new A.ChangeDetectionHost_run__closure(t1, _this.R), new A.ChangeDetectionHost_run__closure0(_this.$this, t1), type$.Null); - } - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - t1 = type$.nullable_StackTrace._as(s); - _this.$this._exceptionHandler.toString; - window; - t1 = A.ExceptionHandler_exceptionToString(e, t1, null); - if (typeof console != "undefined") - window.console.error(t1); - throw exception; - } - }, - $signature: 2 - }; - A.ChangeDetectionHost_run__closure.prototype = { - call$1(result) { - this.completer.complete$1(0, this.R._as(result)); - }, - $signature() { - return this.R._eval$1("Null(0)"); - } - }; - A.ChangeDetectionHost_run__closure0.prototype = { - call$2(e, s) { - var t1, - sCasted = s, - eCasted = e; - this.completer.completeError$2(eCasted, sCasted); - t1 = type$.nullable_StackTrace._as(sCasted); - this.$this._exceptionHandler.toString; - window; - t1 = A.ExceptionHandler_exceptionToString(eCasted, t1, null); - if (typeof console != "undefined") - window.console.error(t1); - }, - $signature: 19 - }; - A.ExceptionHandler.prototype = { - call$3(exception, stackTrace, reason) { - var t1; - A._asStringQ(reason); - window; - t1 = "EXCEPTION: " + A.S(exception) + "\n"; - if (stackTrace != null) - t1 = t1 + "STACKTRACE: \n" + (A.S(J.toString$0$(stackTrace)) + "\n"); - if (typeof console != "undefined") - window.console.error(t1.charCodeAt(0) == 0 ? t1 : t1); - }, - call$1(exception) { - return this.call$3(exception, null, null); - }, - call$2(exception, stackTrace) { - return this.call$3(exception, stackTrace, null); - } - }; - A.AppViewUtils.prototype = {}; - A.ComponentRef.prototype = {}; - A.ComponentFactory.prototype = {}; - A.ComponentLoader.prototype = {}; - A.ComponentStyles.prototype = { - _appendStyles$0() { - var target = A._setArrayType([], type$.JSArray_String), - styles = B.JSArray_methods.join$0(A._flattenStyles(this._styles, target, "")), - t1 = document, - styleElement = t1.createElement("style"); - B.StyleElement_methods.set$text(styleElement, styles); - t1.head.appendChild(styleElement); - } - }; - A._UnscopedComponentStyles.prototype = {}; - A.TemplateRef.prototype = {}; - A.ViewContainer.prototype = { - get$length(_) { - var nested = this.nestedViews; - return nested == null ? 0 : nested.length; - }, - detectChangesInNestedViews$0() { - var len, i, - nested = this.nestedViews; - if (nested == null) - return; - for (len = nested.length, i = 0; i < len; ++i) { - if (!(i < nested.length)) - return A.ioore(nested, i); - nested[i].detectChangesDeprecated$0(); - } - }, - destroyNestedViews$0() { - var len, i, - nested = this.nestedViews; - if (nested == null) - return; - for (len = nested.length, i = 0; i < len; ++i) { - if (!(i < nested.length)) - return A.ioore(nested, i); - nested[i].destroyInternalState$0(); - } - }, - clear$0(_) { - var i, nested, index, t1, _this = this; - for (i = _this.get$length(_this) - 1; i >= 0; --i) { - if (i === -1) { - nested = _this.nestedViews; - index = (nested == null ? 0 : nested.length) - 1; - } else - index = i; - t1 = _this.nestedViews; - t1.toString; - t1 = B.JSArray_methods.removeAt$1(t1, index); - t1.removeRootNodes$0(); - t1.wasRemoved$0(); - t1.destroyInternalState$0(); - } - }, - set$nestedViews(nestedViews) { - this.nestedViews = type$.nullable_List_DynamicView._as(nestedViews); - }, - $isViewContainerRef: 1 - }; - A.ViewFragment.prototype = { - findLastDomNode$0() { - var lastNode = B.JSArray_methods.get$last(this._nodesOrViewContainers); - return lastNode; - }, - flattenDomNodes$0() { - return A.ViewFragment__flattenDomNodes(A._setArrayType([], type$.JSArray_Node), this._nodesOrViewContainers); - } - }; - A.ComponentView.prototype = { - get$ctx() { - var t1 = this.__ComponentView_ctx_F; - t1 === $ && A.throwLateFieldNI("ctx"); - return t1; - }, - get$componentStyles() { - var t1 = this.__ComponentView_componentStyles_F; - t1 === $ && A.throwLateFieldNI("componentStyles"); - return t1; - }, - get$projectedNodes() { - var t1 = this._component_view$_data.___ComponentViewData_projectedNodes_F; - t1 === $ && A.throwLateFieldNI("projectedNodes"); - return t1; - }, - get$parentView() { - return this._component_view$_data.parentView; - }, - get$parentIndex() { - return this._component_view$_data.parentIndex; - }, - build$0() { - }, - create$1(component) { - this.createAndProject$2(A._instanceType(this)._eval$1("ComponentView.T")._as(component), B.List_empty); - }, - createAndProject$2(component, projectedNodes) { - var t1, _this = this; - A._instanceType(_this)._eval$1("ComponentView.T")._as(component); - type$.List_List_Object._as(projectedNodes); - _this.__ComponentView_ctx_F !== $ && A.throwLateFieldAI("ctx"); - _this.set$__ComponentView_ctx_F(component); - t1 = _this._component_view$_data; - t1.___ComponentViewData_projectedNodes_F !== $ && A.throwLateFieldAI("projectedNodes"); - t1.set$___ComponentViewData_projectedNodes_F(projectedNodes); - _this.build$0(); - }, - initViewRoot$0() { - var t1 = this.__ComponentView_rootElement_F; - t1 === $ && A.throwLateFieldNI("rootElement"); - this.__ComponentView_componentStyles_F === $ && A.throwLateFieldNI("componentStyles"); - return t1; - }, - destroyInternalState$0() { - var t1 = this._component_view$_data; - if (!t1._component_view$_destroyed) { - t1.destroy$0(); - this.destroyInternal$0(); - } - }, - detectChangesDeprecated$0() { - var t2, - t1 = this._component_view$_data; - if (t1._component_view$_shouldSkipChangeDetection) - return; - t2 = $.ChangeDetectionHost__current; - if ((t2 == null ? null : t2._lastGuardedView) != null) - this.detectCrash$0(); - else - this.detectChangesInternal$0(); - t2 = t1._changeDetectionMode; - if (t2 === B.ChangeDetectionCheckedState_0) - if (t2 !== B.ChangeDetectionCheckedState_1) { - t1._changeDetectionMode = B.ChangeDetectionCheckedState_1; - t1._updateShouldSkipChangeDetection$0(); - } - t1.set$changeDetectorState(B.ChangeDetectorState_1); - }, - disableChangeDetection$0() { - this._component_view$_data.set$changeDetectorState(B.ChangeDetectorState_2); - }, - set$__ComponentView_ctx_F(__ComponentView_ctx_F) { - this.__ComponentView_ctx_F = A._instanceType(this)._eval$1("ComponentView.T")._as(__ComponentView_ctx_F); - } - }; - A._ComponentViewData.prototype = { - set$changeDetectorState(state) { - if (this._component_view$_changeDetectorState !== state) { - this._component_view$_changeDetectorState = state; - this._updateShouldSkipChangeDetection$0(); - } - }, - destroy$0() { - this._component_view$_destroyed = true; - }, - _updateShouldSkipChangeDetection$0() { - var t1 = this._changeDetectionMode; - this._component_view$_shouldSkipChangeDetection = t1 === B.ChangeDetectionCheckedState_1 || t1 === B.ChangeDetectionCheckedState_3 || this._component_view$_changeDetectorState === B.ChangeDetectorState_2; - }, - set$___ComponentViewData_projectedNodes_F(___ComponentViewData_projectedNodes_F) { - this.___ComponentViewData_projectedNodes_F = type$.List_List_Object._as(___ComponentViewData_projectedNodes_F); - } - }; - A.EmbeddedView.prototype = { - get$ctx() { - return this._embedded_view$_data.ctx; - }, - get$componentStyles() { - return this._embedded_view$_data.componentStyles; - }, - get$parentView() { - return this._embedded_view$_data.parentView; - }, - get$parentIndex() { - return this._embedded_view$_data.parentIndex; - }, - get$projectedNodes() { - return this._embedded_view$_data.projectedNodes; - }, - get$viewFragment() { - return this._embedded_view$_data.viewFragment; - }, - initRootNode$1(rootNodeOrViewContainer) { - this.initRootNodesAndSubscriptions$2(A._setArrayType([rootNodeOrViewContainer], type$.JSArray_Object), null); - }, - initRootNodesAndSubscriptions$2(rootNodesOrViewContainers, subscriptions) { - var t1; - type$.nullable_List_StreamSubscription_void._as(subscriptions); - t1 = this._embedded_view$_data; - t1.viewFragment = A.ViewFragment_ViewFragment(rootNodesOrViewContainers); - t1.set$subscriptions(subscriptions); - }, - destroyInternalState$0() { - var t1 = this._embedded_view$_data; - if (!t1._embedded_view$_destroyed) { - t1.destroy$0(); - this.destroyInternal$0(); - } - }, - detectChangesDeprecated$0() { - var t2, - t1 = this._embedded_view$_data; - if (t1._embedded_view$_shouldSkipChangeDetection) - return; - t2 = $.ChangeDetectionHost__current; - if ((t2 == null ? null : t2._lastGuardedView) != null) - this.detectCrash$0(); - else - this.detectChangesInternal$0(); - t1.set$changeDetectorState(B.ChangeDetectorState_1); - }, - disableChangeDetection$0() { - this._embedded_view$_data.set$changeDetectorState(B.ChangeDetectorState_2); - }, - addRootNodesAfter$1(node) { - A.insertNodesAsSibling(this._embedded_view$_data.viewFragment.flattenDomNodes$0(), node); - $.domRootRendererIsDirty = true; - }, - removeRootNodes$0() { - var rootNodes = this._embedded_view$_data.viewFragment.flattenDomNodes$0(); - A.removeNodes(rootNodes); - $.domRootRendererIsDirty = $.domRootRendererIsDirty || rootNodes.length !== 0; - }, - wasInserted$1(viewContainer) { - }, - wasRemoved$0() { - }, - $isDynamicView: 1 - }; - A._EmbeddedViewData.prototype = { - set$changeDetectorState(state) { - if (this._embedded_view$_changeDetectorState !== state) { - this._embedded_view$_changeDetectorState = state; - this._embedded_view$_shouldSkipChangeDetection = state === B.ChangeDetectorState_2; - } - }, - destroy$0() { - var onDestroyCallbacks, $length, i; - this._embedded_view$_destroyed = true; - onDestroyCallbacks = this._embedded_view$_onDestroyCallbacks; - if (onDestroyCallbacks != null) - for ($length = onDestroyCallbacks.length, i = 0; i < $length; ++i) { - if (!(i < onDestroyCallbacks.length)) - return A.ioore(onDestroyCallbacks, i); - onDestroyCallbacks[i].call$0(); - } - }, - set$subscriptions(subscriptions) { - this.subscriptions = type$.nullable_List_StreamSubscription_void._as(subscriptions); - } - }; - A.HostView.prototype = { - get$viewFragment() { - return this._data.viewFragment; - }, - initRootNode$1(nodeOrViewContainer) { - this._data.viewFragment = A.ViewFragment_ViewFragment(A._setArrayType([nodeOrViewContainer], type$.JSArray_Object)); - }, - destroyInternalState$0() { - var t1 = this._data; - if (!t1._destroyed) { - t1.destroy$0(); - t1 = this.__HostView_componentView_F; - t1 === $ && A.throwLateFieldNI("componentView"); - t1.destroyInternalState$0(); - } - }, - detectChangesDeprecated$0() { - var t2, - t1 = this._data; - if (t1._shouldSkipChangeDetection) - return; - t2 = $.ChangeDetectionHost__current; - if ((t2 == null ? null : t2._lastGuardedView) != null) - this.detectCrash$0(); - else { - t2 = this.__HostView_componentView_F; - t2 === $ && A.throwLateFieldNI("componentView"); - t2.detectChangesDeprecated$0(); - } - t1.set$changeDetectorState(B.ChangeDetectorState_1); - }, - detectChangesInternal$0() { - var t1 = this.__HostView_componentView_F; - t1 === $ && A.throwLateFieldNI("componentView"); - t1.detectChangesDeprecated$0(); - }, - disableChangeDetection$0() { - this._data.set$changeDetectorState(B.ChangeDetectorState_2); - }, - injectFromAncestry$2(token, notFoundResult) { - var t1 = this.__HostView__injector_F; - t1 === $ && A.throwLateFieldNI("_injector"); - return t1.$get$2(token, notFoundResult); - }, - removeRootNodes$0() { - var rootNodes = this._data.viewFragment.flattenDomNodes$0(); - A.removeNodes(rootNodes); - $.domRootRendererIsDirty = $.domRootRendererIsDirty || rootNodes.length !== 0; - }, - wasRemoved$0() { - }, - set$__HostView_component_F(__HostView_component_F) { - this.__HostView_component_F = A._instanceType(this)._eval$1("HostView.T")._as(__HostView_component_F); - }, - set$__HostView_componentView_F(__HostView_componentView_F) { - this.__HostView_componentView_F = A._instanceType(this)._eval$1("ComponentView")._as(__HostView_componentView_F); - }, - $isDynamicView: 1 - }; - A._HostViewData.prototype = { - set$changeDetectorState(state) { - if (this._changeDetectorState !== state) { - this._changeDetectorState = state; - this._shouldSkipChangeDetection = state === B.ChangeDetectorState_2; - } - }, - destroy$0() { - var onDestroyCallbacks, $length, i; - this._destroyed = true; - onDestroyCallbacks = this._onDestroyCallbacks; - if (onDestroyCallbacks != null) - for ($length = onDestroyCallbacks.length, i = 0; i < $length; ++i) { - if (!(i < onDestroyCallbacks.length)) - return A.ioore(onDestroyCallbacks, i); - onDestroyCallbacks[i].call$0(); - } - }, - set$_onDestroyCallbacks(_onDestroyCallbacks) { - this._onDestroyCallbacks = type$.nullable_List_of_void_Function._as(_onDestroyCallbacks); - } - }; - A.RenderView.prototype = { - injectFromAncestry$2(token, notFoundResult) { - var t1 = this.get$parentView(); - t1.toString; - return t1.inject$3(token, this.get$parentIndex(), notFoundResult); - } - }; - A.View.prototype = { - destroyInternal$0() { - }, - detectChangesInternal$0() { - }, - detectCrash$0() { - var e, s, exception, current; - try { - this.detectChangesInternal$0(); - } catch (exception) { - e = A.unwrapException(exception); - s = A.getTraceFromException(exception); - current = $.ChangeDetectionHost__current; - current._lastGuardedView = this; - current._lastCaughtException = e; - current._lastCaughtTrace = s; - } - }, - inject$3(token, nodeIndex, notFoundResult) { - var result = this.injectFromAncestry$2(token, notFoundResult); - return result; - }, - $isChangeDetectorRef: 1 - }; - A._ElementInjector.prototype = { - provideUntyped$1$2(token, orElse) { - return this._view.inject$3(token, this._nodeIndex, orElse); - }, - provideUntyped$2(token, orElse) { - return this.provideUntyped$1$2(token, orElse, type$.dynamic); - }, - injectFromAncestryOptional$2(token, orElse) { - return A.throwExpression(A.UnimplementedError$(null)); - }, - injectFromSelfOptional$2(token, orElse) { - return A.throwExpression(A.UnimplementedError$(null)); - } - }; - A.NgZone.prototype = { - _ng_zone$_scheduleMicrotask$4($self, $parent, zone, fn) { - var t1, implementation, implZone, _this = this; - type$.void_Function._as(fn); - if (_this._pendingMicrotasks === 0) { - _this._hasPendingMicrotasks = true; - _this._checkStable$0(); - } - ++_this._pendingMicrotasks; - t1 = type$.dynamic_Function._as(new A.NgZone__scheduleMicrotask_safeMicrotask(_this, fn)); - implementation = $parent._delegationTarget.get$_scheduleMicrotask(); - implZone = implementation.zone; - implementation.$function.call$4(implZone, implZone.get$_parentDelegate(), zone, t1); - }, - _run$1$4($self, $parent, zone, fn, $R) { - var t1 = $R._eval$1("0()")._as(new A.NgZone__run_closure(this, $R._eval$1("0()")._as(fn), $R)), - implementation = $parent._delegationTarget.get$_async$_run(), - implZone = implementation.zone; - return implementation.$function.call$1$4(implZone, implZone.get$_parentDelegate(), zone, t1, $R); - }, - _run$4($self, $parent, zone, fn) { - return this._run$1$4($self, $parent, zone, fn, type$.dynamic); - }, - _runUnary$2$5($self, $parent, zone, fn, arg, $R, $T) { - var t1, implementation, implZone; - $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(fn); - $T._as(arg); - t1 = $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(new A.NgZone__runUnary_closure(this, fn, $T, $R)); - implementation = $parent._delegationTarget.get$_async$_runUnary(); - implZone = implementation.zone; - return implementation.$function.call$2$5(implZone, implZone.get$_parentDelegate(), zone, t1, arg, $R, $T); - }, - _runUnary$5($self, $parent, zone, fn, arg) { - return this._runUnary$2$5($self, $parent, zone, fn, arg, type$.dynamic, type$.dynamic); - }, - _runBinary$3$6($self, $parent, zone, fn, arg1, arg2, $R, T1, T2) { - var t1, implementation, implZone; - $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(fn); - T1._as(arg1); - T2._as(arg2); - t1 = $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(new A.NgZone__runBinary_closure(this, fn, T1, T2, $R)); - implementation = $parent._delegationTarget.get$_async$_runBinary(); - implZone = implementation.zone; - return implementation.$function.call$3$6(implZone, implZone.get$_parentDelegate(), zone, t1, arg1, arg2, $R, T1, T2); - }, - _onEnter$0() { - var _this = this; - ++_this._nesting; - if (_this._isStable) { - _this._isStable = false; - _this._isRunning = true; - _this._onTurnStart.add$1(0, null); - } - }, - _onLeave$0() { - --this._nesting; - this._checkStable$0(); - }, - _handleUncaughtError$5($self, $parent, zone, error, trace) { - this._onUncaughtError.add$1(0, new A.UncaughtError(error, type$.StackTrace._as(trace))); - }, - _createTimer$5($self, $parent, zone, duration, fn) { - var t1, wrappedTimer, t2, implementation, implZone; - type$.Duration._as(duration); - t1 = type$.void_Function; - t1._as(fn); - wrappedTimer = A._Cell$named("wrappedTimer"); - t2 = new A.NgZone__createTimer_onDone(this, wrappedTimer); - t1 = t1._as(new A.NgZone__createTimer_callback(fn, t2)); - implementation = $parent._delegationTarget.get$_async$_createTimer(); - implZone = implementation.zone; - wrappedTimer.set$finalLocalValue(new A._WrappedTimer(implementation.$function.call$5(implZone, implZone.get$_parentDelegate(), zone, duration, t1), t2)); - B.JSArray_methods.add$1(this._pendingTimers, wrappedTimer._readLocal$0()); - return wrappedTimer._readLocal$0(); - }, - _checkStable$0() { - var _this = this, - t1 = _this._nesting; - if (t1 === 0) - if (!_this._hasPendingMicrotasks && !_this._isStable) - try { - _this._nesting = t1 + 1; - _this._isRunning = false; - _this._onMicrotaskEmpty.add$1(0, null); - } finally { - --_this._nesting; - if (!_this._hasPendingMicrotasks) - try { - _this._outerZone.run$1$1(type$.Null_Function._as(new A.NgZone__checkStable_closure(_this)), type$.Null); - } finally { - _this._isStable = true; - } - } - } - }; - A.NgZone__scheduleMicrotask_safeMicrotask.prototype = { - call$0() { - try { - this.fn.call$0(); - } finally { - var t1 = this.$this; - if (--t1._pendingMicrotasks === 0) { - t1._hasPendingMicrotasks = false; - t1._checkStable$0(); - } - } - }, - $signature: 1 - }; - A.NgZone__run_closure.prototype = { - call$0() { - try { - this.$this._onEnter$0(); - var t1 = this.fn.call$0(); - return t1; - } finally { - this.$this._onLeave$0(); - } - }, - $signature() { - return this.R._eval$1("0()"); - } - }; - A.NgZone__runUnary_closure.prototype = { - call$1(arg) { - var t1, _this = this; - _this.T._as(arg); - try { - _this.$this._onEnter$0(); - t1 = _this.fn.call$1(arg); - return t1; - } finally { - _this.$this._onLeave$0(); - } - }, - $signature() { - return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)"); - } - }; - A.NgZone__runBinary_closure.prototype = { - call$2(arg1, arg2) { - var t1, _this = this; - _this.T1._as(arg1); - _this.T2._as(arg2); - try { - _this.$this._onEnter$0(); - t1 = _this.fn.call$2(arg1, arg2); - return t1; - } finally { - _this.$this._onLeave$0(); - } - }, - $signature() { - return this.R._eval$1("@<0>")._bind$1(this.T1)._bind$1(this.T2)._eval$1("1(2,3)"); - } - }; - A.NgZone__createTimer_onDone.prototype = { - call$0() { - B.JSArray_methods.remove$1(this.$this._pendingTimers, this.wrappedTimer._readLocal$0()); - }, - $signature: 1 - }; - A.NgZone__createTimer_callback.prototype = { - call$0() { - try { - this.fn.call$0(); - } finally { - this.onDone.call$0(); - } - }, - $signature: 1 - }; - A.NgZone__checkStable_closure.prototype = { - call$0() { - this.$this._onTurnDone.add$1(0, null); - }, - $signature: 2 - }; - A._WrappedTimer.prototype = {$isTimer: 1}; - A.UncaughtError.prototype = {}; - A.Injector.prototype = { - provideUntyped$1$2(token, orElse) { - var result = this.injectFromSelfOptional$2(token, orElse); - if (result == null ? orElse == null : result === orElse) - result = this.injectFromAncestryOptional$2(token, orElse); - return result; - }, - provideUntyped$2(token, orElse) { - return this.provideUntyped$1$2(token, orElse, type$.dynamic); - }, - $get$2(token, notFoundValue) { - var result = this.provideUntyped$2(token, notFoundValue); - if (result === B.C_Object) - throw A.wrapException(A.noProviderError(token)); - return result; - }, - $get$1(token) { - return this.$get$2(token, B.C_Object); - } - }; - A.HierarchicalInjector.prototype = { - injectFromAncestryOptional$2(token, orElse) { - return this._parent.provideUntyped$2(token, orElse); - } - }; - A._EmptyInjector.prototype = { - injectFromSelfOptional$2(token, orElse) { - return token === B.Type_Injector_aJC ? this : orElse; - }, - injectFromAncestryOptional$2(token, orElse) { - return orElse; - } - }; - A._MapInjector.prototype = { - injectFromSelfOptional$2(token, orElse) { - var result = this._injector$_providers.$index(0, token); - if (result == null) - result = token === B.Type_Injector_aJC ? this : orElse; - return result; - } - }; - A.ChangeDetectorState.prototype = { - _enumToString$0() { - return "ChangeDetectorState." + this._name; - } - }; - A.ChangeDetectionCheckedState.prototype = { - _enumToString$0() { - return "ChangeDetectionCheckedState." + this._name; - } - }; - A.OpaqueToken.prototype = { - toString$0(_) { - return this.super$Object$toString(0); - } - }; - A.JsTestability.prototype = {}; - A.JsTestabilityRegistry.prototype = {}; - A.GoldenComponent.prototype = {}; - A.ChildComponent.prototype = {}; - A.ViewGoldenComponent0.prototype = { - build$0() { - var _this = this, - parentRenderNode = _this.initViewRoot$0(), - t1 = _this._appEl_0 = new A.ViewContainer(0, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_0_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent1$closure()), t1); - t1 = _this._appEl_1 = new A.ViewContainer(1, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_1_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent2$closure()), t1); - t1 = _this._appEl_2 = new A.ViewContainer(2, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_2_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent3$closure()), t1); - t1 = _this._appEl_3 = new A.ViewContainer(3, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_3_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent4$closure()), t1); - t1 = _this._appEl_4 = new A.ViewContainer(4, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_4_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent5$closure()), t1); - t1 = _this._appEl_5 = new A.ViewContainer(5, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_5_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent6$closure()), t1); - t1 = _this._appEl_6 = new A.ViewContainer(6, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_6_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent7$closure()), t1); - t1 = _this._appEl_7 = new A.ViewContainer(7, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_7_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent8$closure()), t1); - t1 = _this._appEl_8 = new A.ViewContainer(8, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_8_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent9$closure()), t1); - t1 = _this._appEl_9 = new A.ViewContainer(9, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_9_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent10$closure()), t1); - t1 = _this._appEl_10 = new A.ViewContainer(10, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_10_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent11$closure()), t1); - t1 = _this._appEl_11 = new A.ViewContainer(11, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_11_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent12$closure()), t1); - t1 = _this._appEl_12 = new A.ViewContainer(12, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_12_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent13$closure()), t1); - t1 = _this._appEl_13 = new A.ViewContainer(13, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_13_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent14$closure()), t1); - t1 = _this._appEl_14 = new A.ViewContainer(14, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_14_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent15$closure()), t1); - t1 = _this._appEl_15 = new A.ViewContainer(15, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_15_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent16$closure()), t1); - t1 = _this._appEl_16 = new A.ViewContainer(16, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_16_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent17$closure()), t1); - t1 = _this._appEl_17 = new A.ViewContainer(17, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_17_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent18$closure()), t1); - t1 = _this._appEl_18 = new A.ViewContainer(18, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_18_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent19$closure()), t1); - t1 = _this._appEl_19 = new A.ViewContainer(19, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_19_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent20$closure()), t1); - t1 = _this._appEl_20 = new A.ViewContainer(20, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_20_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent21$closure()), t1); - t1 = _this._appEl_21 = new A.ViewContainer(21, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_21_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent22$closure()), t1); - t1 = _this._appEl_22 = new A.ViewContainer(22, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_22_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent23$closure()), t1); - t1 = _this._appEl_23 = new A.ViewContainer(23, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_23_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent24$closure()), t1); - t1 = _this._appEl_24 = new A.ViewContainer(24, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_24_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent25$closure()), t1); - t1 = _this._appEl_25 = new A.ViewContainer(25, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_25_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent26$closure()), t1); - t1 = _this._appEl_26 = new A.ViewContainer(26, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_26_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent27$closure()), t1); - t1 = _this._appEl_27 = new A.ViewContainer(27, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_27_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent28$closure()), t1); - t1 = _this._appEl_28 = new A.ViewContainer(28, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_28_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent29$closure()), t1); - t1 = _this._appEl_29 = new A.ViewContainer(29, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_29_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent30$closure()), t1); - t1 = _this._appEl_30 = new A.ViewContainer(30, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_30_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent31$closure()), t1); - t1 = _this._appEl_31 = new A.ViewContainer(31, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_31_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent32$closure()), t1); - t1 = _this._appEl_32 = new A.ViewContainer(32, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_32_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent33$closure()), t1); - t1 = _this._appEl_33 = new A.ViewContainer(33, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_33_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent34$closure()), t1); - t1 = _this._appEl_34 = new A.ViewContainer(34, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_34_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent35$closure()), t1); - t1 = _this._appEl_35 = new A.ViewContainer(35, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_35_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent36$closure()), t1); - t1 = _this._appEl_36 = new A.ViewContainer(36, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_36_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent37$closure()), t1); - t1 = _this._appEl_37 = new A.ViewContainer(37, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_37_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent38$closure()), t1); - t1 = _this._appEl_38 = new A.ViewContainer(38, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_38_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent39$closure()), t1); - t1 = _this._appEl_39 = new A.ViewContainer(39, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_39_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent40$closure()), t1); - t1 = _this._appEl_40 = new A.ViewContainer(40, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_40_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent41$closure()), t1); - t1 = _this._appEl_41 = new A.ViewContainer(41, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_41_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent42$closure()), t1); - t1 = _this._appEl_42 = new A.ViewContainer(42, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_42_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent43$closure()), t1); - t1 = _this._appEl_43 = new A.ViewContainer(43, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_43_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent44$closure()), t1); - t1 = _this._appEl_44 = new A.ViewContainer(44, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_44_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent45$closure()), t1); - t1 = _this._appEl_45 = new A.ViewContainer(45, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_45_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent46$closure()), t1); - t1 = _this._appEl_46 = new A.ViewContainer(46, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_46_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent47$closure()), t1); - t1 = _this._appEl_47 = new A.ViewContainer(47, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_47_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent48$closure()), t1); - t1 = _this._appEl_48 = new A.ViewContainer(48, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_48_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent49$closure()), t1); - t1 = _this._appEl_49 = new A.ViewContainer(49, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_49_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent50$closure()), t1); - t1 = _this._appEl_50 = new A.ViewContainer(50, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_50_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent51$closure()), t1); - t1 = _this._appEl_51 = new A.ViewContainer(51, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_51_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent52$closure()), t1); - t1 = _this._appEl_52 = new A.ViewContainer(52, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_52_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent53$closure()), t1); - t1 = _this._appEl_53 = new A.ViewContainer(53, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_53_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent54$closure()), t1); - t1 = _this._appEl_54 = new A.ViewContainer(54, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_54_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent55$closure()), t1); - t1 = _this._appEl_55 = new A.ViewContainer(55, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_55_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent56$closure()), t1); - t1 = _this._appEl_56 = new A.ViewContainer(56, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_56_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent57$closure()), t1); - t1 = _this._appEl_57 = new A.ViewContainer(57, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_57_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent58$closure()), t1); - t1 = _this._appEl_58 = new A.ViewContainer(58, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_58_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent59$closure()), t1); - t1 = _this._appEl_59 = new A.ViewContainer(59, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_59_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent60$closure()), t1); - t1 = _this._appEl_60 = new A.ViewContainer(60, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_60_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent61$closure()), t1); - t1 = _this._appEl_61 = new A.ViewContainer(61, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_61_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent62$closure()), t1); - t1 = _this._appEl_62 = new A.ViewContainer(62, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_62_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent63$closure()), t1); - t1 = _this._appEl_63 = new A.ViewContainer(63, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_63_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent64$closure()), t1); - t1 = _this._appEl_64 = new A.ViewContainer(64, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_64_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent65$closure()), t1); - t1 = _this._appEl_65 = new A.ViewContainer(65, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_65_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent66$closure()), t1); - t1 = _this._appEl_66 = new A.ViewContainer(66, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_66_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent67$closure()), t1); - t1 = _this._appEl_67 = new A.ViewContainer(67, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_67_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent68$closure()), t1); - t1 = _this._appEl_68 = new A.ViewContainer(68, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_68_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent69$closure()), t1); - t1 = _this._appEl_69 = new A.ViewContainer(69, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_69_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent70$closure()), t1); - t1 = _this._appEl_70 = new A.ViewContainer(70, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_70_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent71$closure()), t1); - t1 = _this._appEl_71 = new A.ViewContainer(71, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_71_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent72$closure()), t1); - t1 = _this._appEl_72 = new A.ViewContainer(72, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_72_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent73$closure()), t1); - t1 = _this._appEl_73 = new A.ViewContainer(73, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_73_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent74$closure()), t1); - t1 = _this._appEl_74 = new A.ViewContainer(74, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_74_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent75$closure()), t1); - t1 = _this._appEl_75 = new A.ViewContainer(75, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_75_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent76$closure()), t1); - t1 = _this._appEl_76 = new A.ViewContainer(76, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_76_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent77$closure()), t1); - t1 = _this._appEl_77 = new A.ViewContainer(77, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_77_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent78$closure()), t1); - t1 = _this._appEl_78 = new A.ViewContainer(78, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_78_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent79$closure()), t1); - t1 = _this._appEl_79 = new A.ViewContainer(79, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_79_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent80$closure()), t1); - t1 = _this._appEl_80 = new A.ViewContainer(80, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_80_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent81$closure()), t1); - t1 = _this._appEl_81 = new A.ViewContainer(81, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_81_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent82$closure()), t1); - t1 = _this._appEl_82 = new A.ViewContainer(82, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_82_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent83$closure()), t1); - t1 = _this._appEl_83 = new A.ViewContainer(83, _this, A.appendAnchor(parentRenderNode)); - _this._NgIf_83_9 = new A.NgIf(new A.TemplateRef(t1, A.large_templates_opt_out_template__viewFactory_GoldenComponent84$closure()), t1); - }, - detectChangesInternal$0() { - var t2, _this = this, - t1 = _this.__ComponentView_ctx_F; - t1 === $ && A.throwLateFieldNI("ctx"); - t2 = _this._NgIf_0_9; - t1.toString; - t2.set$ngIf(self.deopt()); - _this._NgIf_1_9.set$ngIf(self.deopt()); - _this._NgIf_2_9.set$ngIf(self.deopt()); - _this._NgIf_3_9.set$ngIf(self.deopt()); - _this._NgIf_4_9.set$ngIf(self.deopt()); - _this._NgIf_5_9.set$ngIf(self.deopt()); - _this._NgIf_6_9.set$ngIf(self.deopt()); - _this._NgIf_7_9.set$ngIf(self.deopt()); - _this._NgIf_8_9.set$ngIf(self.deopt()); - _this._NgIf_9_9.set$ngIf(self.deopt()); - _this._NgIf_10_9.set$ngIf(self.deopt()); - _this._NgIf_11_9.set$ngIf(self.deopt()); - _this._NgIf_12_9.set$ngIf(self.deopt()); - _this._NgIf_13_9.set$ngIf(self.deopt()); - _this._NgIf_14_9.set$ngIf(self.deopt()); - _this._NgIf_15_9.set$ngIf(self.deopt()); - _this._NgIf_16_9.set$ngIf(self.deopt()); - _this._NgIf_17_9.set$ngIf(self.deopt()); - _this._NgIf_18_9.set$ngIf(self.deopt()); - _this._NgIf_19_9.set$ngIf(self.deopt()); - _this._NgIf_20_9.set$ngIf(self.deopt()); - _this._NgIf_21_9.set$ngIf(self.deopt()); - _this._NgIf_22_9.set$ngIf(self.deopt()); - _this._NgIf_23_9.set$ngIf(self.deopt()); - _this._NgIf_24_9.set$ngIf(self.deopt()); - _this._NgIf_25_9.set$ngIf(self.deopt()); - _this._NgIf_26_9.set$ngIf(self.deopt()); - _this._NgIf_27_9.set$ngIf(self.deopt()); - _this._NgIf_28_9.set$ngIf(self.deopt()); - _this._NgIf_29_9.set$ngIf(self.deopt()); - _this._NgIf_30_9.set$ngIf(self.deopt()); - _this._NgIf_31_9.set$ngIf(self.deopt()); - _this._NgIf_32_9.set$ngIf(self.deopt()); - _this._NgIf_33_9.set$ngIf(self.deopt()); - _this._NgIf_34_9.set$ngIf(self.deopt()); - _this._NgIf_35_9.set$ngIf(self.deopt()); - _this._NgIf_36_9.set$ngIf(self.deopt()); - _this._NgIf_37_9.set$ngIf(self.deopt()); - _this._NgIf_38_9.set$ngIf(self.deopt()); - _this._NgIf_39_9.set$ngIf(self.deopt()); - _this._NgIf_40_9.set$ngIf(self.deopt()); - _this._NgIf_41_9.set$ngIf(self.deopt()); - _this._NgIf_42_9.set$ngIf(self.deopt()); - _this._NgIf_43_9.set$ngIf(self.deopt()); - _this._NgIf_44_9.set$ngIf(self.deopt()); - _this._NgIf_45_9.set$ngIf(self.deopt()); - _this._NgIf_46_9.set$ngIf(self.deopt()); - _this._NgIf_47_9.set$ngIf(self.deopt()); - _this._NgIf_48_9.set$ngIf(self.deopt()); - _this._NgIf_49_9.set$ngIf(self.deopt()); - _this._NgIf_50_9.set$ngIf(self.deopt()); - _this._NgIf_51_9.set$ngIf(self.deopt()); - _this._NgIf_52_9.set$ngIf(self.deopt()); - _this._NgIf_53_9.set$ngIf(self.deopt()); - _this._NgIf_54_9.set$ngIf(self.deopt()); - _this._NgIf_55_9.set$ngIf(self.deopt()); - _this._NgIf_56_9.set$ngIf(self.deopt()); - _this._NgIf_57_9.set$ngIf(self.deopt()); - _this._NgIf_58_9.set$ngIf(self.deopt()); - _this._NgIf_59_9.set$ngIf(self.deopt()); - _this._NgIf_60_9.set$ngIf(self.deopt()); - _this._NgIf_61_9.set$ngIf(self.deopt()); - _this._NgIf_62_9.set$ngIf(self.deopt()); - _this._NgIf_63_9.set$ngIf(self.deopt()); - _this._NgIf_64_9.set$ngIf(self.deopt()); - _this._NgIf_65_9.set$ngIf(self.deopt()); - _this._NgIf_66_9.set$ngIf(self.deopt()); - _this._NgIf_67_9.set$ngIf(self.deopt()); - _this._NgIf_68_9.set$ngIf(self.deopt()); - _this._NgIf_69_9.set$ngIf(self.deopt()); - _this._NgIf_70_9.set$ngIf(self.deopt()); - _this._NgIf_71_9.set$ngIf(self.deopt()); - _this._NgIf_72_9.set$ngIf(self.deopt()); - _this._NgIf_73_9.set$ngIf(self.deopt()); - _this._NgIf_74_9.set$ngIf(self.deopt()); - _this._NgIf_75_9.set$ngIf(self.deopt()); - _this._NgIf_76_9.set$ngIf(self.deopt()); - _this._NgIf_77_9.set$ngIf(self.deopt()); - _this._NgIf_78_9.set$ngIf(self.deopt()); - _this._NgIf_79_9.set$ngIf(self.deopt()); - _this._NgIf_80_9.set$ngIf(self.deopt()); - _this._NgIf_81_9.set$ngIf(self.deopt()); - _this._NgIf_82_9.set$ngIf(self.deopt()); - _this._NgIf_83_9.set$ngIf(self.deopt()); - _this._appEl_0.detectChangesInNestedViews$0(); - _this._appEl_1.detectChangesInNestedViews$0(); - _this._appEl_2.detectChangesInNestedViews$0(); - _this._appEl_3.detectChangesInNestedViews$0(); - _this._appEl_4.detectChangesInNestedViews$0(); - _this._appEl_5.detectChangesInNestedViews$0(); - _this._appEl_6.detectChangesInNestedViews$0(); - _this._appEl_7.detectChangesInNestedViews$0(); - _this._appEl_8.detectChangesInNestedViews$0(); - _this._appEl_9.detectChangesInNestedViews$0(); - _this._appEl_10.detectChangesInNestedViews$0(); - _this._appEl_11.detectChangesInNestedViews$0(); - _this._appEl_12.detectChangesInNestedViews$0(); - _this._appEl_13.detectChangesInNestedViews$0(); - _this._appEl_14.detectChangesInNestedViews$0(); - _this._appEl_15.detectChangesInNestedViews$0(); - _this._appEl_16.detectChangesInNestedViews$0(); - _this._appEl_17.detectChangesInNestedViews$0(); - _this._appEl_18.detectChangesInNestedViews$0(); - _this._appEl_19.detectChangesInNestedViews$0(); - _this._appEl_20.detectChangesInNestedViews$0(); - _this._appEl_21.detectChangesInNestedViews$0(); - _this._appEl_22.detectChangesInNestedViews$0(); - _this._appEl_23.detectChangesInNestedViews$0(); - _this._appEl_24.detectChangesInNestedViews$0(); - _this._appEl_25.detectChangesInNestedViews$0(); - _this._appEl_26.detectChangesInNestedViews$0(); - _this._appEl_27.detectChangesInNestedViews$0(); - _this._appEl_28.detectChangesInNestedViews$0(); - _this._appEl_29.detectChangesInNestedViews$0(); - _this._appEl_30.detectChangesInNestedViews$0(); - _this._appEl_31.detectChangesInNestedViews$0(); - _this._appEl_32.detectChangesInNestedViews$0(); - _this._appEl_33.detectChangesInNestedViews$0(); - _this._appEl_34.detectChangesInNestedViews$0(); - _this._appEl_35.detectChangesInNestedViews$0(); - _this._appEl_36.detectChangesInNestedViews$0(); - _this._appEl_37.detectChangesInNestedViews$0(); - _this._appEl_38.detectChangesInNestedViews$0(); - _this._appEl_39.detectChangesInNestedViews$0(); - _this._appEl_40.detectChangesInNestedViews$0(); - _this._appEl_41.detectChangesInNestedViews$0(); - _this._appEl_42.detectChangesInNestedViews$0(); - _this._appEl_43.detectChangesInNestedViews$0(); - _this._appEl_44.detectChangesInNestedViews$0(); - _this._appEl_45.detectChangesInNestedViews$0(); - _this._appEl_46.detectChangesInNestedViews$0(); - _this._appEl_47.detectChangesInNestedViews$0(); - _this._appEl_48.detectChangesInNestedViews$0(); - _this._appEl_49.detectChangesInNestedViews$0(); - _this._appEl_50.detectChangesInNestedViews$0(); - _this._appEl_51.detectChangesInNestedViews$0(); - _this._appEl_52.detectChangesInNestedViews$0(); - _this._appEl_53.detectChangesInNestedViews$0(); - _this._appEl_54.detectChangesInNestedViews$0(); - _this._appEl_55.detectChangesInNestedViews$0(); - _this._appEl_56.detectChangesInNestedViews$0(); - _this._appEl_57.detectChangesInNestedViews$0(); - _this._appEl_58.detectChangesInNestedViews$0(); - _this._appEl_59.detectChangesInNestedViews$0(); - _this._appEl_60.detectChangesInNestedViews$0(); - _this._appEl_61.detectChangesInNestedViews$0(); - _this._appEl_62.detectChangesInNestedViews$0(); - _this._appEl_63.detectChangesInNestedViews$0(); - _this._appEl_64.detectChangesInNestedViews$0(); - _this._appEl_65.detectChangesInNestedViews$0(); - _this._appEl_66.detectChangesInNestedViews$0(); - _this._appEl_67.detectChangesInNestedViews$0(); - _this._appEl_68.detectChangesInNestedViews$0(); - _this._appEl_69.detectChangesInNestedViews$0(); - _this._appEl_70.detectChangesInNestedViews$0(); - _this._appEl_71.detectChangesInNestedViews$0(); - _this._appEl_72.detectChangesInNestedViews$0(); - _this._appEl_73.detectChangesInNestedViews$0(); - _this._appEl_74.detectChangesInNestedViews$0(); - _this._appEl_75.detectChangesInNestedViews$0(); - _this._appEl_76.detectChangesInNestedViews$0(); - _this._appEl_77.detectChangesInNestedViews$0(); - _this._appEl_78.detectChangesInNestedViews$0(); - _this._appEl_79.detectChangesInNestedViews$0(); - _this._appEl_80.detectChangesInNestedViews$0(); - _this._appEl_81.detectChangesInNestedViews$0(); - _this._appEl_82.detectChangesInNestedViews$0(); - _this._appEl_83.detectChangesInNestedViews$0(); - }, - destroyInternal$0() { - var _this = this; - _this._appEl_0.destroyNestedViews$0(); - _this._appEl_1.destroyNestedViews$0(); - _this._appEl_2.destroyNestedViews$0(); - _this._appEl_3.destroyNestedViews$0(); - _this._appEl_4.destroyNestedViews$0(); - _this._appEl_5.destroyNestedViews$0(); - _this._appEl_6.destroyNestedViews$0(); - _this._appEl_7.destroyNestedViews$0(); - _this._appEl_8.destroyNestedViews$0(); - _this._appEl_9.destroyNestedViews$0(); - _this._appEl_10.destroyNestedViews$0(); - _this._appEl_11.destroyNestedViews$0(); - _this._appEl_12.destroyNestedViews$0(); - _this._appEl_13.destroyNestedViews$0(); - _this._appEl_14.destroyNestedViews$0(); - _this._appEl_15.destroyNestedViews$0(); - _this._appEl_16.destroyNestedViews$0(); - _this._appEl_17.destroyNestedViews$0(); - _this._appEl_18.destroyNestedViews$0(); - _this._appEl_19.destroyNestedViews$0(); - _this._appEl_20.destroyNestedViews$0(); - _this._appEl_21.destroyNestedViews$0(); - _this._appEl_22.destroyNestedViews$0(); - _this._appEl_23.destroyNestedViews$0(); - _this._appEl_24.destroyNestedViews$0(); - _this._appEl_25.destroyNestedViews$0(); - _this._appEl_26.destroyNestedViews$0(); - _this._appEl_27.destroyNestedViews$0(); - _this._appEl_28.destroyNestedViews$0(); - _this._appEl_29.destroyNestedViews$0(); - _this._appEl_30.destroyNestedViews$0(); - _this._appEl_31.destroyNestedViews$0(); - _this._appEl_32.destroyNestedViews$0(); - _this._appEl_33.destroyNestedViews$0(); - _this._appEl_34.destroyNestedViews$0(); - _this._appEl_35.destroyNestedViews$0(); - _this._appEl_36.destroyNestedViews$0(); - _this._appEl_37.destroyNestedViews$0(); - _this._appEl_38.destroyNestedViews$0(); - _this._appEl_39.destroyNestedViews$0(); - _this._appEl_40.destroyNestedViews$0(); - _this._appEl_41.destroyNestedViews$0(); - _this._appEl_42.destroyNestedViews$0(); - _this._appEl_43.destroyNestedViews$0(); - _this._appEl_44.destroyNestedViews$0(); - _this._appEl_45.destroyNestedViews$0(); - _this._appEl_46.destroyNestedViews$0(); - _this._appEl_47.destroyNestedViews$0(); - _this._appEl_48.destroyNestedViews$0(); - _this._appEl_49.destroyNestedViews$0(); - _this._appEl_50.destroyNestedViews$0(); - _this._appEl_51.destroyNestedViews$0(); - _this._appEl_52.destroyNestedViews$0(); - _this._appEl_53.destroyNestedViews$0(); - _this._appEl_54.destroyNestedViews$0(); - _this._appEl_55.destroyNestedViews$0(); - _this._appEl_56.destroyNestedViews$0(); - _this._appEl_57.destroyNestedViews$0(); - _this._appEl_58.destroyNestedViews$0(); - _this._appEl_59.destroyNestedViews$0(); - _this._appEl_60.destroyNestedViews$0(); - _this._appEl_61.destroyNestedViews$0(); - _this._appEl_62.destroyNestedViews$0(); - _this._appEl_63.destroyNestedViews$0(); - _this._appEl_64.destroyNestedViews$0(); - _this._appEl_65.destroyNestedViews$0(); - _this._appEl_66.destroyNestedViews$0(); - _this._appEl_67.destroyNestedViews$0(); - _this._appEl_68.destroyNestedViews$0(); - _this._appEl_69.destroyNestedViews$0(); - _this._appEl_70.destroyNestedViews$0(); - _this._appEl_71.destroyNestedViews$0(); - _this._appEl_72.destroyNestedViews$0(); - _this._appEl_73.destroyNestedViews$0(); - _this._appEl_74.destroyNestedViews$0(); - _this._appEl_75.destroyNestedViews$0(); - _this._appEl_76.destroyNestedViews$0(); - _this._appEl_77.destroyNestedViews$0(); - _this._appEl_78.destroyNestedViews$0(); - _this._appEl_79.destroyNestedViews$0(); - _this._appEl_80.destroyNestedViews$0(); - _this._appEl_81.destroyNestedViews$0(); - _this._appEl_82.destroyNestedViews$0(); - _this._appEl_83.destroyNestedViews$0(); - } - }; - A._ViewGoldenComponent1.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent2.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent3.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent4.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent5.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent6.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent7.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent8.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent9.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent10.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent11.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent12.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent13.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent14.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent15.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent16.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent17.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent18.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent19.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent20.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent21.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent22.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent23.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent24.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent25.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent26.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent27.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent28.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent29.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent30.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent31.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent32.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent33.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent34.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent35.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent36.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent37.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent38.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent39.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent40.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent41.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent42.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent43.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent44.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent45.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent46.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent47.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent48.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent49.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent50.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent51.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent52.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent53.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent54.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent55.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent56.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent57.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent58.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent59.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent60.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent61.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent62.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent63.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent64.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent65.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent66.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent67.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent68.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent69.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent70.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent71.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent72.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent73.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent74.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent75.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent76.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent77.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent78.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent79.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent80.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent81.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent82.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent83.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponent84.prototype = { - build$0() { - var t3, _this = this, - t1 = _this._compView_0 = A.ViewChildComponent0$(_this, 0), - t2 = t1.__ComponentView_rootElement_F; - t2 === $ && A.throwLateFieldNI("rootElement"); - t3 = new A.ChildComponent(); - _this._ChildComponent_0_5 = t3; - t1.create$1(t3); - _this.initRootNode$1(t2); - }, - detectChangesInternal$0() { - this._compView_0.detectChangesDeprecated$0(); - }, - destroyInternal$0() { - this._compView_0.destroyInternalState$0(); - } - }; - A._ViewGoldenComponentHost0.prototype = {}; - A.ViewChildComponent0.prototype = { - build$0() { - this.initViewRoot$0(); - } - }; - (function aliases() { - var _ = J.Interceptor.prototype; - _.super$Interceptor$toString = _.toString$0; - _ = J.LegacyJavaScriptObject.prototype; - _.super$LegacyJavaScriptObject$toString = _.toString$0; - _ = A._BroadcastStreamController.prototype; - _.super$_BroadcastStreamController$_addEventError = _._addEventError$0; - _ = A.Object.prototype; - _.super$Object$toString = _.toString$0; - })(); - (function installTearOffs() { - var _static_1 = hunkHelpers._static_1, - _static_0 = hunkHelpers._static_0, - _static_2 = hunkHelpers._static_2, - _static = hunkHelpers.installStaticTearOff, - _instance_2_u = hunkHelpers._instance_2u, - _instance_0_u = hunkHelpers._instance_0u, - _instance = hunkHelpers.installInstanceTearOff; - _static_1(A, "async__AsyncRun__scheduleImmediateJsOverride$closure", "_AsyncRun__scheduleImmediateJsOverride", 3); - _static_1(A, "async__AsyncRun__scheduleImmediateWithSetImmediate$closure", "_AsyncRun__scheduleImmediateWithSetImmediate", 3); - _static_1(A, "async__AsyncRun__scheduleImmediateWithTimer$closure", "_AsyncRun__scheduleImmediateWithTimer", 3); - _static_0(A, "async___startMicrotaskLoop$closure", "_startMicrotaskLoop", 1); - _static_1(A, "async___nullDataHandler$closure", "_nullDataHandler", 27); - _static_2(A, "async___nullErrorHandler$closure", "_nullErrorHandler", 5); - _static_0(A, "async___nullDoneHandler$closure", "_nullDoneHandler", 1); - _static(A, "async___rootHandleUncaughtError$closure", 5, null, ["call$5"], ["_rootHandleUncaughtError"], 42, 0); - _static(A, "async___rootRun$closure", 4, null, ["call$1$4", "call$4"], ["_rootRun", function($self, $parent, zone, f) { - return A._rootRun($self, $parent, zone, f, type$.dynamic); - }], 29, 0); - _static(A, "async___rootRunUnary$closure", 5, null, ["call$2$5", "call$5"], ["_rootRunUnary", function($self, $parent, zone, f, arg) { - return A._rootRunUnary($self, $parent, zone, f, arg, type$.dynamic, type$.dynamic); - }], 30, 0); - _static(A, "async___rootRunBinary$closure", 6, null, ["call$3$6"], ["_rootRunBinary"], 31, 0); - _static(A, "async___rootRegisterCallback$closure", 4, null, ["call$1$4", "call$4"], ["_rootRegisterCallback", function($self, $parent, zone, f) { - return A._rootRegisterCallback($self, $parent, zone, f, type$.dynamic); - }], 32, 0); - _static(A, "async___rootRegisterUnaryCallback$closure", 4, null, ["call$2$4", "call$4"], ["_rootRegisterUnaryCallback", function($self, $parent, zone, f) { - return A._rootRegisterUnaryCallback($self, $parent, zone, f, type$.dynamic, type$.dynamic); - }], 33, 0); - _static(A, "async___rootRegisterBinaryCallback$closure", 4, null, ["call$3$4", "call$4"], ["_rootRegisterBinaryCallback", function($self, $parent, zone, f) { - return A._rootRegisterBinaryCallback($self, $parent, zone, f, type$.dynamic, type$.dynamic, type$.dynamic); - }], 34, 0); - _static(A, "async___rootErrorCallback$closure", 5, null, ["call$5"], ["_rootErrorCallback"], 35, 0); - _static(A, "async___rootScheduleMicrotask$closure", 4, null, ["call$4"], ["_rootScheduleMicrotask"], 36, 0); - _static(A, "async___rootCreateTimer$closure", 5, null, ["call$5"], ["_rootCreateTimer"], 7, 0); - _static(A, "async___rootCreatePeriodicTimer$closure", 5, null, ["call$5"], ["_rootCreatePeriodicTimer"], 37, 0); - _static(A, "async___rootPrint$closure", 4, null, ["call$4"], ["_rootPrint"], 38, 0); - _static(A, "async___rootFork$closure", 5, null, ["call$5"], ["_rootFork"], 39, 0); - _instance_2_u(A._Future.prototype, "get$_completeError", "_completeError$2", 5); - _instance_0_u(A._DoneStreamSubscription.prototype, "get$_sendDone", "_sendDone$0", 1); - _static_1(A, "run___identityInjector$closure", "_identityInjector", 40); - _instance_0_u(A.ChangeDetectionHost.prototype, "get$tick", "tick$0", 1); - _static_0(A, "ng_zone_NgZone___new_tearOff$closure", "NgZone___new_tearOff", 6); - var _; - _instance(_ = A.NgZone.prototype, "get$_ng_zone$_scheduleMicrotask", 0, 4, null, ["call$4"], ["_ng_zone$_scheduleMicrotask$4"], 20, 0, 0); - _instance(_, "get$_run", 0, 4, null, ["call$1$4", "call$4"], ["_run$1$4", "_run$4"], 21, 0, 0); - _instance(_, "get$_runUnary", 0, 5, null, ["call$2$5", "call$5"], ["_runUnary$2$5", "_runUnary$5"], 22, 0, 0); - _instance(_, "get$_runBinary", 0, 6, null, ["call$3$6"], ["_runBinary$3$6"], 23, 0, 0); - _instance(_, "get$_handleUncaughtError", 0, 5, null, ["call$5"], ["_handleUncaughtError$5"], 24, 0, 0); - _instance(_, "get$_createTimer", 0, 5, null, ["call$5"], ["_createTimer$5"], 7, 0, 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent1$closure", "viewFactory_GoldenComponent1", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent2$closure", "viewFactory_GoldenComponent2", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent3$closure", "viewFactory_GoldenComponent3", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent4$closure", "viewFactory_GoldenComponent4", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent5$closure", "viewFactory_GoldenComponent5", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent6$closure", "viewFactory_GoldenComponent6", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent7$closure", "viewFactory_GoldenComponent7", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent8$closure", "viewFactory_GoldenComponent8", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent9$closure", "viewFactory_GoldenComponent9", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent10$closure", "viewFactory_GoldenComponent10", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent11$closure", "viewFactory_GoldenComponent11", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent12$closure", "viewFactory_GoldenComponent12", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent13$closure", "viewFactory_GoldenComponent13", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent14$closure", "viewFactory_GoldenComponent14", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent15$closure", "viewFactory_GoldenComponent15", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent16$closure", "viewFactory_GoldenComponent16", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent17$closure", "viewFactory_GoldenComponent17", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent18$closure", "viewFactory_GoldenComponent18", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent19$closure", "viewFactory_GoldenComponent19", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent20$closure", "viewFactory_GoldenComponent20", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent21$closure", "viewFactory_GoldenComponent21", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent22$closure", "viewFactory_GoldenComponent22", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent23$closure", "viewFactory_GoldenComponent23", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent24$closure", "viewFactory_GoldenComponent24", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent25$closure", "viewFactory_GoldenComponent25", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent26$closure", "viewFactory_GoldenComponent26", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent27$closure", "viewFactory_GoldenComponent27", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent28$closure", "viewFactory_GoldenComponent28", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent29$closure", "viewFactory_GoldenComponent29", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent30$closure", "viewFactory_GoldenComponent30", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent31$closure", "viewFactory_GoldenComponent31", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent32$closure", "viewFactory_GoldenComponent32", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent33$closure", "viewFactory_GoldenComponent33", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent34$closure", "viewFactory_GoldenComponent34", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent35$closure", "viewFactory_GoldenComponent35", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent36$closure", "viewFactory_GoldenComponent36", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent37$closure", "viewFactory_GoldenComponent37", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent38$closure", "viewFactory_GoldenComponent38", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent39$closure", "viewFactory_GoldenComponent39", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent40$closure", "viewFactory_GoldenComponent40", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent41$closure", "viewFactory_GoldenComponent41", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent42$closure", "viewFactory_GoldenComponent42", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent43$closure", "viewFactory_GoldenComponent43", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent44$closure", "viewFactory_GoldenComponent44", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent45$closure", "viewFactory_GoldenComponent45", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent46$closure", "viewFactory_GoldenComponent46", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent47$closure", "viewFactory_GoldenComponent47", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent48$closure", "viewFactory_GoldenComponent48", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent49$closure", "viewFactory_GoldenComponent49", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent50$closure", "viewFactory_GoldenComponent50", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent51$closure", "viewFactory_GoldenComponent51", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent52$closure", "viewFactory_GoldenComponent52", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent53$closure", "viewFactory_GoldenComponent53", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent54$closure", "viewFactory_GoldenComponent54", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent55$closure", "viewFactory_GoldenComponent55", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent56$closure", "viewFactory_GoldenComponent56", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent57$closure", "viewFactory_GoldenComponent57", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent58$closure", "viewFactory_GoldenComponent58", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent59$closure", "viewFactory_GoldenComponent59", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent60$closure", "viewFactory_GoldenComponent60", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent61$closure", "viewFactory_GoldenComponent61", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent62$closure", "viewFactory_GoldenComponent62", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent63$closure", "viewFactory_GoldenComponent63", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent64$closure", "viewFactory_GoldenComponent64", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent65$closure", "viewFactory_GoldenComponent65", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent66$closure", "viewFactory_GoldenComponent66", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent67$closure", "viewFactory_GoldenComponent67", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent68$closure", "viewFactory_GoldenComponent68", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent69$closure", "viewFactory_GoldenComponent69", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent70$closure", "viewFactory_GoldenComponent70", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent71$closure", "viewFactory_GoldenComponent71", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent72$closure", "viewFactory_GoldenComponent72", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent73$closure", "viewFactory_GoldenComponent73", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent74$closure", "viewFactory_GoldenComponent74", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent75$closure", "viewFactory_GoldenComponent75", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent76$closure", "viewFactory_GoldenComponent76", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent77$closure", "viewFactory_GoldenComponent77", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent78$closure", "viewFactory_GoldenComponent78", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent79$closure", "viewFactory_GoldenComponent79", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent80$closure", "viewFactory_GoldenComponent80", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent81$closure", "viewFactory_GoldenComponent81", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent82$closure", "viewFactory_GoldenComponent82", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent83$closure", "viewFactory_GoldenComponent83", 0); - _static_2(A, "large_templates_opt_out_template__viewFactory_GoldenComponent84$closure", "viewFactory_GoldenComponent84", 0); - _static_0(A, "large_templates_opt_out_template__viewFactory_GoldenComponentHost0$closure", "viewFactory_GoldenComponentHost0", 28); - })(); - (function inheritance() { - var _mixin = hunkHelpers.mixin, - _inherit = hunkHelpers.inherit, - _inheritMany = hunkHelpers.inheritMany; - _inherit(A.Object, null); - _inheritMany(A.Object, [A.JS_CONST, J.Interceptor, J.ArrayIterator, A.Error, A.Iterable, A.ListIterator, A.FixedLengthListMixin, A.TypeErrorDecoder, A.NullThrownFromJavaScriptException, A.ExceptionAndStackTrace, A._StackTrace, A.Closure, A.MapMixin, A.LinkedHashMapCell, A.LinkedHashMapKeyIterator, A._Cell, A.Rti, A._FunctionParameters, A._Type, A._TimerImpl, A.AsyncError, A.Stream, A._BufferingStreamSubscription, A._BroadcastStreamController, A._Completer, A._FutureListener, A._Future, A._AsyncCallbackEntry, A._DelayedEvent, A._PendingEvents, A._DoneStreamSubscription, A._ZoneFunction, A._ZoneSpecification, A._ZoneDelegate, A._Zone, A._HashMapKeyIterator, A.ListMixin, A.Duration, A._Enum, A.OutOfMemoryError, A.StackOverflowError, A._Exception, A.Null, A._StringStackTrace, A.StringBuffer, A._JSRandom, A.Injector, A.NgIf, A.ChangeDetectionHost, A.ExceptionHandler, A.AppViewUtils, A.ComponentRef, A.ComponentFactory, A.ComponentLoader, A.ComponentStyles, A.TemplateRef, A.ViewFragment, A.View, A._ComponentViewData, A._EmbeddedViewData, A._HostViewData, A.NgZone, A._WrappedTimer, A.UncaughtError, A.OpaqueToken, A.GoldenComponent, A.ChildComponent]); - _inheritMany(J.Interceptor, [J.JSBool, J.JSNull, J.JavaScriptObject, J.JSArray, J.JSNumber, J.JSString, A.NativeTypedData]); - _inheritMany(J.JavaScriptObject, [J.LegacyJavaScriptObject, A.EventTarget, A.DomException, A.DomTokenList]); - _inheritMany(J.LegacyJavaScriptObject, [J.PlainJavaScriptObject, J.UnknownJavaScriptObject, J.JavaScriptFunction, A.JsTestability, A.JsTestabilityRegistry]); - _inherit(J.JSUnmodifiableArray, J.JSArray); - _inheritMany(J.JSNumber, [J.JSInt, J.JSNumNotInt]); - _inheritMany(A.Error, [A.LateError, A.ReachabilityError, A.NotNullableError, A.TypeError, A.JsNoSuchMethodError, A.UnknownJsTypeError, A.RuntimeError, A.AssertionError, A._Error, A.NullThrownError, A.ArgumentError, A.UnsupportedError, A.UnimplementedError, A.StateError, A.ConcurrentModificationError, A.CyclicInitializationError]); - _inherit(A.EfficientLengthIterable, A.Iterable); - _inherit(A.NullError, A.TypeError); - _inheritMany(A.Closure, [A.Closure0Args, A.Closure2Args, A.TearOffClosure, A.initHooks_closure, A.initHooks_closure1, A._AsyncRun__initializeScheduleImmediate_internalCallback, A._AsyncRun__initializeScheduleImmediate_closure, A._SyncBroadcastStreamController__sendData_closure, A._Future__chainForeignFuture_closure, A._Future__propagateToListeners_handleWhenCompleteCallback_closure, A.Stream_length_closure, A._CustomZone_bindUnaryCallback_closure, A._RootZone_bindUnaryCallback_closure, A.ApplicationRef$__closure, A.ApplicationRef$__closure0, A.ChangeDetectionHost_run__closure, A.NgZone__runUnary_closure]); - _inheritMany(A.TearOffClosure, [A.StaticClosure, A.BoundClosure]); - _inherit(A._AssertionError, A.AssertionError); - _inherit(A.MapBase, A.MapMixin); - _inheritMany(A.MapBase, [A.JsLinkedHashMap, A._HashMap]); - _inheritMany(A.EfficientLengthIterable, [A.LinkedHashMapKeyIterable, A._HashMapKeyIterable]); - _inheritMany(A.Closure2Args, [A.initHooks_closure0, A._Future__chainForeignFuture_closure0, A._HashMap_addAll_closure, A.HashMap_HashMap$from_closure, A.MapBase_mapToString_closure, A.ChangeDetectionHost_run__closure0, A.NgZone__runBinary_closure]); - _inherit(A.NativeTypedArray, A.NativeTypedData); - _inherit(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, A.NativeTypedArray); - _inherit(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin); - _inherit(A.NativeTypedArrayOfInt, A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin); - _inherit(A.NativeUint8List, A.NativeTypedArrayOfInt); - _inherit(A._TypeError, A._Error); - _inheritMany(A.Closure0Args, [A._AsyncRun__scheduleImmediateJsOverride_internalCallback, A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback, A._TimerImpl_internalCallback, A._TimerImpl$periodic_closure, A._Future__addListener_closure, A._Future__prependListeners_closure, A._Future__chainForeignFuture_closure1, A._Future__asyncCompleteWithValue_closure, A._Future__chainFuture_closure, A._Future__asyncCompleteError_closure, A._Future__propagateToListeners_handleWhenCompleteCallback, A._Future__propagateToListeners_handleValueCallback, A._Future__propagateToListeners_handleError, A.Stream_length_closure0, A._PendingEvents_schedule_closure, A._CustomZone_bindCallback_closure, A._CustomZone_bindCallbackGuarded_closure, A._rootHandleError_closure, A._RootZone_bindCallback_closure, A._RootZone_bindCallbackGuarded_closure, A._createRandomAppId_char, A.appInjector_closure, A.appInjector_closure0, A.appInjector_closure1, A.appInjector_closure2, A.ApplicationRef_bootstrap_closure, A.ApplicationRef__loadedRootComponent_closure, A.ChangeDetectionHost_run_closure, A.NgZone__scheduleMicrotask_safeMicrotask, A.NgZone__run_closure, A.NgZone__createTimer_onDone, A.NgZone__createTimer_callback, A.NgZone__checkStable_closure]); - _inherit(A._StreamImpl, A.Stream); - _inherit(A._ControllerStream, A._StreamImpl); - _inherit(A._BroadcastStream, A._ControllerStream); - _inherit(A._ControllerSubscription, A._BufferingStreamSubscription); - _inherit(A._BroadcastSubscription, A._ControllerSubscription); - _inherit(A._SyncBroadcastStreamController, A._BroadcastStreamController); - _inherit(A._AsyncCompleter, A._Completer); - _inherit(A._DelayedData, A._DelayedEvent); - _inheritMany(A._Zone, [A._CustomZone, A._RootZone]); - _inherit(A._IdentityHashMap, A._HashMap); - _inheritMany(A.ArgumentError, [A.RangeError, A.IndexError]); - _inherit(A.Node, A.EventTarget); - _inheritMany(A.Node, [A.Element, A.CharacterData]); - _inherit(A.HtmlElement, A.Element); - _inheritMany(A.HtmlElement, [A.AnchorElement, A.AreaElement, A.FormElement, A.SelectElement, A.StyleElement]); - _inheritMany(A.Injector, [A.HierarchicalInjector, A._ElementInjector, A._EmptyInjector]); - _inheritMany(A.HierarchicalInjector, [A._LazyInjector, A._MapInjector]); - _inherit(A.ApplicationRef, A.ChangeDetectionHost); - _inherit(A._UnscopedComponentStyles, A.ComponentStyles); - _inherit(A.ViewContainer, A.ComponentLoader); - _inheritMany(A.View, [A.RenderView, A.HostView]); - _inheritMany(A.RenderView, [A.ComponentView, A.EmbeddedView]); - _inheritMany(A._Enum, [A.ChangeDetectorState, A.ChangeDetectionCheckedState]); - _inheritMany(A.ComponentView, [A.ViewGoldenComponent0, A.ViewChildComponent0]); - _inheritMany(A.EmbeddedView, [A._ViewGoldenComponent1, A._ViewGoldenComponent2, A._ViewGoldenComponent3, A._ViewGoldenComponent4, A._ViewGoldenComponent5, A._ViewGoldenComponent6, A._ViewGoldenComponent7, A._ViewGoldenComponent8, A._ViewGoldenComponent9, A._ViewGoldenComponent10, A._ViewGoldenComponent11, A._ViewGoldenComponent12, A._ViewGoldenComponent13, A._ViewGoldenComponent14, A._ViewGoldenComponent15, A._ViewGoldenComponent16, A._ViewGoldenComponent17, A._ViewGoldenComponent18, A._ViewGoldenComponent19, A._ViewGoldenComponent20, A._ViewGoldenComponent21, A._ViewGoldenComponent22, A._ViewGoldenComponent23, A._ViewGoldenComponent24, A._ViewGoldenComponent25, A._ViewGoldenComponent26, A._ViewGoldenComponent27, A._ViewGoldenComponent28, A._ViewGoldenComponent29, A._ViewGoldenComponent30, A._ViewGoldenComponent31, A._ViewGoldenComponent32, A._ViewGoldenComponent33, A._ViewGoldenComponent34, A._ViewGoldenComponent35, A._ViewGoldenComponent36, A._ViewGoldenComponent37, A._ViewGoldenComponent38, A._ViewGoldenComponent39, A._ViewGoldenComponent40, A._ViewGoldenComponent41, A._ViewGoldenComponent42, A._ViewGoldenComponent43, A._ViewGoldenComponent44, A._ViewGoldenComponent45, A._ViewGoldenComponent46, A._ViewGoldenComponent47, A._ViewGoldenComponent48, A._ViewGoldenComponent49, A._ViewGoldenComponent50, A._ViewGoldenComponent51, A._ViewGoldenComponent52, A._ViewGoldenComponent53, A._ViewGoldenComponent54, A._ViewGoldenComponent55, A._ViewGoldenComponent56, A._ViewGoldenComponent57, A._ViewGoldenComponent58, A._ViewGoldenComponent59, A._ViewGoldenComponent60, A._ViewGoldenComponent61, A._ViewGoldenComponent62, A._ViewGoldenComponent63, A._ViewGoldenComponent64, A._ViewGoldenComponent65, A._ViewGoldenComponent66, A._ViewGoldenComponent67, A._ViewGoldenComponent68, A._ViewGoldenComponent69, A._ViewGoldenComponent70, A._ViewGoldenComponent71, A._ViewGoldenComponent72, A._ViewGoldenComponent73, A._ViewGoldenComponent74, A._ViewGoldenComponent75, A._ViewGoldenComponent76, A._ViewGoldenComponent77, A._ViewGoldenComponent78, A._ViewGoldenComponent79, A._ViewGoldenComponent80, A._ViewGoldenComponent81, A._ViewGoldenComponent82, A._ViewGoldenComponent83, A._ViewGoldenComponent84]); - _inherit(A._ViewGoldenComponentHost0, A.HostView); - _mixin(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, A.ListMixin); - _mixin(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, A.FixedLengthListMixin); - })(); - var init = { - typeUniverse: {eC: new Map(), tR: {}, eT: {}, tPV: {}, sEA: []}, - mangledGlobalNames: {int: "int", double: "double", num: "num", String: "String", bool: "bool", Null: "Null", List: "List"}, - mangledNames: {}, - types: ["EmbeddedView<~>*(RenderView*,int*)", "~()", "Null()", "~(~())", "Null(@)", "~(Object,StackTrace)", "NgZone()", "Timer(Zone,ZoneDelegate,Zone,Duration,~())", "AppViewUtils()", "_Future<@>(@)", "~(@,@)", "~(Object?,Object?)", "String()", "ApplicationRef()", "@(@)", "@(String)", "Injector()", "~(UncaughtError)", "~(~)", "Null(@,@)", "~(Zone,ZoneDelegate,Zone,~())", "0^(Zone,ZoneDelegate,Zone,0^())", "0^(Zone,ZoneDelegate,Zone,0^(1^),1^)", "0^(Zone,ZoneDelegate,Zone,0^(1^,2^),1^,2^)", "~(Zone,ZoneDelegate,Zone,Object,StackTrace)", "@(@,String)", "Null(~())", "~(@)", "HostView*()", "0^(Zone?,ZoneDelegate?,Zone,0^())", "0^(Zone?,ZoneDelegate?,Zone,0^(1^),1^)", "0^(Zone?,ZoneDelegate?,Zone,0^(1^,2^),1^,2^)", "0^()(Zone,ZoneDelegate,Zone,0^())", "0^(1^)(Zone,ZoneDelegate,Zone,0^(1^))", "0^(1^,2^)(Zone,ZoneDelegate,Zone,0^(1^,2^))", "AsyncError?(Zone,ZoneDelegate,Zone,Object,StackTrace?)", "~(Zone?,ZoneDelegate?,Zone,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~(Timer))", "~(Zone,ZoneDelegate,Zone,String)", "Zone(Zone?,ZoneDelegate?,Zone,ZoneSpecification?,Map?)", "Injector(Injector)", "Null(Object,StackTrace)", "~(Zone?,ZoneDelegate?,Zone,Object,StackTrace)"], - interceptorsByTag: null, - leafTags: null, - arrayRti: Symbol("$ti") - }; - A._Universe_addRules(init.typeUniverse, JSON.parse('{"PlainJavaScriptObject":"LegacyJavaScriptObject","UnknownJavaScriptObject":"LegacyJavaScriptObject","JavaScriptFunction":"LegacyJavaScriptObject","JsTestability":"LegacyJavaScriptObject","JsTestabilityRegistry":"LegacyJavaScriptObject","MathMLElement":"Element","AudioElement":"HtmlElement","MediaElement":"HtmlElement","HtmlDocument":"Node","Document":"Node","CDataSection":"CharacterData","Text":"CharacterData","NativeInt8List":"NativeTypedArrayOfInt","JSBool":{"bool":[]},"JSNull":{"Null":[]},"JSArray":{"List":["1"],"Iterable":["1"]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"Iterable":["1"]},"JSNumber":{"num":[]},"JSInt":{"int":[],"num":[]},"JSNumNotInt":{"num":[]},"JSString":{"String":[],"Pattern":[]},"LateError":{"Error":[]},"ReachabilityError":{"Error":[]},"NotNullableError":{"TypeError":[],"Error":[]},"EfficientLengthIterable":{"Iterable":["1"]},"NullError":{"TypeError":[],"Error":[]},"JsNoSuchMethodError":{"Error":[]},"UnknownJsTypeError":{"Error":[]},"_StackTrace":{"StackTrace":[]},"Closure":{"Function":[]},"Closure0Args":{"Function":[]},"Closure2Args":{"Function":[]},"TearOffClosure":{"Function":[]},"StaticClosure":{"Function":[]},"BoundClosure":{"Function":[]},"RuntimeError":{"Error":[]},"_AssertionError":{"Error":[]},"JsLinkedHashMap":{"MapMixin":["1","2"],"LinkedHashMap":["1","2"],"Map":["1","2"]},"LinkedHashMapKeyIterable":{"Iterable":["1"]},"NativeTypedArray":{"JavaScriptIndexingBehavior":["1"]},"NativeTypedArrayOfInt":{"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"ListMixin.E":"int"},"NativeUint8List":{"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"ListMixin.E":"int"},"_Type":{"Type":[]},"_Error":{"Error":[]},"_TypeError":{"TypeError":[],"Error":[]},"AsyncError":{"Error":[]},"_Future":{"Future":["1"]},"_BufferingStreamSubscription":{"StreamSubscription":["1"],"_EventDispatch":["1"]},"_TimerImpl":{"Timer":[]},"_BroadcastStream":{"_ControllerStream":["1"],"_StreamImpl":["1"],"Stream":["1"]},"_BroadcastSubscription":{"_ControllerSubscription":["1"],"_BufferingStreamSubscription":["1"],"StreamSubscription":["1"],"_EventDispatch":["1"]},"_BroadcastStreamController":{"StreamController":["1"],"_StreamControllerLifecycle":["1"],"_EventDispatch":["1"]},"_SyncBroadcastStreamController":{"_BroadcastStreamController":["1"],"StreamController":["1"],"_StreamControllerLifecycle":["1"],"_EventDispatch":["1"]},"_AsyncCompleter":{"_Completer":["1"]},"_ControllerStream":{"_StreamImpl":["1"],"Stream":["1"]},"_ControllerSubscription":{"_BufferingStreamSubscription":["1"],"StreamSubscription":["1"],"_EventDispatch":["1"]},"_StreamImpl":{"Stream":["1"]},"_DelayedData":{"_DelayedEvent":["1"]},"_DoneStreamSubscription":{"StreamSubscription":["1"]},"_ZoneSpecification":{"ZoneSpecification":[]},"_ZoneDelegate":{"ZoneDelegate":[]},"_Zone":{"Zone":[]},"_CustomZone":{"_Zone":[],"Zone":[]},"_RootZone":{"_Zone":[],"Zone":[]},"_HashMap":{"MapMixin":["1","2"],"Map":["1","2"]},"_IdentityHashMap":{"_HashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"]},"_HashMapKeyIterable":{"Iterable":["1"]},"MapBase":{"MapMixin":["1","2"],"Map":["1","2"]},"MapMixin":{"Map":["1","2"]},"int":{"num":[]},"List":{"Iterable":["1"]},"String":{"Pattern":[]},"AssertionError":{"Error":[]},"TypeError":{"Error":[]},"NullThrownError":{"TypeError":[],"Error":[]},"ArgumentError":{"Error":[]},"RangeError":{"Error":[]},"IndexError":{"Error":[]},"UnsupportedError":{"Error":[]},"UnimplementedError":{"Error":[]},"StateError":{"Error":[]},"ConcurrentModificationError":{"Error":[]},"OutOfMemoryError":{"Error":[]},"StackOverflowError":{"Error":[]},"CyclicInitializationError":{"Error":[]},"_StringStackTrace":{"StackTrace":[]},"HtmlElement":{"Element":[],"Node":[]},"AnchorElement":{"HtmlElement":[],"Element":[],"Node":[]},"AreaElement":{"HtmlElement":[],"Element":[],"Node":[]},"CharacterData":{"Node":[]},"Element":{"Node":[]},"FormElement":{"HtmlElement":[],"Element":[],"Node":[]},"SelectElement":{"HtmlElement":[],"Element":[],"Node":[]},"StyleElement":{"HtmlElement":[],"Element":[],"Node":[]},"_LazyInjector":{"Injector":[]},"_UnscopedComponentStyles":{"ComponentStyles":[]},"ViewContainer":{"ViewContainerRef":[]},"ComponentView":{"RenderView":[],"View":[],"ChangeDetectorRef":[]},"EmbeddedView":{"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[]},"HostView":{"DynamicView":[],"View":[],"ChangeDetectorRef":[]},"RenderView":{"View":[],"ChangeDetectorRef":[]},"View":{"ChangeDetectorRef":[]},"_ElementInjector":{"Injector":[]},"_WrappedTimer":{"Timer":[]},"HierarchicalInjector":{"Injector":[]},"_EmptyInjector":{"Injector":[]},"_MapInjector":{"Injector":[]},"ViewGoldenComponent0":{"ComponentView":["GoldenComponent*"],"RenderView":[],"View":[],"ChangeDetectorRef":[],"ComponentView.T":"GoldenComponent*"},"_ViewGoldenComponent1":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent2":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent3":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent4":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent5":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent6":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent7":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent8":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent9":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent10":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent11":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent12":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent13":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent14":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent15":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent16":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent17":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent18":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent19":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent20":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent21":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent22":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent23":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent24":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent25":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent26":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent27":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent28":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent29":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent30":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent31":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent32":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent33":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent34":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent35":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent36":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent37":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent38":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent39":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent40":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent41":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent42":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent43":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent44":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent45":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent46":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent47":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent48":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent49":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent50":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent51":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent52":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent53":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent54":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent55":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent56":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent57":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent58":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent59":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent60":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent61":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent62":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent63":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent64":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent65":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent66":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent67":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent68":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent69":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent70":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent71":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent72":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent73":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent74":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent75":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent76":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent77":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent78":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent79":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent80":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent81":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent82":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent83":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponent84":{"EmbeddedView":["GoldenComponent*"],"RenderView":[],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"EmbeddedView.T":"GoldenComponent*"},"_ViewGoldenComponentHost0":{"HostView":["GoldenComponent*"],"DynamicView":[],"View":[],"ChangeDetectorRef":[],"HostView.T":"GoldenComponent*"},"ViewChildComponent0":{"ComponentView":["ChildComponent*"],"RenderView":[],"View":[],"ChangeDetectorRef":[],"ComponentView.T":"ChildComponent*"},"DynamicView":{"View":[],"ChangeDetectorRef":[]}}')); - A._Universe_addErasedTypes(init.typeUniverse, JSON.parse('{"EfficientLengthIterable":1,"NativeTypedArray":1,"_DelayedEvent":1,"MapBase":2}')); - var string$ = { - Cannot: "Cannot fire new event. Controller is already firing an event", - Error_: "Error handler must accept one Object or one Object and a StackTrace as arguments, and return a value of the returned future's type", - _null_: "`null` encountered as the result from expression with type `Never`." - }; - var type$ = (function rtii() { - var findType = A.findType; - return { - AsyncError: findType("AsyncError"), - ComponentFactory_legacy_GoldenComponent: findType("ComponentFactory"), - Duration: findType("Duration"), - Error: findType("Error"), - Function: findType("Function"), - Future_Object: findType("Future"), - Future_dynamic: findType("Future<@>"), - HtmlElement: findType("HtmlElement"), - Injector: findType("Injector"), - Injector_Function: findType("Injector()"), - Iterable_dynamic: findType("Iterable<@>"), - JSArray_ChangeDetectorRef: findType("JSArray"), - JSArray_ComponentRef_void: findType("JSArray>"), - JSArray_DynamicView: findType("JSArray"), - JSArray_Node: findType("JSArray"), - JSArray_Object: findType("JSArray"), - JSArray_String: findType("JSArray"), - JSArray__WrappedTimer: findType("JSArray<_WrappedTimer>"), - JSArray_dynamic: findType("JSArray<@>"), - JSArray_of_void_Function: findType("JSArray<~()>"), - JSNull: findType("JSNull"), - JavaScriptFunction: findType("JavaScriptFunction"), - JavaScriptIndexingBehavior_dynamic: findType("JavaScriptIndexingBehavior<@>"), - List_DynamicView: findType("List"), - List_List_Object: findType("List>"), - Null: findType("Null"), - Null_Function: findType("Null()"), - Object: findType("Object"), - Object_Function: findType("Object()"), - OpaqueToken_String: findType("OpaqueToken"), - Record: findType("Record"), - StackTrace: findType("StackTrace"), - String: findType("String"), - Timer: findType("Timer"), - TypeError: findType("TypeError"), - UncaughtError: findType("UncaughtError"), - UnknownJavaScriptObject: findType("UnknownJavaScriptObject"), - Zone: findType("Zone"), - _Future_dynamic: findType("_Future<@>"), - _Future_int: findType("_Future"), - _IdentityHashMap_Object_Object: findType("_IdentityHashMap"), - _ZoneFunction_of_A_Function_A_extends_nullable_Object_4_Zone_and_ZoneDelegate_and_Zone_and_A_Function: findType("_ZoneFunction<0^(Zone,ZoneDelegate,Zone,0^())>"), - _ZoneFunction_of_A_Function_A_extends_nullable_Object_and_B_extends_nullable_Object_5_Zone_and_ZoneDelegate_and_Zone_and_A_Function_B_and_B: findType("_ZoneFunction<0^(Zone,ZoneDelegate,Zone,0^(1^),1^)>"), - _ZoneFunction_of_A_Function_A_extends_nullable_Object_and_B_extends_nullable_Object_and_C_extends_nullable_Object_6_Zone_and_ZoneDelegate_and_Zone_and_A_Function_2_B_and_C_and_B_and_C: findType("_ZoneFunction<0^(Zone,ZoneDelegate,Zone,0^(1^,2^),1^,2^)>"), - _ZoneFunction_of_Timer_Function_5_Zone_and_ZoneDelegate_and_Zone_and_Duration_and_void_Function: findType("_ZoneFunction"), - _ZoneFunction_of_void_Function_4_Zone_and_ZoneDelegate_and_Zone_and_void_Function: findType("_ZoneFunction<~(Zone,ZoneDelegate,Zone,~())>"), - _ZoneFunction_of_void_Function_Zone_ZoneDelegate_Zone_Object_StackTrace: findType("_ZoneFunction<~(Zone,ZoneDelegate,Zone,Object,StackTrace)>"), - bool: findType("bool"), - bool_Function_Object: findType("bool(Object)"), - double: findType("double"), - dynamic: findType("@"), - dynamic_Function: findType("@()"), - dynamic_Function_Object: findType("@(Object)"), - dynamic_Function_Object_StackTrace: findType("@(Object,StackTrace)"), - int: findType("int"), - legacy_GoldenComponent: findType("GoldenComponent*"), - legacy_Never: findType("0&*"), - legacy_Object: findType("Object*"), - legacy_RenderView: findType("RenderView*"), - nullable_Future_Null: findType("Future?"), - nullable_List_DynamicView: findType("List?"), - nullable_List_List_Object: findType("List>?"), - nullable_List_StreamSubscription_void: findType("List>?"), - nullable_List_of_void_Function: findType("List<~()>?"), - nullable_Map_of_nullable_Object_and_nullable_Object: findType("Map?"), - nullable_Object: findType("Object?"), - nullable_StackTrace: findType("StackTrace?"), - nullable_Zone: findType("Zone?"), - nullable_ZoneDelegate: findType("ZoneDelegate?"), - nullable_ZoneSpecification: findType("ZoneSpecification?"), - nullable__DelayedEvent_dynamic: findType("_DelayedEvent<@>?"), - nullable__FutureListener_dynamic_dynamic: findType("_FutureListener<@,@>?"), - nullable_void_Function: findType("~()?"), - num: findType("num"), - void: findType("~"), - void_Function: findType("~()"), - void_Function_Object: findType("~(Object)"), - void_Function_Object_StackTrace: findType("~(Object,StackTrace)"), - void_Function_Timer: findType("~(Timer)"), - void_Function_Zone_ZoneDelegate_Zone_Object_StackTrace: findType("~(Zone,ZoneDelegate,Zone,Object,StackTrace)") - }; - })(); - (function constants() { - var makeConstList = hunkHelpers.makeConstList; - B.Interceptor_methods = J.Interceptor.prototype; - B.JSArray_methods = J.JSArray.prototype; - B.JSInt_methods = J.JSInt.prototype; - B.JSString_methods = J.JSString.prototype; - B.JavaScriptFunction_methods = J.JavaScriptFunction.prototype; - B.JavaScriptObject_methods = J.JavaScriptObject.prototype; - B.PlainJavaScriptObject_methods = J.PlainJavaScriptObject.prototype; - B.StyleElement_methods = A.StyleElement.prototype; - B.UnknownJavaScriptObject_methods = J.UnknownJavaScriptObject.prototype; - B.C_ComponentLoader = new A.ComponentLoader(); - B.C_ExceptionHandler = new A.ExceptionHandler(); - B.C_JS_CONST = function getTagFallback(o) { - var s = Object.prototype.toString.call(o); - return s.substring(8, s.length - 1); -}; - B.C_JS_CONST0 = function() { - var toStringFunction = Object.prototype.toString; - function getTag(o) { - var s = toStringFunction.call(o); - return s.substring(8, s.length - 1); - } - function getUnknownTag(object, tag) { - if (/^HTML[A-Z].*Element$/.test(tag)) { - var name = toStringFunction.call(object); - if (name == "[object Object]") return null; - return "HTMLElement"; - } - } - function getUnknownTagGenericBrowser(object, tag) { - if (self.HTMLElement && object instanceof HTMLElement) return "HTMLElement"; - return getUnknownTag(object, tag); - } - function prototypeForTag(tag) { - if (typeof window == "undefined") return null; - if (typeof window[tag] == "undefined") return null; - var constructor = window[tag]; - if (typeof constructor != "function") return null; - return constructor.prototype; - } - function discriminator(tag) { return null; } - var isBrowser = typeof navigator == "object"; - return { - getTag: getTag, - getUnknownTag: isBrowser ? getUnknownTagGenericBrowser : getUnknownTag, - prototypeForTag: prototypeForTag, - discriminator: discriminator }; -}; - B.C_JS_CONST6 = function(getTagFallback) { - return function(hooks) { - if (typeof navigator != "object") return hooks; - var ua = navigator.userAgent; - if (ua.indexOf("DumpRenderTree") >= 0) return hooks; - if (ua.indexOf("Chrome") >= 0) { - function confirm(p) { - return typeof window == "object" && window[p] && window[p].name == p; - } - if (confirm("Window") && confirm("HTMLElement")) return hooks; - } - hooks.getTag = getTagFallback; - }; -}; - B.C_JS_CONST1 = function(hooks) { - if (typeof dartExperimentalFixupGetTag != "function") return hooks; - hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag); -}; - B.C_JS_CONST2 = function(hooks) { - var getTag = hooks.getTag; - var prototypeForTag = hooks.prototypeForTag; - function getTagFixed(o) { - var tag = getTag(o); - if (tag == "Document") { - if (!!o.xmlVersion) return "!Document"; - return "!HTMLDocument"; - } - return tag; - } - function prototypeForTagFixed(tag) { - if (tag == "Document") return null; - return prototypeForTag(tag); - } - hooks.getTag = getTagFixed; - hooks.prototypeForTag = prototypeForTagFixed; -}; - B.C_JS_CONST5 = function(hooks) { - var userAgent = typeof navigator == "object" ? navigator.userAgent : ""; - if (userAgent.indexOf("Firefox") == -1) return hooks; - var getTag = hooks.getTag; - var quickMap = { - "BeforeUnloadEvent": "Event", - "DataTransfer": "Clipboard", - "GeoGeolocation": "Geolocation", - "Location": "!Location", - "WorkerMessageEvent": "MessageEvent", - "XMLDocument": "!Document"}; - function getTagFirefox(o) { - var tag = getTag(o); - return quickMap[tag] || tag; - } - hooks.getTag = getTagFirefox; -}; - B.C_JS_CONST4 = function(hooks) { - var userAgent = typeof navigator == "object" ? navigator.userAgent : ""; - if (userAgent.indexOf("Trident/") == -1) return hooks; - var getTag = hooks.getTag; - var quickMap = { - "BeforeUnloadEvent": "Event", - "DataTransfer": "Clipboard", - "HTMLDDElement": "HTMLElement", - "HTMLDTElement": "HTMLElement", - "HTMLPhraseElement": "HTMLElement", - "Position": "Geoposition" - }; - function getTagIE(o) { - var tag = getTag(o); - var newTag = quickMap[tag]; - if (newTag) return newTag; - if (tag == "Object") { - if (window.DataView && (o instanceof window.DataView)) return "DataView"; - } - return tag; - } - function prototypeForTagIE(tag) { - var constructor = window[tag]; - if (constructor == null) return null; - return constructor.prototype; - } - hooks.getTag = getTagIE; - hooks.prototypeForTag = prototypeForTagIE; -}; - B.C_JS_CONST3 = function(hooks) { return hooks; } -; - B.C_Object = new A.Object(); - B.C_OpaqueToken = new A.OpaqueToken(A.findType("OpaqueToken")); - B.C_OutOfMemoryError = new A.OutOfMemoryError(); - B.C__EmptyInjector = new A._EmptyInjector(); - B.C__JSRandom = new A._JSRandom(); - B.C__RootZone = new A._RootZone(); - B.C__StringStackTrace = new A._StringStackTrace(); - B.ChangeDetectionCheckedState_0 = new A.ChangeDetectionCheckedState("checkOnce"); - B.ChangeDetectionCheckedState_1 = new A.ChangeDetectionCheckedState("waitingForMarkForCheck"); - B.ChangeDetectionCheckedState_2 = new A.ChangeDetectionCheckedState("checkAlways"); - B.ChangeDetectionCheckedState_3 = new A.ChangeDetectionCheckedState("waitingToBeAttached"); - B.ChangeDetectorState_0 = new A.ChangeDetectorState("neverChecked"); - B.ChangeDetectorState_1 = new A.ChangeDetectorState("checkedBefore"); - B.ChangeDetectorState_2 = new A.ChangeDetectorState("errored"); - B.Duration_0 = new A.Duration(0); - B.List_empty0 = A._setArrayType(makeConstList([]), type$.JSArray_dynamic); - B.List_empty = A._setArrayType(makeConstList([]), A.findType("JSArray*>")); - B.Type_AppViewUtils_NWH = A.typeLiteral("AppViewUtils"); - B.Type_ApplicationRef_Aij = A.typeLiteral("ApplicationRef"); - B.Type_ComponentLoader_7xV = A.typeLiteral("ComponentLoader"); - B.Type_ExceptionHandler_qBE = A.typeLiteral("ExceptionHandler"); - B.Type_Injector_aJC = A.typeLiteral("Injector"); - B.Type_NgZone_6ty = A.typeLiteral("NgZone"); - B.Type_Testability_h8g = A.typeLiteral("Testability"); - B._ZoneFunction_3bB = new A._ZoneFunction(B.C__RootZone, A.async___rootCreatePeriodicTimer$closure(), A.findType("_ZoneFunction")); - B._ZoneFunction_7G2 = new A._ZoneFunction(B.C__RootZone, A.async___rootRegisterBinaryCallback$closure(), A.findType("_ZoneFunction<0^*(1^*,2^*)*(Zone*,ZoneDelegate*,Zone*,0^*(1^*,2^*)*)*>")); - B._ZoneFunction_Eeh = new A._ZoneFunction(B.C__RootZone, A.async___rootRegisterUnaryCallback$closure(), A.findType("_ZoneFunction<0^*(1^*)*(Zone*,ZoneDelegate*,Zone*,0^*(1^*)*)*>")); - B._ZoneFunction_NMc = new A._ZoneFunction(B.C__RootZone, A.async___rootHandleUncaughtError$closure(), A.findType("_ZoneFunction<~(Zone*,ZoneDelegate*,Zone*,Object*,StackTrace*)*>")); - B._ZoneFunction__RootZone__rootCreateTimer = new A._ZoneFunction(B.C__RootZone, A.async___rootCreateTimer$closure(), A.findType("_ZoneFunction")); - B._ZoneFunction__RootZone__rootErrorCallback = new A._ZoneFunction(B.C__RootZone, A.async___rootErrorCallback$closure(), A.findType("_ZoneFunction")); - B._ZoneFunction__RootZone__rootFork = new A._ZoneFunction(B.C__RootZone, A.async___rootFork$closure(), A.findType("_ZoneFunction?)*>")); - B._ZoneFunction__RootZone__rootPrint = new A._ZoneFunction(B.C__RootZone, A.async___rootPrint$closure(), A.findType("_ZoneFunction<~(Zone*,ZoneDelegate*,Zone*,String*)*>")); - B._ZoneFunction__RootZone__rootRegisterCallback = new A._ZoneFunction(B.C__RootZone, A.async___rootRegisterCallback$closure(), A.findType("_ZoneFunction<0^*()*(Zone*,ZoneDelegate*,Zone*,0^*()*)*>")); - B._ZoneFunction__RootZone__rootRun = new A._ZoneFunction(B.C__RootZone, A.async___rootRun$closure(), A.findType("_ZoneFunction<0^*(Zone*,ZoneDelegate*,Zone*,0^*()*)*>")); - B._ZoneFunction__RootZone__rootRunBinary = new A._ZoneFunction(B.C__RootZone, A.async___rootRunBinary$closure(), A.findType("_ZoneFunction<0^*(Zone*,ZoneDelegate*,Zone*,0^*(1^*,2^*)*,1^*,2^*)*>")); - B._ZoneFunction__RootZone__rootRunUnary = new A._ZoneFunction(B.C__RootZone, A.async___rootRunUnary$closure(), A.findType("_ZoneFunction<0^*(Zone*,ZoneDelegate*,Zone*,0^*(1^*)*,1^*)*>")); - B._ZoneFunction__RootZone__rootScheduleMicrotask = new A._ZoneFunction(B.C__RootZone, A.async___rootScheduleMicrotask$closure(), A.findType("_ZoneFunction<~(Zone*,ZoneDelegate*,Zone*,~()*)*>")); - B._ZoneSpecification_ALf = new A._ZoneSpecification(null, null, null, null, null, null, null, null, null, null, null, null, null); - })(); - (function staticFields() { - $._JS_INTEROP_INTERCEPTOR_TAG = null; - $.Primitives__identityHashCodeProperty = null; - $.BoundClosure__receiverFieldNameCache = null; - $.BoundClosure__interceptorFieldNameCache = null; - $.getTagFunction = null; - $.alternateTagFunction = null; - $.prototypeForTagFunction = null; - $.dispatchRecordsForInstanceTags = null; - $.interceptorsForUncacheableTags = null; - $.initNativeDispatchFlag = null; - $._nextCallback = null; - $._lastCallback = null; - $._lastPriorityCallback = null; - $._isInCallbackLoop = false; - $.Zone__current = B.C__RootZone; - $._RootZone__rootDelegate = null; - $._toStringVisiting = A._setArrayType([], type$.JSArray_Object); - $.ChangeDetectionHost__current = null; - $.__appViewUtils = A._Cell$named("appViewUtils"); - $.domRootRendererIsDirty = false; - $.ViewGoldenComponent0__componentStyles = null; - $.ViewChildComponent0__componentStyles = null; - })(); - (function lazyInitializers() { - var _lazyFinal = hunkHelpers.lazyFinal; - _lazyFinal($, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", () => A.getIsolateAffinityTag("_$dart_dartClosure")); - _lazyFinal($, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn({ - toString: function() { - return "$receiver$"; - } - }))); - _lazyFinal($, "TypeErrorDecoder_notClosurePattern", "$get$TypeErrorDecoder_notClosurePattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn({$method$: null, - toString: function() { - return "$receiver$"; - } - }))); - _lazyFinal($, "TypeErrorDecoder_nullCallPattern", "$get$TypeErrorDecoder_nullCallPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn(null))); - _lazyFinal($, "TypeErrorDecoder_nullLiteralCallPattern", "$get$TypeErrorDecoder_nullLiteralCallPattern", () => A.TypeErrorDecoder_extractPattern(function() { - var $argumentsExpr$ = "$arguments$"; - try { - null.$method$($argumentsExpr$); - } catch (e) { - return e.message; - } - }())); - _lazyFinal($, "TypeErrorDecoder_undefinedCallPattern", "$get$TypeErrorDecoder_undefinedCallPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn(void 0))); - _lazyFinal($, "TypeErrorDecoder_undefinedLiteralCallPattern", "$get$TypeErrorDecoder_undefinedLiteralCallPattern", () => A.TypeErrorDecoder_extractPattern(function() { - var $argumentsExpr$ = "$arguments$"; - try { - (void 0).$method$($argumentsExpr$); - } catch (e) { - return e.message; - } - }())); - _lazyFinal($, "TypeErrorDecoder_nullPropertyPattern", "$get$TypeErrorDecoder_nullPropertyPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokePropertyErrorOn(null))); - _lazyFinal($, "TypeErrorDecoder_nullLiteralPropertyPattern", "$get$TypeErrorDecoder_nullLiteralPropertyPattern", () => A.TypeErrorDecoder_extractPattern(function() { - try { - null.$method$; - } catch (e) { - return e.message; - } - }())); - _lazyFinal($, "TypeErrorDecoder_undefinedPropertyPattern", "$get$TypeErrorDecoder_undefinedPropertyPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokePropertyErrorOn(void 0))); - _lazyFinal($, "TypeErrorDecoder_undefinedLiteralPropertyPattern", "$get$TypeErrorDecoder_undefinedLiteralPropertyPattern", () => A.TypeErrorDecoder_extractPattern(function() { - try { - (void 0).$method$; - } catch (e) { - return e.message; - } - }())); - _lazyFinal($, "_AsyncRun__scheduleImmediateClosure", "$get$_AsyncRun__scheduleImmediateClosure", () => A._AsyncRun__initializeScheduleImmediate()); - _lazyFinal($, "_RootZone__rootMap", "$get$_RootZone__rootMap", () => { - var t1 = type$.dynamic; - return A.HashMap_HashMap(t1, t1); - }); - })(); - (function nativeSupport() { - !function() { - var intern = function(s) { - var o = {}; - o[s] = 1; - return Object.keys(hunkHelpers.convertToFastObject(o))[0]; - }; - init.getIsolateTag = function(name) { - return intern("___dart_" + name + init.isolateTag); - }; - var tableProperty = "___dart_isolate_tags_"; - var usedProperties = Object[tableProperty] || (Object[tableProperty] = Object.create(null)); - var rootProperty = "_ZxYxX"; - for (var i = 0;; i++) { - var property = intern(rootProperty + "_" + i + "_"); - if (!(property in usedProperties)) { - usedProperties[property] = 1; - init.isolateTag = property; - break; - } - } - init.dispatchPropertyName = init.getIsolateTag("dispatch_record"); - }(); - hunkHelpers.setOrUpdateInterceptorsByTag({ApplicationCacheErrorEvent: J.JavaScriptObject, DOMError: J.JavaScriptObject, ErrorEvent: J.JavaScriptObject, Event: J.JavaScriptObject, InputEvent: J.JavaScriptObject, SubmitEvent: J.JavaScriptObject, MediaError: J.JavaScriptObject, NavigatorUserMediaError: J.JavaScriptObject, OverconstrainedError: J.JavaScriptObject, PositionError: J.JavaScriptObject, GeolocationPositionError: J.JavaScriptObject, SensorErrorEvent: J.JavaScriptObject, SpeechRecognitionError: J.JavaScriptObject, TreeWalker: J.JavaScriptObject, ArrayBufferView: A.NativeTypedData, Int8Array: A.NativeTypedArrayOfInt, Uint16Array: A.NativeTypedArrayOfInt, Uint8Array: A.NativeUint8List, HTMLAudioElement: A.HtmlElement, HTMLBRElement: A.HtmlElement, HTMLBaseElement: A.HtmlElement, HTMLBodyElement: A.HtmlElement, HTMLButtonElement: A.HtmlElement, HTMLCanvasElement: A.HtmlElement, HTMLContentElement: A.HtmlElement, HTMLDListElement: A.HtmlElement, HTMLDataElement: A.HtmlElement, HTMLDataListElement: A.HtmlElement, HTMLDetailsElement: A.HtmlElement, HTMLDialogElement: A.HtmlElement, HTMLDivElement: A.HtmlElement, HTMLEmbedElement: A.HtmlElement, HTMLFieldSetElement: A.HtmlElement, HTMLHRElement: A.HtmlElement, HTMLHeadElement: A.HtmlElement, HTMLHeadingElement: A.HtmlElement, HTMLHtmlElement: A.HtmlElement, HTMLIFrameElement: A.HtmlElement, HTMLImageElement: A.HtmlElement, HTMLInputElement: A.HtmlElement, HTMLLIElement: A.HtmlElement, HTMLLabelElement: A.HtmlElement, HTMLLegendElement: A.HtmlElement, HTMLLinkElement: A.HtmlElement, HTMLMapElement: A.HtmlElement, HTMLMediaElement: A.HtmlElement, HTMLMenuElement: A.HtmlElement, HTMLMetaElement: A.HtmlElement, HTMLMeterElement: A.HtmlElement, HTMLModElement: A.HtmlElement, HTMLOListElement: A.HtmlElement, HTMLObjectElement: A.HtmlElement, HTMLOptGroupElement: A.HtmlElement, HTMLOptionElement: A.HtmlElement, HTMLOutputElement: A.HtmlElement, HTMLParagraphElement: A.HtmlElement, HTMLParamElement: A.HtmlElement, HTMLPictureElement: A.HtmlElement, HTMLPreElement: A.HtmlElement, HTMLProgressElement: A.HtmlElement, HTMLQuoteElement: A.HtmlElement, HTMLScriptElement: A.HtmlElement, HTMLShadowElement: A.HtmlElement, HTMLSlotElement: A.HtmlElement, HTMLSourceElement: A.HtmlElement, HTMLSpanElement: A.HtmlElement, HTMLTableCaptionElement: A.HtmlElement, HTMLTableCellElement: A.HtmlElement, HTMLTableDataCellElement: A.HtmlElement, HTMLTableHeaderCellElement: A.HtmlElement, HTMLTableColElement: A.HtmlElement, HTMLTableElement: A.HtmlElement, HTMLTableRowElement: A.HtmlElement, HTMLTableSectionElement: A.HtmlElement, HTMLTemplateElement: A.HtmlElement, HTMLTextAreaElement: A.HtmlElement, HTMLTimeElement: A.HtmlElement, HTMLTitleElement: A.HtmlElement, HTMLTrackElement: A.HtmlElement, HTMLUListElement: A.HtmlElement, HTMLUnknownElement: A.HtmlElement, HTMLVideoElement: A.HtmlElement, HTMLDirectoryElement: A.HtmlElement, HTMLFontElement: A.HtmlElement, HTMLFrameElement: A.HtmlElement, HTMLFrameSetElement: A.HtmlElement, HTMLMarqueeElement: A.HtmlElement, HTMLElement: A.HtmlElement, HTMLAnchorElement: A.AnchorElement, HTMLAreaElement: A.AreaElement, CDATASection: A.CharacterData, CharacterData: A.CharacterData, Comment: A.CharacterData, ProcessingInstruction: A.CharacterData, Text: A.CharacterData, DOMException: A.DomException, DOMTokenList: A.DomTokenList, MathMLElement: A.Element, SVGAElement: A.Element, SVGAnimateElement: A.Element, SVGAnimateMotionElement: A.Element, SVGAnimateTransformElement: A.Element, SVGAnimationElement: A.Element, SVGCircleElement: A.Element, SVGClipPathElement: A.Element, SVGDefsElement: A.Element, SVGDescElement: A.Element, SVGDiscardElement: A.Element, SVGEllipseElement: A.Element, SVGFEBlendElement: A.Element, SVGFEColorMatrixElement: A.Element, SVGFEComponentTransferElement: A.Element, SVGFECompositeElement: A.Element, SVGFEConvolveMatrixElement: A.Element, SVGFEDiffuseLightingElement: A.Element, SVGFEDisplacementMapElement: A.Element, SVGFEDistantLightElement: A.Element, SVGFEFloodElement: A.Element, SVGFEFuncAElement: A.Element, SVGFEFuncBElement: A.Element, SVGFEFuncGElement: A.Element, SVGFEFuncRElement: A.Element, SVGFEGaussianBlurElement: A.Element, SVGFEImageElement: A.Element, SVGFEMergeElement: A.Element, SVGFEMergeNodeElement: A.Element, SVGFEMorphologyElement: A.Element, SVGFEOffsetElement: A.Element, SVGFEPointLightElement: A.Element, SVGFESpecularLightingElement: A.Element, SVGFESpotLightElement: A.Element, SVGFETileElement: A.Element, SVGFETurbulenceElement: A.Element, SVGFilterElement: A.Element, SVGForeignObjectElement: A.Element, SVGGElement: A.Element, SVGGeometryElement: A.Element, SVGGraphicsElement: A.Element, SVGImageElement: A.Element, SVGLineElement: A.Element, SVGLinearGradientElement: A.Element, SVGMarkerElement: A.Element, SVGMaskElement: A.Element, SVGMetadataElement: A.Element, SVGPathElement: A.Element, SVGPatternElement: A.Element, SVGPolygonElement: A.Element, SVGPolylineElement: A.Element, SVGRadialGradientElement: A.Element, SVGRectElement: A.Element, SVGScriptElement: A.Element, SVGSetElement: A.Element, SVGStopElement: A.Element, SVGStyleElement: A.Element, SVGElement: A.Element, SVGSVGElement: A.Element, SVGSwitchElement: A.Element, SVGSymbolElement: A.Element, SVGTSpanElement: A.Element, SVGTextContentElement: A.Element, SVGTextElement: A.Element, SVGTextPathElement: A.Element, SVGTextPositioningElement: A.Element, SVGTitleElement: A.Element, SVGUseElement: A.Element, SVGViewElement: A.Element, SVGGradientElement: A.Element, SVGComponentTransferFunctionElement: A.Element, SVGFEDropShadowElement: A.Element, SVGMPathElement: A.Element, Element: A.Element, Window: A.EventTarget, DOMWindow: A.EventTarget, EventTarget: A.EventTarget, HTMLFormElement: A.FormElement, Document: A.Node, DocumentFragment: A.Node, HTMLDocument: A.Node, ShadowRoot: A.Node, XMLDocument: A.Node, Attr: A.Node, DocumentType: A.Node, Node: A.Node, HTMLSelectElement: A.SelectElement, HTMLStyleElement: A.StyleElement}); - hunkHelpers.setOrUpdateLeafTags({ApplicationCacheErrorEvent: true, DOMError: true, ErrorEvent: true, Event: true, InputEvent: true, SubmitEvent: true, MediaError: true, NavigatorUserMediaError: true, OverconstrainedError: true, PositionError: true, GeolocationPositionError: true, SensorErrorEvent: true, SpeechRecognitionError: true, TreeWalker: true, ArrayBufferView: false, Int8Array: true, Uint16Array: true, Uint8Array: false, HTMLAudioElement: true, HTMLBRElement: true, HTMLBaseElement: true, HTMLBodyElement: true, HTMLButtonElement: true, HTMLCanvasElement: true, HTMLContentElement: true, HTMLDListElement: true, HTMLDataElement: true, HTMLDataListElement: true, HTMLDetailsElement: true, HTMLDialogElement: true, HTMLDivElement: true, HTMLEmbedElement: true, HTMLFieldSetElement: true, HTMLHRElement: true, HTMLHeadElement: true, HTMLHeadingElement: true, HTMLHtmlElement: true, HTMLIFrameElement: true, HTMLImageElement: true, HTMLInputElement: true, HTMLLIElement: true, HTMLLabelElement: true, HTMLLegendElement: true, HTMLLinkElement: true, HTMLMapElement: true, HTMLMediaElement: true, HTMLMenuElement: true, HTMLMetaElement: true, HTMLMeterElement: true, HTMLModElement: true, HTMLOListElement: true, HTMLObjectElement: true, HTMLOptGroupElement: true, HTMLOptionElement: true, HTMLOutputElement: true, HTMLParagraphElement: true, HTMLParamElement: true, HTMLPictureElement: true, HTMLPreElement: true, HTMLProgressElement: true, HTMLQuoteElement: true, HTMLScriptElement: true, HTMLShadowElement: true, HTMLSlotElement: true, HTMLSourceElement: true, HTMLSpanElement: true, HTMLTableCaptionElement: true, HTMLTableCellElement: true, HTMLTableDataCellElement: true, HTMLTableHeaderCellElement: true, HTMLTableColElement: true, HTMLTableElement: true, HTMLTableRowElement: true, HTMLTableSectionElement: true, HTMLTemplateElement: true, HTMLTextAreaElement: true, HTMLTimeElement: true, HTMLTitleElement: true, HTMLTrackElement: true, HTMLUListElement: true, HTMLUnknownElement: true, HTMLVideoElement: true, HTMLDirectoryElement: true, HTMLFontElement: true, HTMLFrameElement: true, HTMLFrameSetElement: true, HTMLMarqueeElement: true, HTMLElement: false, HTMLAnchorElement: true, HTMLAreaElement: true, CDATASection: true, CharacterData: true, Comment: true, ProcessingInstruction: true, Text: true, DOMException: true, DOMTokenList: true, MathMLElement: true, SVGAElement: true, SVGAnimateElement: true, SVGAnimateMotionElement: true, SVGAnimateTransformElement: true, SVGAnimationElement: true, SVGCircleElement: true, SVGClipPathElement: true, SVGDefsElement: true, SVGDescElement: true, SVGDiscardElement: true, SVGEllipseElement: true, SVGFEBlendElement: true, SVGFEColorMatrixElement: true, SVGFEComponentTransferElement: true, SVGFECompositeElement: true, SVGFEConvolveMatrixElement: true, SVGFEDiffuseLightingElement: true, SVGFEDisplacementMapElement: true, SVGFEDistantLightElement: true, SVGFEFloodElement: true, SVGFEFuncAElement: true, SVGFEFuncBElement: true, SVGFEFuncGElement: true, SVGFEFuncRElement: true, SVGFEGaussianBlurElement: true, SVGFEImageElement: true, SVGFEMergeElement: true, SVGFEMergeNodeElement: true, SVGFEMorphologyElement: true, SVGFEOffsetElement: true, SVGFEPointLightElement: true, SVGFESpecularLightingElement: true, SVGFESpotLightElement: true, SVGFETileElement: true, SVGFETurbulenceElement: true, SVGFilterElement: true, SVGForeignObjectElement: true, SVGGElement: true, SVGGeometryElement: true, SVGGraphicsElement: true, SVGImageElement: true, SVGLineElement: true, SVGLinearGradientElement: true, SVGMarkerElement: true, SVGMaskElement: true, SVGMetadataElement: true, SVGPathElement: true, SVGPatternElement: true, SVGPolygonElement: true, SVGPolylineElement: true, SVGRadialGradientElement: true, SVGRectElement: true, SVGScriptElement: true, SVGSetElement: true, SVGStopElement: true, SVGStyleElement: true, SVGElement: true, SVGSVGElement: true, SVGSwitchElement: true, SVGSymbolElement: true, SVGTSpanElement: true, SVGTextContentElement: true, SVGTextElement: true, SVGTextPathElement: true, SVGTextPositioningElement: true, SVGTitleElement: true, SVGUseElement: true, SVGViewElement: true, SVGGradientElement: true, SVGComponentTransferFunctionElement: true, SVGFEDropShadowElement: true, SVGMPathElement: true, Element: false, Window: true, DOMWindow: true, EventTarget: false, HTMLFormElement: true, Document: true, DocumentFragment: true, HTMLDocument: true, ShadowRoot: true, XMLDocument: true, Attr: true, DocumentType: true, Node: false, HTMLSelectElement: true, HTMLStyleElement: true}); - A.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView"; - A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView"; - A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView"; - A.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView"; - })(); - Function.prototype.call$1 = function(a) { - return this(a); - }; - Function.prototype.call$0 = function() { - return this(); - }; - Function.prototype.call$2 = function(a, b) { - return this(a, b); - }; - Function.prototype.call$1$1 = function(a) { - return this(a); - }; - Function.prototype.call$2$1 = function(a) { - return this(a); - }; - Function.prototype.call$3 = function(a, b, c) { - return this(a, b, c); - }; - Function.prototype.call$4 = function(a, b, c, d) { - return this(a, b, c, d); - }; - Function.prototype.call$3$3 = function(a, b, c) { - return this(a, b, c); - }; - Function.prototype.call$2$2 = function(a, b) { - return this(a, b); - }; - Function.prototype.call$3$1 = function(a) { - return this(a); - }; - Function.prototype.call$5 = function(a, b, c, d, e) { - return this(a, b, c, d, e); - }; - Function.prototype.call$3$6 = function(a, b, c, d, e, f) { - return this(a, b, c, d, e, f); - }; - Function.prototype.call$2$5 = function(a, b, c, d, e) { - return this(a, b, c, d, e); - }; - Function.prototype.call$1$4 = function(a, b, c, d) { - return this(a, b, c, d); - }; - Function.prototype.call$3$4 = function(a, b, c, d) { - return this(a, b, c, d); - }; - Function.prototype.call$2$4 = function(a, b, c, d) { - return this(a, b, c, d); - }; - Function.prototype.call$1$2 = function(a, b) { - return this(a, b); - }; - convertAllToFastObject(holders); - convertToFastObject($); - (function(callback) { - if (typeof document === "undefined") { - callback(null); - return; - } - if (typeof document.currentScript != "undefined") { - callback(document.currentScript); - return; - } - var scripts = document.scripts; - function onLoad(event) { - for (var i = 0; i < scripts.length; ++i) - scripts[i].removeEventListener("load", onLoad, false); - callback(event.target); - } - for (var i = 0; i < scripts.length; ++i) - scripts[i].addEventListener("load", onLoad, false); - })(function(currentScript) { - init.currentScript = currentScript; - var callMain = A.main; - if (typeof dartMainRunner === "function") - dartMainRunner(callMain, []); - else - callMain([]); - }); -})(); diff --git a/goldens/test/templates/large_templates_opt_out.template.dart.golden b/goldens/test/templates/large_templates_opt_out.template.dart.golden deleted file mode 100644 index 0c20f155b1..0000000000 --- a/goldens/test/templates/large_templates_opt_out.template.dart.golden +++ /dev/null @@ -1,3760 +0,0 @@ -// ************************************************************************** -// Generator: AngularDart Compiler -// ************************************************************************** - -// @dart=2.9 - -import 'large_templates_opt_out.dart'; -import 'package:ngdart/src/core/linker/views/component_view.dart' as import0; -import 'large_templates_opt_out.dart' as import1; -import 'package:ngdart/src/core/linker/view_container.dart'; -import 'package:ngdart/src/common/directives/ng_if.dart'; -import 'package:ngdart/src/core/linker/style_encapsulation.dart' as import4; -import 'package:ngdart/src/core/linker/views/view.dart' as import5; -import 'package:ngdart/src/meta/change_detection_constants.dart' as import6; -import 'package:ngdart/src/utilities.dart' as import7; -import 'dart:html' as import8; -import 'package:ngdart/src/runtime/dom_helpers.dart' as import9; -import 'package:ngdart/src/core/linker/template_ref.dart'; -import 'package:ngdart/src/devtools.dart' as import11; -import 'package:ngdart/angular.dart'; -import 'package:ngdart/src/core/linker/views/embedded_view.dart' as import13; -import 'package:ngdart/src/core/linker/views/render_view.dart' as import14; -import 'package:ngdart/src/core/linker/views/host_view.dart' as import15; - -final List styles$GoldenComponent = const []; - -class ViewGoldenComponent0 extends import0.ComponentView { - /*late final*/ ViewContainer _appEl_0; - /*late final*/ NgIf _NgIf_0_9; - /*late final*/ ViewContainer _appEl_1; - /*late final*/ NgIf _NgIf_1_9; - /*late final*/ ViewContainer _appEl_2; - /*late final*/ NgIf _NgIf_2_9; - /*late final*/ ViewContainer _appEl_3; - /*late final*/ NgIf _NgIf_3_9; - /*late final*/ ViewContainer _appEl_4; - /*late final*/ NgIf _NgIf_4_9; - /*late final*/ ViewContainer _appEl_5; - /*late final*/ NgIf _NgIf_5_9; - /*late final*/ ViewContainer _appEl_6; - /*late final*/ NgIf _NgIf_6_9; - /*late final*/ ViewContainer _appEl_7; - /*late final*/ NgIf _NgIf_7_9; - /*late final*/ ViewContainer _appEl_8; - /*late final*/ NgIf _NgIf_8_9; - /*late final*/ ViewContainer _appEl_9; - /*late final*/ NgIf _NgIf_9_9; - /*late final*/ ViewContainer _appEl_10; - /*late final*/ NgIf _NgIf_10_9; - /*late final*/ ViewContainer _appEl_11; - /*late final*/ NgIf _NgIf_11_9; - /*late final*/ ViewContainer _appEl_12; - /*late final*/ NgIf _NgIf_12_9; - /*late final*/ ViewContainer _appEl_13; - /*late final*/ NgIf _NgIf_13_9; - /*late final*/ ViewContainer _appEl_14; - /*late final*/ NgIf _NgIf_14_9; - /*late final*/ ViewContainer _appEl_15; - /*late final*/ NgIf _NgIf_15_9; - /*late final*/ ViewContainer _appEl_16; - /*late final*/ NgIf _NgIf_16_9; - /*late final*/ ViewContainer _appEl_17; - /*late final*/ NgIf _NgIf_17_9; - /*late final*/ ViewContainer _appEl_18; - /*late final*/ NgIf _NgIf_18_9; - /*late final*/ ViewContainer _appEl_19; - /*late final*/ NgIf _NgIf_19_9; - /*late final*/ ViewContainer _appEl_20; - /*late final*/ NgIf _NgIf_20_9; - /*late final*/ ViewContainer _appEl_21; - /*late final*/ NgIf _NgIf_21_9; - /*late final*/ ViewContainer _appEl_22; - /*late final*/ NgIf _NgIf_22_9; - /*late final*/ ViewContainer _appEl_23; - /*late final*/ NgIf _NgIf_23_9; - /*late final*/ ViewContainer _appEl_24; - /*late final*/ NgIf _NgIf_24_9; - /*late final*/ ViewContainer _appEl_25; - /*late final*/ NgIf _NgIf_25_9; - /*late final*/ ViewContainer _appEl_26; - /*late final*/ NgIf _NgIf_26_9; - /*late final*/ ViewContainer _appEl_27; - /*late final*/ NgIf _NgIf_27_9; - /*late final*/ ViewContainer _appEl_28; - /*late final*/ NgIf _NgIf_28_9; - /*late final*/ ViewContainer _appEl_29; - /*late final*/ NgIf _NgIf_29_9; - /*late final*/ ViewContainer _appEl_30; - /*late final*/ NgIf _NgIf_30_9; - /*late final*/ ViewContainer _appEl_31; - /*late final*/ NgIf _NgIf_31_9; - /*late final*/ ViewContainer _appEl_32; - /*late final*/ NgIf _NgIf_32_9; - /*late final*/ ViewContainer _appEl_33; - /*late final*/ NgIf _NgIf_33_9; - /*late final*/ ViewContainer _appEl_34; - /*late final*/ NgIf _NgIf_34_9; - /*late final*/ ViewContainer _appEl_35; - /*late final*/ NgIf _NgIf_35_9; - /*late final*/ ViewContainer _appEl_36; - /*late final*/ NgIf _NgIf_36_9; - /*late final*/ ViewContainer _appEl_37; - /*late final*/ NgIf _NgIf_37_9; - /*late final*/ ViewContainer _appEl_38; - /*late final*/ NgIf _NgIf_38_9; - /*late final*/ ViewContainer _appEl_39; - /*late final*/ NgIf _NgIf_39_9; - /*late final*/ ViewContainer _appEl_40; - /*late final*/ NgIf _NgIf_40_9; - /*late final*/ ViewContainer _appEl_41; - /*late final*/ NgIf _NgIf_41_9; - /*late final*/ ViewContainer _appEl_42; - /*late final*/ NgIf _NgIf_42_9; - /*late final*/ ViewContainer _appEl_43; - /*late final*/ NgIf _NgIf_43_9; - /*late final*/ ViewContainer _appEl_44; - /*late final*/ NgIf _NgIf_44_9; - /*late final*/ ViewContainer _appEl_45; - /*late final*/ NgIf _NgIf_45_9; - /*late final*/ ViewContainer _appEl_46; - /*late final*/ NgIf _NgIf_46_9; - /*late final*/ ViewContainer _appEl_47; - /*late final*/ NgIf _NgIf_47_9; - /*late final*/ ViewContainer _appEl_48; - /*late final*/ NgIf _NgIf_48_9; - /*late final*/ ViewContainer _appEl_49; - /*late final*/ NgIf _NgIf_49_9; - /*late final*/ ViewContainer _appEl_50; - /*late final*/ NgIf _NgIf_50_9; - /*late final*/ ViewContainer _appEl_51; - /*late final*/ NgIf _NgIf_51_9; - /*late final*/ ViewContainer _appEl_52; - /*late final*/ NgIf _NgIf_52_9; - /*late final*/ ViewContainer _appEl_53; - /*late final*/ NgIf _NgIf_53_9; - /*late final*/ ViewContainer _appEl_54; - /*late final*/ NgIf _NgIf_54_9; - /*late final*/ ViewContainer _appEl_55; - /*late final*/ NgIf _NgIf_55_9; - /*late final*/ ViewContainer _appEl_56; - /*late final*/ NgIf _NgIf_56_9; - /*late final*/ ViewContainer _appEl_57; - /*late final*/ NgIf _NgIf_57_9; - /*late final*/ ViewContainer _appEl_58; - /*late final*/ NgIf _NgIf_58_9; - /*late final*/ ViewContainer _appEl_59; - /*late final*/ NgIf _NgIf_59_9; - /*late final*/ ViewContainer _appEl_60; - /*late final*/ NgIf _NgIf_60_9; - /*late final*/ ViewContainer _appEl_61; - /*late final*/ NgIf _NgIf_61_9; - /*late final*/ ViewContainer _appEl_62; - /*late final*/ NgIf _NgIf_62_9; - /*late final*/ ViewContainer _appEl_63; - /*late final*/ NgIf _NgIf_63_9; - /*late final*/ ViewContainer _appEl_64; - /*late final*/ NgIf _NgIf_64_9; - /*late final*/ ViewContainer _appEl_65; - /*late final*/ NgIf _NgIf_65_9; - /*late final*/ ViewContainer _appEl_66; - /*late final*/ NgIf _NgIf_66_9; - /*late final*/ ViewContainer _appEl_67; - /*late final*/ NgIf _NgIf_67_9; - /*late final*/ ViewContainer _appEl_68; - /*late final*/ NgIf _NgIf_68_9; - /*late final*/ ViewContainer _appEl_69; - /*late final*/ NgIf _NgIf_69_9; - /*late final*/ ViewContainer _appEl_70; - /*late final*/ NgIf _NgIf_70_9; - /*late final*/ ViewContainer _appEl_71; - /*late final*/ NgIf _NgIf_71_9; - /*late final*/ ViewContainer _appEl_72; - /*late final*/ NgIf _NgIf_72_9; - /*late final*/ ViewContainer _appEl_73; - /*late final*/ NgIf _NgIf_73_9; - /*late final*/ ViewContainer _appEl_74; - /*late final*/ NgIf _NgIf_74_9; - /*late final*/ ViewContainer _appEl_75; - /*late final*/ NgIf _NgIf_75_9; - /*late final*/ ViewContainer _appEl_76; - /*late final*/ NgIf _NgIf_76_9; - /*late final*/ ViewContainer _appEl_77; - /*late final*/ NgIf _NgIf_77_9; - /*late final*/ ViewContainer _appEl_78; - /*late final*/ NgIf _NgIf_78_9; - /*late final*/ ViewContainer _appEl_79; - /*late final*/ NgIf _NgIf_79_9; - /*late final*/ ViewContainer _appEl_80; - /*late final*/ NgIf _NgIf_80_9; - /*late final*/ ViewContainer _appEl_81; - /*late final*/ NgIf _NgIf_81_9; - /*late final*/ ViewContainer _appEl_82; - /*late final*/ NgIf _NgIf_82_9; - /*late final*/ ViewContainer _appEl_83; - /*late final*/ NgIf _NgIf_83_9; - static import4.ComponentStyles /*?*/ _componentStyles; - ViewGoldenComponent0(import5.View parentView, int parentIndex) : super(parentView, parentIndex, import6.ChangeDetectionCheckedState.checkAlways) { - this.initComponentStyles(); - this.rootElement = import7.unsafeCast(import8.document.createElement('golden')); - } - static String /*?*/ get _debugComponentUrl { - return (import7.isDevMode ? 'asset:goldens/test/templates/large_templates_opt_out.dart' : null); - } - - @override - void build() { - final parentRenderNode = this.initViewRoot(); - final _anchor_0 = import9.appendAnchor(parentRenderNode); - this._appEl_0 = ViewContainer(0, null, this, _anchor_0); - var _TemplateRef_0_8 = TemplateRef(this._appEl_0, viewFactory_GoldenComponent1); - this._NgIf_0_9 = NgIf(this._appEl_0, _TemplateRef_0_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_0, this._NgIf_0_9); - } - final _anchor_1 = import9.appendAnchor(parentRenderNode); - this._appEl_1 = ViewContainer(1, null, this, _anchor_1); - var _TemplateRef_1_8 = TemplateRef(this._appEl_1, viewFactory_GoldenComponent2); - this._NgIf_1_9 = NgIf(this._appEl_1, _TemplateRef_1_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_1, this._NgIf_1_9); - } - final _anchor_2 = import9.appendAnchor(parentRenderNode); - this._appEl_2 = ViewContainer(2, null, this, _anchor_2); - var _TemplateRef_2_8 = TemplateRef(this._appEl_2, viewFactory_GoldenComponent3); - this._NgIf_2_9 = NgIf(this._appEl_2, _TemplateRef_2_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_2, this._NgIf_2_9); - } - final _anchor_3 = import9.appendAnchor(parentRenderNode); - this._appEl_3 = ViewContainer(3, null, this, _anchor_3); - var _TemplateRef_3_8 = TemplateRef(this._appEl_3, viewFactory_GoldenComponent4); - this._NgIf_3_9 = NgIf(this._appEl_3, _TemplateRef_3_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_3, this._NgIf_3_9); - } - final _anchor_4 = import9.appendAnchor(parentRenderNode); - this._appEl_4 = ViewContainer(4, null, this, _anchor_4); - var _TemplateRef_4_8 = TemplateRef(this._appEl_4, viewFactory_GoldenComponent5); - this._NgIf_4_9 = NgIf(this._appEl_4, _TemplateRef_4_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_4, this._NgIf_4_9); - } - final _anchor_5 = import9.appendAnchor(parentRenderNode); - this._appEl_5 = ViewContainer(5, null, this, _anchor_5); - var _TemplateRef_5_8 = TemplateRef(this._appEl_5, viewFactory_GoldenComponent6); - this._NgIf_5_9 = NgIf(this._appEl_5, _TemplateRef_5_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_5, this._NgIf_5_9); - } - final _anchor_6 = import9.appendAnchor(parentRenderNode); - this._appEl_6 = ViewContainer(6, null, this, _anchor_6); - var _TemplateRef_6_8 = TemplateRef(this._appEl_6, viewFactory_GoldenComponent7); - this._NgIf_6_9 = NgIf(this._appEl_6, _TemplateRef_6_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_6, this._NgIf_6_9); - } - final _anchor_7 = import9.appendAnchor(parentRenderNode); - this._appEl_7 = ViewContainer(7, null, this, _anchor_7); - var _TemplateRef_7_8 = TemplateRef(this._appEl_7, viewFactory_GoldenComponent8); - this._NgIf_7_9 = NgIf(this._appEl_7, _TemplateRef_7_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_7, this._NgIf_7_9); - } - final _anchor_8 = import9.appendAnchor(parentRenderNode); - this._appEl_8 = ViewContainer(8, null, this, _anchor_8); - var _TemplateRef_8_8 = TemplateRef(this._appEl_8, viewFactory_GoldenComponent9); - this._NgIf_8_9 = NgIf(this._appEl_8, _TemplateRef_8_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_8, this._NgIf_8_9); - } - final _anchor_9 = import9.appendAnchor(parentRenderNode); - this._appEl_9 = ViewContainer(9, null, this, _anchor_9); - var _TemplateRef_9_8 = TemplateRef(this._appEl_9, viewFactory_GoldenComponent10); - this._NgIf_9_9 = NgIf(this._appEl_9, _TemplateRef_9_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_9, this._NgIf_9_9); - } - final _anchor_10 = import9.appendAnchor(parentRenderNode); - this._appEl_10 = ViewContainer(10, null, this, _anchor_10); - var _TemplateRef_10_8 = TemplateRef(this._appEl_10, viewFactory_GoldenComponent11); - this._NgIf_10_9 = NgIf(this._appEl_10, _TemplateRef_10_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_10, this._NgIf_10_9); - } - final _anchor_11 = import9.appendAnchor(parentRenderNode); - this._appEl_11 = ViewContainer(11, null, this, _anchor_11); - var _TemplateRef_11_8 = TemplateRef(this._appEl_11, viewFactory_GoldenComponent12); - this._NgIf_11_9 = NgIf(this._appEl_11, _TemplateRef_11_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_11, this._NgIf_11_9); - } - final _anchor_12 = import9.appendAnchor(parentRenderNode); - this._appEl_12 = ViewContainer(12, null, this, _anchor_12); - var _TemplateRef_12_8 = TemplateRef(this._appEl_12, viewFactory_GoldenComponent13); - this._NgIf_12_9 = NgIf(this._appEl_12, _TemplateRef_12_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_12, this._NgIf_12_9); - } - final _anchor_13 = import9.appendAnchor(parentRenderNode); - this._appEl_13 = ViewContainer(13, null, this, _anchor_13); - var _TemplateRef_13_8 = TemplateRef(this._appEl_13, viewFactory_GoldenComponent14); - this._NgIf_13_9 = NgIf(this._appEl_13, _TemplateRef_13_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_13, this._NgIf_13_9); - } - final _anchor_14 = import9.appendAnchor(parentRenderNode); - this._appEl_14 = ViewContainer(14, null, this, _anchor_14); - var _TemplateRef_14_8 = TemplateRef(this._appEl_14, viewFactory_GoldenComponent15); - this._NgIf_14_9 = NgIf(this._appEl_14, _TemplateRef_14_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_14, this._NgIf_14_9); - } - final _anchor_15 = import9.appendAnchor(parentRenderNode); - this._appEl_15 = ViewContainer(15, null, this, _anchor_15); - var _TemplateRef_15_8 = TemplateRef(this._appEl_15, viewFactory_GoldenComponent16); - this._NgIf_15_9 = NgIf(this._appEl_15, _TemplateRef_15_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_15, this._NgIf_15_9); - } - final _anchor_16 = import9.appendAnchor(parentRenderNode); - this._appEl_16 = ViewContainer(16, null, this, _anchor_16); - var _TemplateRef_16_8 = TemplateRef(this._appEl_16, viewFactory_GoldenComponent17); - this._NgIf_16_9 = NgIf(this._appEl_16, _TemplateRef_16_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_16, this._NgIf_16_9); - } - final _anchor_17 = import9.appendAnchor(parentRenderNode); - this._appEl_17 = ViewContainer(17, null, this, _anchor_17); - var _TemplateRef_17_8 = TemplateRef(this._appEl_17, viewFactory_GoldenComponent18); - this._NgIf_17_9 = NgIf(this._appEl_17, _TemplateRef_17_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_17, this._NgIf_17_9); - } - final _anchor_18 = import9.appendAnchor(parentRenderNode); - this._appEl_18 = ViewContainer(18, null, this, _anchor_18); - var _TemplateRef_18_8 = TemplateRef(this._appEl_18, viewFactory_GoldenComponent19); - this._NgIf_18_9 = NgIf(this._appEl_18, _TemplateRef_18_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_18, this._NgIf_18_9); - } - final _anchor_19 = import9.appendAnchor(parentRenderNode); - this._appEl_19 = ViewContainer(19, null, this, _anchor_19); - var _TemplateRef_19_8 = TemplateRef(this._appEl_19, viewFactory_GoldenComponent20); - this._NgIf_19_9 = NgIf(this._appEl_19, _TemplateRef_19_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_19, this._NgIf_19_9); - } - final _anchor_20 = import9.appendAnchor(parentRenderNode); - this._appEl_20 = ViewContainer(20, null, this, _anchor_20); - var _TemplateRef_20_8 = TemplateRef(this._appEl_20, viewFactory_GoldenComponent21); - this._NgIf_20_9 = NgIf(this._appEl_20, _TemplateRef_20_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_20, this._NgIf_20_9); - } - final _anchor_21 = import9.appendAnchor(parentRenderNode); - this._appEl_21 = ViewContainer(21, null, this, _anchor_21); - var _TemplateRef_21_8 = TemplateRef(this._appEl_21, viewFactory_GoldenComponent22); - this._NgIf_21_9 = NgIf(this._appEl_21, _TemplateRef_21_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_21, this._NgIf_21_9); - } - final _anchor_22 = import9.appendAnchor(parentRenderNode); - this._appEl_22 = ViewContainer(22, null, this, _anchor_22); - var _TemplateRef_22_8 = TemplateRef(this._appEl_22, viewFactory_GoldenComponent23); - this._NgIf_22_9 = NgIf(this._appEl_22, _TemplateRef_22_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_22, this._NgIf_22_9); - } - final _anchor_23 = import9.appendAnchor(parentRenderNode); - this._appEl_23 = ViewContainer(23, null, this, _anchor_23); - var _TemplateRef_23_8 = TemplateRef(this._appEl_23, viewFactory_GoldenComponent24); - this._NgIf_23_9 = NgIf(this._appEl_23, _TemplateRef_23_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_23, this._NgIf_23_9); - } - final _anchor_24 = import9.appendAnchor(parentRenderNode); - this._appEl_24 = ViewContainer(24, null, this, _anchor_24); - var _TemplateRef_24_8 = TemplateRef(this._appEl_24, viewFactory_GoldenComponent25); - this._NgIf_24_9 = NgIf(this._appEl_24, _TemplateRef_24_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_24, this._NgIf_24_9); - } - final _anchor_25 = import9.appendAnchor(parentRenderNode); - this._appEl_25 = ViewContainer(25, null, this, _anchor_25); - var _TemplateRef_25_8 = TemplateRef(this._appEl_25, viewFactory_GoldenComponent26); - this._NgIf_25_9 = NgIf(this._appEl_25, _TemplateRef_25_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_25, this._NgIf_25_9); - } - final _anchor_26 = import9.appendAnchor(parentRenderNode); - this._appEl_26 = ViewContainer(26, null, this, _anchor_26); - var _TemplateRef_26_8 = TemplateRef(this._appEl_26, viewFactory_GoldenComponent27); - this._NgIf_26_9 = NgIf(this._appEl_26, _TemplateRef_26_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_26, this._NgIf_26_9); - } - final _anchor_27 = import9.appendAnchor(parentRenderNode); - this._appEl_27 = ViewContainer(27, null, this, _anchor_27); - var _TemplateRef_27_8 = TemplateRef(this._appEl_27, viewFactory_GoldenComponent28); - this._NgIf_27_9 = NgIf(this._appEl_27, _TemplateRef_27_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_27, this._NgIf_27_9); - } - final _anchor_28 = import9.appendAnchor(parentRenderNode); - this._appEl_28 = ViewContainer(28, null, this, _anchor_28); - var _TemplateRef_28_8 = TemplateRef(this._appEl_28, viewFactory_GoldenComponent29); - this._NgIf_28_9 = NgIf(this._appEl_28, _TemplateRef_28_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_28, this._NgIf_28_9); - } - final _anchor_29 = import9.appendAnchor(parentRenderNode); - this._appEl_29 = ViewContainer(29, null, this, _anchor_29); - var _TemplateRef_29_8 = TemplateRef(this._appEl_29, viewFactory_GoldenComponent30); - this._NgIf_29_9 = NgIf(this._appEl_29, _TemplateRef_29_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_29, this._NgIf_29_9); - } - final _anchor_30 = import9.appendAnchor(parentRenderNode); - this._appEl_30 = ViewContainer(30, null, this, _anchor_30); - var _TemplateRef_30_8 = TemplateRef(this._appEl_30, viewFactory_GoldenComponent31); - this._NgIf_30_9 = NgIf(this._appEl_30, _TemplateRef_30_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_30, this._NgIf_30_9); - } - final _anchor_31 = import9.appendAnchor(parentRenderNode); - this._appEl_31 = ViewContainer(31, null, this, _anchor_31); - var _TemplateRef_31_8 = TemplateRef(this._appEl_31, viewFactory_GoldenComponent32); - this._NgIf_31_9 = NgIf(this._appEl_31, _TemplateRef_31_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_31, this._NgIf_31_9); - } - final _anchor_32 = import9.appendAnchor(parentRenderNode); - this._appEl_32 = ViewContainer(32, null, this, _anchor_32); - var _TemplateRef_32_8 = TemplateRef(this._appEl_32, viewFactory_GoldenComponent33); - this._NgIf_32_9 = NgIf(this._appEl_32, _TemplateRef_32_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_32, this._NgIf_32_9); - } - final _anchor_33 = import9.appendAnchor(parentRenderNode); - this._appEl_33 = ViewContainer(33, null, this, _anchor_33); - var _TemplateRef_33_8 = TemplateRef(this._appEl_33, viewFactory_GoldenComponent34); - this._NgIf_33_9 = NgIf(this._appEl_33, _TemplateRef_33_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_33, this._NgIf_33_9); - } - final _anchor_34 = import9.appendAnchor(parentRenderNode); - this._appEl_34 = ViewContainer(34, null, this, _anchor_34); - var _TemplateRef_34_8 = TemplateRef(this._appEl_34, viewFactory_GoldenComponent35); - this._NgIf_34_9 = NgIf(this._appEl_34, _TemplateRef_34_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_34, this._NgIf_34_9); - } - final _anchor_35 = import9.appendAnchor(parentRenderNode); - this._appEl_35 = ViewContainer(35, null, this, _anchor_35); - var _TemplateRef_35_8 = TemplateRef(this._appEl_35, viewFactory_GoldenComponent36); - this._NgIf_35_9 = NgIf(this._appEl_35, _TemplateRef_35_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_35, this._NgIf_35_9); - } - final _anchor_36 = import9.appendAnchor(parentRenderNode); - this._appEl_36 = ViewContainer(36, null, this, _anchor_36); - var _TemplateRef_36_8 = TemplateRef(this._appEl_36, viewFactory_GoldenComponent37); - this._NgIf_36_9 = NgIf(this._appEl_36, _TemplateRef_36_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_36, this._NgIf_36_9); - } - final _anchor_37 = import9.appendAnchor(parentRenderNode); - this._appEl_37 = ViewContainer(37, null, this, _anchor_37); - var _TemplateRef_37_8 = TemplateRef(this._appEl_37, viewFactory_GoldenComponent38); - this._NgIf_37_9 = NgIf(this._appEl_37, _TemplateRef_37_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_37, this._NgIf_37_9); - } - final _anchor_38 = import9.appendAnchor(parentRenderNode); - this._appEl_38 = ViewContainer(38, null, this, _anchor_38); - var _TemplateRef_38_8 = TemplateRef(this._appEl_38, viewFactory_GoldenComponent39); - this._NgIf_38_9 = NgIf(this._appEl_38, _TemplateRef_38_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_38, this._NgIf_38_9); - } - final _anchor_39 = import9.appendAnchor(parentRenderNode); - this._appEl_39 = ViewContainer(39, null, this, _anchor_39); - var _TemplateRef_39_8 = TemplateRef(this._appEl_39, viewFactory_GoldenComponent40); - this._NgIf_39_9 = NgIf(this._appEl_39, _TemplateRef_39_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_39, this._NgIf_39_9); - } - final _anchor_40 = import9.appendAnchor(parentRenderNode); - this._appEl_40 = ViewContainer(40, null, this, _anchor_40); - var _TemplateRef_40_8 = TemplateRef(this._appEl_40, viewFactory_GoldenComponent41); - this._NgIf_40_9 = NgIf(this._appEl_40, _TemplateRef_40_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_40, this._NgIf_40_9); - } - final _anchor_41 = import9.appendAnchor(parentRenderNode); - this._appEl_41 = ViewContainer(41, null, this, _anchor_41); - var _TemplateRef_41_8 = TemplateRef(this._appEl_41, viewFactory_GoldenComponent42); - this._NgIf_41_9 = NgIf(this._appEl_41, _TemplateRef_41_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_41, this._NgIf_41_9); - } - final _anchor_42 = import9.appendAnchor(parentRenderNode); - this._appEl_42 = ViewContainer(42, null, this, _anchor_42); - var _TemplateRef_42_8 = TemplateRef(this._appEl_42, viewFactory_GoldenComponent43); - this._NgIf_42_9 = NgIf(this._appEl_42, _TemplateRef_42_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_42, this._NgIf_42_9); - } - final _anchor_43 = import9.appendAnchor(parentRenderNode); - this._appEl_43 = ViewContainer(43, null, this, _anchor_43); - var _TemplateRef_43_8 = TemplateRef(this._appEl_43, viewFactory_GoldenComponent44); - this._NgIf_43_9 = NgIf(this._appEl_43, _TemplateRef_43_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_43, this._NgIf_43_9); - } - final _anchor_44 = import9.appendAnchor(parentRenderNode); - this._appEl_44 = ViewContainer(44, null, this, _anchor_44); - var _TemplateRef_44_8 = TemplateRef(this._appEl_44, viewFactory_GoldenComponent45); - this._NgIf_44_9 = NgIf(this._appEl_44, _TemplateRef_44_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_44, this._NgIf_44_9); - } - final _anchor_45 = import9.appendAnchor(parentRenderNode); - this._appEl_45 = ViewContainer(45, null, this, _anchor_45); - var _TemplateRef_45_8 = TemplateRef(this._appEl_45, viewFactory_GoldenComponent46); - this._NgIf_45_9 = NgIf(this._appEl_45, _TemplateRef_45_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_45, this._NgIf_45_9); - } - final _anchor_46 = import9.appendAnchor(parentRenderNode); - this._appEl_46 = ViewContainer(46, null, this, _anchor_46); - var _TemplateRef_46_8 = TemplateRef(this._appEl_46, viewFactory_GoldenComponent47); - this._NgIf_46_9 = NgIf(this._appEl_46, _TemplateRef_46_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_46, this._NgIf_46_9); - } - final _anchor_47 = import9.appendAnchor(parentRenderNode); - this._appEl_47 = ViewContainer(47, null, this, _anchor_47); - var _TemplateRef_47_8 = TemplateRef(this._appEl_47, viewFactory_GoldenComponent48); - this._NgIf_47_9 = NgIf(this._appEl_47, _TemplateRef_47_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_47, this._NgIf_47_9); - } - final _anchor_48 = import9.appendAnchor(parentRenderNode); - this._appEl_48 = ViewContainer(48, null, this, _anchor_48); - var _TemplateRef_48_8 = TemplateRef(this._appEl_48, viewFactory_GoldenComponent49); - this._NgIf_48_9 = NgIf(this._appEl_48, _TemplateRef_48_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_48, this._NgIf_48_9); - } - final _anchor_49 = import9.appendAnchor(parentRenderNode); - this._appEl_49 = ViewContainer(49, null, this, _anchor_49); - var _TemplateRef_49_8 = TemplateRef(this._appEl_49, viewFactory_GoldenComponent50); - this._NgIf_49_9 = NgIf(this._appEl_49, _TemplateRef_49_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_49, this._NgIf_49_9); - } - final _anchor_50 = import9.appendAnchor(parentRenderNode); - this._appEl_50 = ViewContainer(50, null, this, _anchor_50); - var _TemplateRef_50_8 = TemplateRef(this._appEl_50, viewFactory_GoldenComponent51); - this._NgIf_50_9 = NgIf(this._appEl_50, _TemplateRef_50_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_50, this._NgIf_50_9); - } - final _anchor_51 = import9.appendAnchor(parentRenderNode); - this._appEl_51 = ViewContainer(51, null, this, _anchor_51); - var _TemplateRef_51_8 = TemplateRef(this._appEl_51, viewFactory_GoldenComponent52); - this._NgIf_51_9 = NgIf(this._appEl_51, _TemplateRef_51_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_51, this._NgIf_51_9); - } - final _anchor_52 = import9.appendAnchor(parentRenderNode); - this._appEl_52 = ViewContainer(52, null, this, _anchor_52); - var _TemplateRef_52_8 = TemplateRef(this._appEl_52, viewFactory_GoldenComponent53); - this._NgIf_52_9 = NgIf(this._appEl_52, _TemplateRef_52_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_52, this._NgIf_52_9); - } - final _anchor_53 = import9.appendAnchor(parentRenderNode); - this._appEl_53 = ViewContainer(53, null, this, _anchor_53); - var _TemplateRef_53_8 = TemplateRef(this._appEl_53, viewFactory_GoldenComponent54); - this._NgIf_53_9 = NgIf(this._appEl_53, _TemplateRef_53_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_53, this._NgIf_53_9); - } - final _anchor_54 = import9.appendAnchor(parentRenderNode); - this._appEl_54 = ViewContainer(54, null, this, _anchor_54); - var _TemplateRef_54_8 = TemplateRef(this._appEl_54, viewFactory_GoldenComponent55); - this._NgIf_54_9 = NgIf(this._appEl_54, _TemplateRef_54_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_54, this._NgIf_54_9); - } - final _anchor_55 = import9.appendAnchor(parentRenderNode); - this._appEl_55 = ViewContainer(55, null, this, _anchor_55); - var _TemplateRef_55_8 = TemplateRef(this._appEl_55, viewFactory_GoldenComponent56); - this._NgIf_55_9 = NgIf(this._appEl_55, _TemplateRef_55_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_55, this._NgIf_55_9); - } - final _anchor_56 = import9.appendAnchor(parentRenderNode); - this._appEl_56 = ViewContainer(56, null, this, _anchor_56); - var _TemplateRef_56_8 = TemplateRef(this._appEl_56, viewFactory_GoldenComponent57); - this._NgIf_56_9 = NgIf(this._appEl_56, _TemplateRef_56_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_56, this._NgIf_56_9); - } - final _anchor_57 = import9.appendAnchor(parentRenderNode); - this._appEl_57 = ViewContainer(57, null, this, _anchor_57); - var _TemplateRef_57_8 = TemplateRef(this._appEl_57, viewFactory_GoldenComponent58); - this._NgIf_57_9 = NgIf(this._appEl_57, _TemplateRef_57_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_57, this._NgIf_57_9); - } - final _anchor_58 = import9.appendAnchor(parentRenderNode); - this._appEl_58 = ViewContainer(58, null, this, _anchor_58); - var _TemplateRef_58_8 = TemplateRef(this._appEl_58, viewFactory_GoldenComponent59); - this._NgIf_58_9 = NgIf(this._appEl_58, _TemplateRef_58_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_58, this._NgIf_58_9); - } - final _anchor_59 = import9.appendAnchor(parentRenderNode); - this._appEl_59 = ViewContainer(59, null, this, _anchor_59); - var _TemplateRef_59_8 = TemplateRef(this._appEl_59, viewFactory_GoldenComponent60); - this._NgIf_59_9 = NgIf(this._appEl_59, _TemplateRef_59_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_59, this._NgIf_59_9); - } - final _anchor_60 = import9.appendAnchor(parentRenderNode); - this._appEl_60 = ViewContainer(60, null, this, _anchor_60); - var _TemplateRef_60_8 = TemplateRef(this._appEl_60, viewFactory_GoldenComponent61); - this._NgIf_60_9 = NgIf(this._appEl_60, _TemplateRef_60_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_60, this._NgIf_60_9); - } - final _anchor_61 = import9.appendAnchor(parentRenderNode); - this._appEl_61 = ViewContainer(61, null, this, _anchor_61); - var _TemplateRef_61_8 = TemplateRef(this._appEl_61, viewFactory_GoldenComponent62); - this._NgIf_61_9 = NgIf(this._appEl_61, _TemplateRef_61_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_61, this._NgIf_61_9); - } - final _anchor_62 = import9.appendAnchor(parentRenderNode); - this._appEl_62 = ViewContainer(62, null, this, _anchor_62); - var _TemplateRef_62_8 = TemplateRef(this._appEl_62, viewFactory_GoldenComponent63); - this._NgIf_62_9 = NgIf(this._appEl_62, _TemplateRef_62_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_62, this._NgIf_62_9); - } - final _anchor_63 = import9.appendAnchor(parentRenderNode); - this._appEl_63 = ViewContainer(63, null, this, _anchor_63); - var _TemplateRef_63_8 = TemplateRef(this._appEl_63, viewFactory_GoldenComponent64); - this._NgIf_63_9 = NgIf(this._appEl_63, _TemplateRef_63_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_63, this._NgIf_63_9); - } - final _anchor_64 = import9.appendAnchor(parentRenderNode); - this._appEl_64 = ViewContainer(64, null, this, _anchor_64); - var _TemplateRef_64_8 = TemplateRef(this._appEl_64, viewFactory_GoldenComponent65); - this._NgIf_64_9 = NgIf(this._appEl_64, _TemplateRef_64_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_64, this._NgIf_64_9); - } - final _anchor_65 = import9.appendAnchor(parentRenderNode); - this._appEl_65 = ViewContainer(65, null, this, _anchor_65); - var _TemplateRef_65_8 = TemplateRef(this._appEl_65, viewFactory_GoldenComponent66); - this._NgIf_65_9 = NgIf(this._appEl_65, _TemplateRef_65_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_65, this._NgIf_65_9); - } - final _anchor_66 = import9.appendAnchor(parentRenderNode); - this._appEl_66 = ViewContainer(66, null, this, _anchor_66); - var _TemplateRef_66_8 = TemplateRef(this._appEl_66, viewFactory_GoldenComponent67); - this._NgIf_66_9 = NgIf(this._appEl_66, _TemplateRef_66_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_66, this._NgIf_66_9); - } - final _anchor_67 = import9.appendAnchor(parentRenderNode); - this._appEl_67 = ViewContainer(67, null, this, _anchor_67); - var _TemplateRef_67_8 = TemplateRef(this._appEl_67, viewFactory_GoldenComponent68); - this._NgIf_67_9 = NgIf(this._appEl_67, _TemplateRef_67_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_67, this._NgIf_67_9); - } - final _anchor_68 = import9.appendAnchor(parentRenderNode); - this._appEl_68 = ViewContainer(68, null, this, _anchor_68); - var _TemplateRef_68_8 = TemplateRef(this._appEl_68, viewFactory_GoldenComponent69); - this._NgIf_68_9 = NgIf(this._appEl_68, _TemplateRef_68_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_68, this._NgIf_68_9); - } - final _anchor_69 = import9.appendAnchor(parentRenderNode); - this._appEl_69 = ViewContainer(69, null, this, _anchor_69); - var _TemplateRef_69_8 = TemplateRef(this._appEl_69, viewFactory_GoldenComponent70); - this._NgIf_69_9 = NgIf(this._appEl_69, _TemplateRef_69_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_69, this._NgIf_69_9); - } - final _anchor_70 = import9.appendAnchor(parentRenderNode); - this._appEl_70 = ViewContainer(70, null, this, _anchor_70); - var _TemplateRef_70_8 = TemplateRef(this._appEl_70, viewFactory_GoldenComponent71); - this._NgIf_70_9 = NgIf(this._appEl_70, _TemplateRef_70_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_70, this._NgIf_70_9); - } - final _anchor_71 = import9.appendAnchor(parentRenderNode); - this._appEl_71 = ViewContainer(71, null, this, _anchor_71); - var _TemplateRef_71_8 = TemplateRef(this._appEl_71, viewFactory_GoldenComponent72); - this._NgIf_71_9 = NgIf(this._appEl_71, _TemplateRef_71_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_71, this._NgIf_71_9); - } - final _anchor_72 = import9.appendAnchor(parentRenderNode); - this._appEl_72 = ViewContainer(72, null, this, _anchor_72); - var _TemplateRef_72_8 = TemplateRef(this._appEl_72, viewFactory_GoldenComponent73); - this._NgIf_72_9 = NgIf(this._appEl_72, _TemplateRef_72_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_72, this._NgIf_72_9); - } - final _anchor_73 = import9.appendAnchor(parentRenderNode); - this._appEl_73 = ViewContainer(73, null, this, _anchor_73); - var _TemplateRef_73_8 = TemplateRef(this._appEl_73, viewFactory_GoldenComponent74); - this._NgIf_73_9 = NgIf(this._appEl_73, _TemplateRef_73_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_73, this._NgIf_73_9); - } - final _anchor_74 = import9.appendAnchor(parentRenderNode); - this._appEl_74 = ViewContainer(74, null, this, _anchor_74); - var _TemplateRef_74_8 = TemplateRef(this._appEl_74, viewFactory_GoldenComponent75); - this._NgIf_74_9 = NgIf(this._appEl_74, _TemplateRef_74_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_74, this._NgIf_74_9); - } - final _anchor_75 = import9.appendAnchor(parentRenderNode); - this._appEl_75 = ViewContainer(75, null, this, _anchor_75); - var _TemplateRef_75_8 = TemplateRef(this._appEl_75, viewFactory_GoldenComponent76); - this._NgIf_75_9 = NgIf(this._appEl_75, _TemplateRef_75_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_75, this._NgIf_75_9); - } - final _anchor_76 = import9.appendAnchor(parentRenderNode); - this._appEl_76 = ViewContainer(76, null, this, _anchor_76); - var _TemplateRef_76_8 = TemplateRef(this._appEl_76, viewFactory_GoldenComponent77); - this._NgIf_76_9 = NgIf(this._appEl_76, _TemplateRef_76_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_76, this._NgIf_76_9); - } - final _anchor_77 = import9.appendAnchor(parentRenderNode); - this._appEl_77 = ViewContainer(77, null, this, _anchor_77); - var _TemplateRef_77_8 = TemplateRef(this._appEl_77, viewFactory_GoldenComponent78); - this._NgIf_77_9 = NgIf(this._appEl_77, _TemplateRef_77_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_77, this._NgIf_77_9); - } - final _anchor_78 = import9.appendAnchor(parentRenderNode); - this._appEl_78 = ViewContainer(78, null, this, _anchor_78); - var _TemplateRef_78_8 = TemplateRef(this._appEl_78, viewFactory_GoldenComponent79); - this._NgIf_78_9 = NgIf(this._appEl_78, _TemplateRef_78_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_78, this._NgIf_78_9); - } - final _anchor_79 = import9.appendAnchor(parentRenderNode); - this._appEl_79 = ViewContainer(79, null, this, _anchor_79); - var _TemplateRef_79_8 = TemplateRef(this._appEl_79, viewFactory_GoldenComponent80); - this._NgIf_79_9 = NgIf(this._appEl_79, _TemplateRef_79_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_79, this._NgIf_79_9); - } - final _anchor_80 = import9.appendAnchor(parentRenderNode); - this._appEl_80 = ViewContainer(80, null, this, _anchor_80); - var _TemplateRef_80_8 = TemplateRef(this._appEl_80, viewFactory_GoldenComponent81); - this._NgIf_80_9 = NgIf(this._appEl_80, _TemplateRef_80_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_80, this._NgIf_80_9); - } - final _anchor_81 = import9.appendAnchor(parentRenderNode); - this._appEl_81 = ViewContainer(81, null, this, _anchor_81); - var _TemplateRef_81_8 = TemplateRef(this._appEl_81, viewFactory_GoldenComponent82); - this._NgIf_81_9 = NgIf(this._appEl_81, _TemplateRef_81_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_81, this._NgIf_81_9); - } - final _anchor_82 = import9.appendAnchor(parentRenderNode); - this._appEl_82 = ViewContainer(82, null, this, _anchor_82); - var _TemplateRef_82_8 = TemplateRef(this._appEl_82, viewFactory_GoldenComponent83); - this._NgIf_82_9 = NgIf(this._appEl_82, _TemplateRef_82_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_82, this._NgIf_82_9); - } - final _anchor_83 = import9.appendAnchor(parentRenderNode); - this._appEl_83 = ViewContainer(83, null, this, _anchor_83); - var _TemplateRef_83_8 = TemplateRef(this._appEl_83, viewFactory_GoldenComponent84); - this._NgIf_83_9 = NgIf(this._appEl_83, _TemplateRef_83_8); - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.registerDirective(_anchor_83, this._NgIf_83_9); - } - } - - @override - void detectChangesInternal() { - final _ctx = this.ctx; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_0_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_0_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:706:723 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_1_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_1_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:744:761 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_2_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_2_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:782:799 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_3_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_3_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:820:837 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_4_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_4_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:858:875 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_5_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_5_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:896:913 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_6_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_6_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:934:951 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_7_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_7_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:972:989 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_8_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_8_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1010:1027 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_9_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_9_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1048:1065 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_10_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_10_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1086:1103 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_11_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_11_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1124:1141 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_12_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_12_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1162:1179 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_13_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_13_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1200:1217 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_14_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_14_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1238:1255 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_15_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_15_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1276:1293 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_16_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_16_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1314:1331 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_17_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_17_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1352:1369 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_18_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_18_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1390:1407 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_19_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_19_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1428:1445 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_20_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_20_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1466:1483 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_21_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_21_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1504:1521 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_22_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_22_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1542:1559 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_23_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_23_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1580:1597 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_24_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_24_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1618:1635 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_25_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_25_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1656:1673 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_26_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_26_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1694:1711 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_27_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_27_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1732:1749 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_28_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_28_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1770:1787 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_29_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_29_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1808:1825 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_30_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_30_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1846:1863 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_31_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_31_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1884:1901 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_32_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_32_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1922:1939 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_33_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_33_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1960:1977 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_34_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_34_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:1998:2015 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_35_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_35_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2036:2053 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_36_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_36_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2074:2091 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_37_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_37_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2112:2129 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_38_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_38_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2150:2167 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_39_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_39_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2188:2205 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_40_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_40_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2226:2243 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_41_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_41_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2264:2281 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_42_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_42_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2302:2319 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_43_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_43_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2340:2357 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_44_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_44_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2378:2395 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_45_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_45_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2416:2433 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_46_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_46_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2454:2471 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_47_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_47_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2492:2509 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_48_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_48_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2530:2547 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_49_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_49_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2568:2585 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_50_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_50_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2606:2623 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_51_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_51_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2644:2661 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_52_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_52_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2682:2699 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_53_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_53_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2720:2737 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_54_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_54_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2758:2775 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_55_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_55_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2796:2813 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_56_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_56_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2834:2851 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_57_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_57_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2872:2889 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_58_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_58_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2910:2927 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_59_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_59_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2948:2965 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_60_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_60_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:2986:3003 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_61_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_61_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3024:3041 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_62_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_62_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3062:3079 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_63_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_63_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3100:3117 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_64_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_64_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3138:3155 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_65_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_65_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3176:3193 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_66_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_66_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3214:3231 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_67_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_67_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3252:3269 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_68_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_68_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3290:3307 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_69_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_69_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3328:3345 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_70_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_70_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3366:3383 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_71_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_71_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3404:3421 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_72_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_72_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3442:3459 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_73_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_73_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3480:3497 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_74_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_74_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3518:3535 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_75_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_75_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3556:3573 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_76_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_76_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3594:3611 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_77_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_77_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3632:3649 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_78_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_78_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3670:3687 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_79_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_79_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3708:3725 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_80_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_80_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3746:3763 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_81_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_81_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3784:3801 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_82_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_82_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3822:3839 */; - if (import11.isDevToolsEnabled) { - import11.Inspector.instance.recordInput(this._NgIf_83_9, 'ngIf', _ctx.isLoading); - } - this._NgIf_83_9.ngIf = _ctx.isLoading /* REF:asset:goldens/test/templates/large_templates_opt_out.dart:3860:3877 */; - this._appEl_0.detectChangesInNestedViews(); - this._appEl_1.detectChangesInNestedViews(); - this._appEl_2.detectChangesInNestedViews(); - this._appEl_3.detectChangesInNestedViews(); - this._appEl_4.detectChangesInNestedViews(); - this._appEl_5.detectChangesInNestedViews(); - this._appEl_6.detectChangesInNestedViews(); - this._appEl_7.detectChangesInNestedViews(); - this._appEl_8.detectChangesInNestedViews(); - this._appEl_9.detectChangesInNestedViews(); - this._appEl_10.detectChangesInNestedViews(); - this._appEl_11.detectChangesInNestedViews(); - this._appEl_12.detectChangesInNestedViews(); - this._appEl_13.detectChangesInNestedViews(); - this._appEl_14.detectChangesInNestedViews(); - this._appEl_15.detectChangesInNestedViews(); - this._appEl_16.detectChangesInNestedViews(); - this._appEl_17.detectChangesInNestedViews(); - this._appEl_18.detectChangesInNestedViews(); - this._appEl_19.detectChangesInNestedViews(); - this._appEl_20.detectChangesInNestedViews(); - this._appEl_21.detectChangesInNestedViews(); - this._appEl_22.detectChangesInNestedViews(); - this._appEl_23.detectChangesInNestedViews(); - this._appEl_24.detectChangesInNestedViews(); - this._appEl_25.detectChangesInNestedViews(); - this._appEl_26.detectChangesInNestedViews(); - this._appEl_27.detectChangesInNestedViews(); - this._appEl_28.detectChangesInNestedViews(); - this._appEl_29.detectChangesInNestedViews(); - this._appEl_30.detectChangesInNestedViews(); - this._appEl_31.detectChangesInNestedViews(); - this._appEl_32.detectChangesInNestedViews(); - this._appEl_33.detectChangesInNestedViews(); - this._appEl_34.detectChangesInNestedViews(); - this._appEl_35.detectChangesInNestedViews(); - this._appEl_36.detectChangesInNestedViews(); - this._appEl_37.detectChangesInNestedViews(); - this._appEl_38.detectChangesInNestedViews(); - this._appEl_39.detectChangesInNestedViews(); - this._appEl_40.detectChangesInNestedViews(); - this._appEl_41.detectChangesInNestedViews(); - this._appEl_42.detectChangesInNestedViews(); - this._appEl_43.detectChangesInNestedViews(); - this._appEl_44.detectChangesInNestedViews(); - this._appEl_45.detectChangesInNestedViews(); - this._appEl_46.detectChangesInNestedViews(); - this._appEl_47.detectChangesInNestedViews(); - this._appEl_48.detectChangesInNestedViews(); - this._appEl_49.detectChangesInNestedViews(); - this._appEl_50.detectChangesInNestedViews(); - this._appEl_51.detectChangesInNestedViews(); - this._appEl_52.detectChangesInNestedViews(); - this._appEl_53.detectChangesInNestedViews(); - this._appEl_54.detectChangesInNestedViews(); - this._appEl_55.detectChangesInNestedViews(); - this._appEl_56.detectChangesInNestedViews(); - this._appEl_57.detectChangesInNestedViews(); - this._appEl_58.detectChangesInNestedViews(); - this._appEl_59.detectChangesInNestedViews(); - this._appEl_60.detectChangesInNestedViews(); - this._appEl_61.detectChangesInNestedViews(); - this._appEl_62.detectChangesInNestedViews(); - this._appEl_63.detectChangesInNestedViews(); - this._appEl_64.detectChangesInNestedViews(); - this._appEl_65.detectChangesInNestedViews(); - this._appEl_66.detectChangesInNestedViews(); - this._appEl_67.detectChangesInNestedViews(); - this._appEl_68.detectChangesInNestedViews(); - this._appEl_69.detectChangesInNestedViews(); - this._appEl_70.detectChangesInNestedViews(); - this._appEl_71.detectChangesInNestedViews(); - this._appEl_72.detectChangesInNestedViews(); - this._appEl_73.detectChangesInNestedViews(); - this._appEl_74.detectChangesInNestedViews(); - this._appEl_75.detectChangesInNestedViews(); - this._appEl_76.detectChangesInNestedViews(); - this._appEl_77.detectChangesInNestedViews(); - this._appEl_78.detectChangesInNestedViews(); - this._appEl_79.detectChangesInNestedViews(); - this._appEl_80.detectChangesInNestedViews(); - this._appEl_81.detectChangesInNestedViews(); - this._appEl_82.detectChangesInNestedViews(); - this._appEl_83.detectChangesInNestedViews(); - } - - @override - void destroyInternal() { - this._appEl_0.destroyNestedViews(); - this._appEl_1.destroyNestedViews(); - this._appEl_2.destroyNestedViews(); - this._appEl_3.destroyNestedViews(); - this._appEl_4.destroyNestedViews(); - this._appEl_5.destroyNestedViews(); - this._appEl_6.destroyNestedViews(); - this._appEl_7.destroyNestedViews(); - this._appEl_8.destroyNestedViews(); - this._appEl_9.destroyNestedViews(); - this._appEl_10.destroyNestedViews(); - this._appEl_11.destroyNestedViews(); - this._appEl_12.destroyNestedViews(); - this._appEl_13.destroyNestedViews(); - this._appEl_14.destroyNestedViews(); - this._appEl_15.destroyNestedViews(); - this._appEl_16.destroyNestedViews(); - this._appEl_17.destroyNestedViews(); - this._appEl_18.destroyNestedViews(); - this._appEl_19.destroyNestedViews(); - this._appEl_20.destroyNestedViews(); - this._appEl_21.destroyNestedViews(); - this._appEl_22.destroyNestedViews(); - this._appEl_23.destroyNestedViews(); - this._appEl_24.destroyNestedViews(); - this._appEl_25.destroyNestedViews(); - this._appEl_26.destroyNestedViews(); - this._appEl_27.destroyNestedViews(); - this._appEl_28.destroyNestedViews(); - this._appEl_29.destroyNestedViews(); - this._appEl_30.destroyNestedViews(); - this._appEl_31.destroyNestedViews(); - this._appEl_32.destroyNestedViews(); - this._appEl_33.destroyNestedViews(); - this._appEl_34.destroyNestedViews(); - this._appEl_35.destroyNestedViews(); - this._appEl_36.destroyNestedViews(); - this._appEl_37.destroyNestedViews(); - this._appEl_38.destroyNestedViews(); - this._appEl_39.destroyNestedViews(); - this._appEl_40.destroyNestedViews(); - this._appEl_41.destroyNestedViews(); - this._appEl_42.destroyNestedViews(); - this._appEl_43.destroyNestedViews(); - this._appEl_44.destroyNestedViews(); - this._appEl_45.destroyNestedViews(); - this._appEl_46.destroyNestedViews(); - this._appEl_47.destroyNestedViews(); - this._appEl_48.destroyNestedViews(); - this._appEl_49.destroyNestedViews(); - this._appEl_50.destroyNestedViews(); - this._appEl_51.destroyNestedViews(); - this._appEl_52.destroyNestedViews(); - this._appEl_53.destroyNestedViews(); - this._appEl_54.destroyNestedViews(); - this._appEl_55.destroyNestedViews(); - this._appEl_56.destroyNestedViews(); - this._appEl_57.destroyNestedViews(); - this._appEl_58.destroyNestedViews(); - this._appEl_59.destroyNestedViews(); - this._appEl_60.destroyNestedViews(); - this._appEl_61.destroyNestedViews(); - this._appEl_62.destroyNestedViews(); - this._appEl_63.destroyNestedViews(); - this._appEl_64.destroyNestedViews(); - this._appEl_65.destroyNestedViews(); - this._appEl_66.destroyNestedViews(); - this._appEl_67.destroyNestedViews(); - this._appEl_68.destroyNestedViews(); - this._appEl_69.destroyNestedViews(); - this._appEl_70.destroyNestedViews(); - this._appEl_71.destroyNestedViews(); - this._appEl_72.destroyNestedViews(); - this._appEl_73.destroyNestedViews(); - this._appEl_74.destroyNestedViews(); - this._appEl_75.destroyNestedViews(); - this._appEl_76.destroyNestedViews(); - this._appEl_77.destroyNestedViews(); - this._appEl_78.destroyNestedViews(); - this._appEl_79.destroyNestedViews(); - this._appEl_80.destroyNestedViews(); - this._appEl_81.destroyNestedViews(); - this._appEl_82.destroyNestedViews(); - this._appEl_83.destroyNestedViews(); - } - - static void _debugClearComponentStyles() { - _componentStyles = null; - } - - void initComponentStyles() { - var styles = _componentStyles; - if ((styles == null)) { - _componentStyles = (styles = import4.ComponentStyles.unscoped(styles$GoldenComponent, _debugComponentUrl)); - if (import7.isDevMode) { - import4.ComponentStyles.debugOnClear(_debugClearComponentStyles); - } - } - this.componentStyles = styles; - } -} - -const _GoldenComponentNgFactory = ComponentFactory('golden', viewFactory_GoldenComponentHost0); -ComponentFactory get GoldenComponentNgFactory { - return _GoldenComponentNgFactory; -} - -ComponentFactory createGoldenComponentFactory() { - return ComponentFactory('golden', viewFactory_GoldenComponentHost0); -} - -class _ViewGoldenComponent1 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent1(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent1(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent1(parentView, parentIndex); -} - -class _ViewGoldenComponent2 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent2(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent2(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent2(parentView, parentIndex); -} - -class _ViewGoldenComponent3 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent3(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent3(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent3(parentView, parentIndex); -} - -class _ViewGoldenComponent4 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent4(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent4(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent4(parentView, parentIndex); -} - -class _ViewGoldenComponent5 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent5(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent5(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent5(parentView, parentIndex); -} - -class _ViewGoldenComponent6 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent6(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent6(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent6(parentView, parentIndex); -} - -class _ViewGoldenComponent7 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent7(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent7(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent7(parentView, parentIndex); -} - -class _ViewGoldenComponent8 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent8(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent8(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent8(parentView, parentIndex); -} - -class _ViewGoldenComponent9 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent9(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent9(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent9(parentView, parentIndex); -} - -class _ViewGoldenComponent10 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent10(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent10(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent10(parentView, parentIndex); -} - -class _ViewGoldenComponent11 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent11(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent11(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent11(parentView, parentIndex); -} - -class _ViewGoldenComponent12 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent12(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent12(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent12(parentView, parentIndex); -} - -class _ViewGoldenComponent13 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent13(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent13(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent13(parentView, parentIndex); -} - -class _ViewGoldenComponent14 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent14(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent14(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent14(parentView, parentIndex); -} - -class _ViewGoldenComponent15 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent15(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent15(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent15(parentView, parentIndex); -} - -class _ViewGoldenComponent16 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent16(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent16(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent16(parentView, parentIndex); -} - -class _ViewGoldenComponent17 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent17(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent17(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent17(parentView, parentIndex); -} - -class _ViewGoldenComponent18 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent18(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent18(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent18(parentView, parentIndex); -} - -class _ViewGoldenComponent19 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent19(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent19(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent19(parentView, parentIndex); -} - -class _ViewGoldenComponent20 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent20(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent20(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent20(parentView, parentIndex); -} - -class _ViewGoldenComponent21 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent21(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent21(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent21(parentView, parentIndex); -} - -class _ViewGoldenComponent22 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent22(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent22(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent22(parentView, parentIndex); -} - -class _ViewGoldenComponent23 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent23(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent23(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent23(parentView, parentIndex); -} - -class _ViewGoldenComponent24 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent24(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent24(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent24(parentView, parentIndex); -} - -class _ViewGoldenComponent25 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent25(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent25(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent25(parentView, parentIndex); -} - -class _ViewGoldenComponent26 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent26(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent26(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent26(parentView, parentIndex); -} - -class _ViewGoldenComponent27 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent27(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent27(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent27(parentView, parentIndex); -} - -class _ViewGoldenComponent28 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent28(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent28(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent28(parentView, parentIndex); -} - -class _ViewGoldenComponent29 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent29(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent29(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent29(parentView, parentIndex); -} - -class _ViewGoldenComponent30 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent30(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent30(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent30(parentView, parentIndex); -} - -class _ViewGoldenComponent31 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent31(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent31(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent31(parentView, parentIndex); -} - -class _ViewGoldenComponent32 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent32(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent32(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent32(parentView, parentIndex); -} - -class _ViewGoldenComponent33 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent33(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent33(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent33(parentView, parentIndex); -} - -class _ViewGoldenComponent34 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent34(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent34(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent34(parentView, parentIndex); -} - -class _ViewGoldenComponent35 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent35(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent35(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent35(parentView, parentIndex); -} - -class _ViewGoldenComponent36 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent36(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent36(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent36(parentView, parentIndex); -} - -class _ViewGoldenComponent37 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent37(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent37(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent37(parentView, parentIndex); -} - -class _ViewGoldenComponent38 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent38(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent38(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent38(parentView, parentIndex); -} - -class _ViewGoldenComponent39 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent39(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent39(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent39(parentView, parentIndex); -} - -class _ViewGoldenComponent40 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent40(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent40(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent40(parentView, parentIndex); -} - -class _ViewGoldenComponent41 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent41(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent41(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent41(parentView, parentIndex); -} - -class _ViewGoldenComponent42 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent42(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent42(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent42(parentView, parentIndex); -} - -class _ViewGoldenComponent43 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent43(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent43(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent43(parentView, parentIndex); -} - -class _ViewGoldenComponent44 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent44(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent44(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent44(parentView, parentIndex); -} - -class _ViewGoldenComponent45 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent45(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent45(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent45(parentView, parentIndex); -} - -class _ViewGoldenComponent46 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent46(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent46(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent46(parentView, parentIndex); -} - -class _ViewGoldenComponent47 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent47(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent47(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent47(parentView, parentIndex); -} - -class _ViewGoldenComponent48 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent48(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent48(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent48(parentView, parentIndex); -} - -class _ViewGoldenComponent49 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent49(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent49(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent49(parentView, parentIndex); -} - -class _ViewGoldenComponent50 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent50(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent50(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent50(parentView, parentIndex); -} - -class _ViewGoldenComponent51 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent51(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent51(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent51(parentView, parentIndex); -} - -class _ViewGoldenComponent52 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent52(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent52(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent52(parentView, parentIndex); -} - -class _ViewGoldenComponent53 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent53(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent53(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent53(parentView, parentIndex); -} - -class _ViewGoldenComponent54 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent54(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent54(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent54(parentView, parentIndex); -} - -class _ViewGoldenComponent55 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent55(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent55(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent55(parentView, parentIndex); -} - -class _ViewGoldenComponent56 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent56(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent56(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent56(parentView, parentIndex); -} - -class _ViewGoldenComponent57 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent57(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent57(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent57(parentView, parentIndex); -} - -class _ViewGoldenComponent58 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent58(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent58(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent58(parentView, parentIndex); -} - -class _ViewGoldenComponent59 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent59(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent59(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent59(parentView, parentIndex); -} - -class _ViewGoldenComponent60 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent60(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent60(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent60(parentView, parentIndex); -} - -class _ViewGoldenComponent61 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent61(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent61(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent61(parentView, parentIndex); -} - -class _ViewGoldenComponent62 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent62(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent62(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent62(parentView, parentIndex); -} - -class _ViewGoldenComponent63 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent63(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent63(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent63(parentView, parentIndex); -} - -class _ViewGoldenComponent64 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent64(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent64(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent64(parentView, parentIndex); -} - -class _ViewGoldenComponent65 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent65(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent65(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent65(parentView, parentIndex); -} - -class _ViewGoldenComponent66 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent66(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent66(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent66(parentView, parentIndex); -} - -class _ViewGoldenComponent67 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent67(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent67(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent67(parentView, parentIndex); -} - -class _ViewGoldenComponent68 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent68(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent68(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent68(parentView, parentIndex); -} - -class _ViewGoldenComponent69 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent69(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent69(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent69(parentView, parentIndex); -} - -class _ViewGoldenComponent70 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent70(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent70(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent70(parentView, parentIndex); -} - -class _ViewGoldenComponent71 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent71(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent71(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent71(parentView, parentIndex); -} - -class _ViewGoldenComponent72 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent72(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent72(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent72(parentView, parentIndex); -} - -class _ViewGoldenComponent73 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent73(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent73(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent73(parentView, parentIndex); -} - -class _ViewGoldenComponent74 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent74(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent74(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent74(parentView, parentIndex); -} - -class _ViewGoldenComponent75 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent75(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent75(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent75(parentView, parentIndex); -} - -class _ViewGoldenComponent76 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent76(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent76(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent76(parentView, parentIndex); -} - -class _ViewGoldenComponent77 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent77(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent77(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent77(parentView, parentIndex); -} - -class _ViewGoldenComponent78 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent78(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent78(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent78(parentView, parentIndex); -} - -class _ViewGoldenComponent79 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent79(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent79(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent79(parentView, parentIndex); -} - -class _ViewGoldenComponent80 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent80(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent80(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent80(parentView, parentIndex); -} - -class _ViewGoldenComponent81 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent81(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent81(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent81(parentView, parentIndex); -} - -class _ViewGoldenComponent82 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent82(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent82(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent82(parentView, parentIndex); -} - -class _ViewGoldenComponent83 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent83(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent83(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent83(parentView, parentIndex); -} - -class _ViewGoldenComponent84 extends import13.EmbeddedView { - /*late final*/ ViewChildComponent0 _compView_0; - /*late final*/ import1.ChildComponent _ChildComponent_0_5; - _ViewGoldenComponent84(import14.RenderView parentView, int parentIndex) : super(parentView, parentIndex); - @override - void build() { - this._compView_0 = ViewChildComponent0(this, 0); - final _el_0 = this._compView_0.rootElement; - this._ChildComponent_0_5 = import1.ChildComponent(); - this._compView_0.create(this._ChildComponent_0_5); - this.initRootNode(_el_0); - } - - @override - void detectChangesInternal() { - this._compView_0.detectChanges(); - } - - @override - void destroyInternal() { - this._compView_0.destroyInternalState(); - } -} - -import13.EmbeddedView viewFactory_GoldenComponent84(import14.RenderView parentView, int parentIndex) { - return _ViewGoldenComponent84(parentView, parentIndex); -} - -final List styles$GoldenComponentHost = const []; - -class _ViewGoldenComponentHost0 extends import15.HostView { - @override - void build() { - this.componentView = ViewGoldenComponent0(this, 0); - final _el_0 = this.componentView.rootElement; - this.component = import1.GoldenComponent(); - this.initRootNode(_el_0); - } -} - -import15.HostView viewFactory_GoldenComponentHost0() { - return _ViewGoldenComponentHost0(); -} - -final List styles$ChildComponent = const []; - -class ViewChildComponent0 extends import0.ComponentView { - static import4.ComponentStyles /*?*/ _componentStyles; - ViewChildComponent0(import5.View parentView, int parentIndex) : super(parentView, parentIndex, import6.ChangeDetectionCheckedState.checkAlways) { - this.initComponentStyles(); - this.rootElement = import7.unsafeCast(import8.document.createElement('child')); - } - static String /*?*/ get _debugComponentUrl { - return (import7.isDevMode ? 'asset:goldens/test/templates/large_templates_opt_out.dart' : null); - } - - @override - void build() { - final parentRenderNode = this.initViewRoot(); - } - - static void _debugClearComponentStyles() { - _componentStyles = null; - } - - void initComponentStyles() { - var styles = _componentStyles; - if ((styles == null)) { - _componentStyles = (styles = import4.ComponentStyles.unscoped(styles$ChildComponent, _debugComponentUrl)); - if (import7.isDevMode) { - import4.ComponentStyles.debugOnClear(_debugClearComponentStyles); - } - } - this.componentStyles = styles; - } -} - -const _ChildComponentNgFactory = ComponentFactory('child', viewFactory_ChildComponentHost0); -ComponentFactory get ChildComponentNgFactory { - return _ChildComponentNgFactory; -} - -ComponentFactory createChildComponentFactory() { - return ComponentFactory('child', viewFactory_ChildComponentHost0); -} - -final List styles$ChildComponentHost = const []; - -class _ViewChildComponentHost0 extends import15.HostView { - @override - void build() { - this.componentView = ViewChildComponent0(this, 0); - final _el_0 = this.componentView.rootElement; - this.component = import1.ChildComponent(); - this.initRootNode(_el_0); - } -} - -import15.HostView viewFactory_ChildComponentHost0() { - return _ViewChildComponentHost0(); -} diff --git a/goldens/update_all.sh b/goldens/update_all.sh deleted file mode 100755 index 0ae3d0ea3f..0000000000 --- a/goldens/update_all.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -blaze test third_party/dart_src/angular/goldens:all --test_arg=--update --test_strategy=local --nocache_test_results diff --git a/melos.yaml b/melos.yaml index f7024aaeba..6f760f1b21 100644 --- a/melos.yaml +++ b/melos.yaml @@ -2,7 +2,7 @@ name: angular repository: https://github.com/angulardart-community/angular packages: - - "**" + - "**" # - ngast # - ngcompiler # - ngdart @@ -11,10 +11,5 @@ packages: # - ngtest ignore: - # - _tests + - _tests - examples - - tests - -command: - bootstrap: - usePubspecOverrides: true diff --git a/ngast/CHANGELOG.md b/ngast/CHANGELOG.md index b927a8baa1..9d0ca85995 100644 --- a/ngast/CHANGELOG.md +++ b/ngast/CHANGELOG.md @@ -1,11 +1,15 @@ +## 3.0.0-dev.1 + +- Migrate to Analyzer v6 and bump minimum SDK to 3.0 + ## 3.0.0-dev.0 - - Migrate to Analyzer v5 and bump minimum SDK to 2.18 +- Migrate to Analyzer v5 and bump minimum SDK to 2.18 ## 2.1.4 - - **FIX**: bring back original import file for compatibility. - - **DOCS**: add notices to improve pub score. +- **FIX**: bring back original import file for compatibility. +- **DOCS**: add notices to improve pub score. ## 2.1.3 diff --git a/ngast/lib/src/ast/attribute.dart b/ngast/lib/src/ast/attribute.dart index d7e0fb26c4..f1a3a5a7ef 100644 --- a/ngast/lib/src/ast/attribute.dart +++ b/ngast/lib/src/ast/attribute.dart @@ -5,12 +5,12 @@ import '../ast.dart'; import '../token/tokens.dart'; import '../visitor.dart'; -const _listEquals = ListEquality(); +const _listEquals = ListEquality(); /// Represents a static attribute assignment (i.e. not bound to an expression). /// /// Clients should not extend, implement, or mix-in this class. -abstract class AttributeAst implements TemplateAst { +abstract mixin class AttributeAst implements TemplateAst { /// Create a new synthetic [AttributeAst] with a string [value]. factory AttributeAst( String name, [ @@ -167,9 +167,9 @@ class _SyntheticAttributeAst extends SyntheticTemplateAst with AttributeAst { _SyntheticAttributeAst(this.name, [this.value, this.mustaches]); _SyntheticAttributeAst.from( - TemplateAst origin, + TemplateAst super.origin, this.name, [ this.value, this.mustaches, - ]) : super.from(origin); + ]) : super.from(); } diff --git a/ngast/lib/src/ast/close_element.dart b/ngast/lib/src/ast/close_element.dart index 0177bef457..350a702c98 100644 --- a/ngast/lib/src/ast/close_element.dart +++ b/ngast/lib/src/ast/close_element.dart @@ -7,7 +7,7 @@ import '../visitor.dart'; /// Represents the closing DOM element that was parsed. /// /// Clients should not extend, implement, or mix-in this class. -abstract class CloseElementAst implements TemplateAst { +abstract mixin class CloseElementAst implements TemplateAst { /// Creates a synthetic close element AST. factory CloseElementAst( String name, @@ -78,9 +78,9 @@ class _SyntheticCloseElementAst extends SyntheticTemplateAst ); _SyntheticCloseElementAst.from( - TemplateAst origin, + TemplateAst super.origin, this.name, - ) : super.from(origin); + ) : super.from(); @override final String name; diff --git a/ngast/lib/src/ast/comment.dart b/ngast/lib/src/ast/comment.dart index ce97ef4aab..c9d99ba4cb 100644 --- a/ngast/lib/src/ast/comment.dart +++ b/ngast/lib/src/ast/comment.dart @@ -7,7 +7,7 @@ import '../visitor.dart'; /// Represents a comment block of static text. /// /// Clients should not extend, implement, or mix-in this class. -abstract class CommentAst implements StandaloneTemplateAst { +abstract mixin class CommentAst implements StandaloneTemplateAst { /// Create a new synthetic [CommentAst] with a string [value]. factory CommentAst(String value) = _SyntheticCommentAst; @@ -70,7 +70,7 @@ class _SyntheticCommentAst extends SyntheticTemplateAst with CommentAst { _SyntheticCommentAst(this.value); _SyntheticCommentAst.from( - TemplateAst origin, + TemplateAst super.origin, this.value, - ) : super.from(origin); + ) : super.from(); } diff --git a/ngast/lib/src/ast/container.dart b/ngast/lib/src/ast/container.dart index 8345f8fff0..52148dae67 100644 --- a/ngast/lib/src/ast/container.dart +++ b/ngast/lib/src/ast/container.dart @@ -12,7 +12,7 @@ const _listEquals = ListEquality(); /// This is a logical container that has no effect on layout in the DOM. /// /// Clients should not extend, implement, or mix-in this class. -abstract class ContainerAst implements StandaloneTemplateAst { +abstract mixin class ContainerAst implements StandaloneTemplateAst { factory ContainerAst({ List annotations, List childNodes, @@ -126,12 +126,12 @@ class _SyntheticContainerAst extends SyntheticTemplateAst with ContainerAst { }) : closeComplement = CloseElementAst('ng-container'); _SyntheticContainerAst.from( - TemplateAst origin, { + TemplateAst super.origin, { this.annotations = const [], this.childNodes = const [], this.stars = const [], }) : closeComplement = CloseElementAst('ng-container'), - super.from(origin); + super.from(); @override CloseElementAst closeComplement; diff --git a/ngast/lib/src/ast/content.dart b/ngast/lib/src/ast/content.dart index e700595a57..7efa9dffa2 100644 --- a/ngast/lib/src/ast/content.dart +++ b/ngast/lib/src/ast/content.dart @@ -9,7 +9,7 @@ import '../visitor.dart'; /// Embedded content is _like_ an `ElementAst`, but only contains children. /// /// Clients should not extend, implement, or mix-in this class. -abstract class EmbeddedContentAst implements StandaloneTemplateAst { +abstract mixin class EmbeddedContentAst implements StandaloneTemplateAst { /// Create a synthetic embedded content AST. factory EmbeddedContentAst([ String selector, @@ -148,11 +148,11 @@ class _SyntheticEmbeddedContentAst extends SyntheticTemplateAst } _SyntheticEmbeddedContentAst.from( - TemplateAst origin, [ + TemplateAst super.origin, [ this.selector = '*', this.ngProjectAs, this.reference, - ]) : super.from(origin) { + ]) : super.from() { closeComplement = CloseElementAst('ng-content'); } } diff --git a/ngast/lib/src/ast/element.dart b/ngast/lib/src/ast/element.dart index 84ad7541c0..ec74e62e43 100644 --- a/ngast/lib/src/ast/element.dart +++ b/ngast/lib/src/ast/element.dart @@ -5,12 +5,12 @@ import '../ast.dart'; import '../token/tokens.dart'; import '../visitor.dart'; -const _listEquals = ListEquality(); +const _listEquals = ListEquality(); /// Represents a DOM element that was parsed, that could be upgraded. /// /// Clients should not extend, implement, or mix-in this class. -abstract class ElementAst implements StandaloneTemplateAst { +abstract mixin class ElementAst implements StandaloneTemplateAst { /// Create a synthetic element AST. factory ElementAst( String name, @@ -270,7 +270,7 @@ class _SyntheticElementAst extends SyntheticTemplateAst with ElementAst { }); _SyntheticElementAst.from( - TemplateAst origin, + TemplateAst super.origin, this.name, this.closeComplement, { this.attributes = const [], @@ -281,7 +281,7 @@ class _SyntheticElementAst extends SyntheticTemplateAst with ElementAst { this.bananas = const [], this.stars = const [], this.annotations = const [], - }) : super.from(origin); + }) : super.from(); @override final String name; diff --git a/ngast/lib/src/ast/event.dart b/ngast/lib/src/ast/event.dart index 84150984aa..ba13639d66 100644 --- a/ngast/lib/src/ast/event.dart +++ b/ngast/lib/src/ast/event.dart @@ -5,13 +5,13 @@ import '../ast.dart'; import '../token/tokens.dart'; import '../visitor.dart'; -const _listEquals = ListEquality(); +const _listEquals = ListEquality(); /// Represents an event listener `(eventName.reductions)="expression"` on an /// element. /// /// Clients should not extend, implement, or mix-in this class. -abstract class EventAst implements TemplateAst { +abstract mixin class EventAst implements TemplateAst { /// Create a new synthetic [EventAst] listening to [name]. factory EventAst( String name, @@ -172,9 +172,9 @@ class _SyntheticEventAst extends SyntheticTemplateAst with EventAst { ]); _SyntheticEventAst.from( - TemplateAst origin, + TemplateAst super.origin, this.name, this.value, [ this.reductions = const [], - ]) : super.from(origin); + ]) : super.from(); } diff --git a/ngast/lib/src/ast/interpolation.dart b/ngast/lib/src/ast/interpolation.dart index db6f45a7de..11027adc6f 100644 --- a/ngast/lib/src/ast/interpolation.dart +++ b/ngast/lib/src/ast/interpolation.dart @@ -7,7 +7,7 @@ import '../visitor.dart'; /// Represents a bound text element to an expression. /// /// Clients should not extend, implement, or mix-in this class. -abstract class InterpolationAst implements StandaloneTemplateAst { +abstract mixin class InterpolationAst implements StandaloneTemplateAst { /// Create a new synthetic [InterpolationAst] with a bound [expression]. factory InterpolationAst( String value, @@ -66,9 +66,9 @@ class _SyntheticInterpolationAst extends SyntheticTemplateAst _SyntheticInterpolationAst(this.value); _SyntheticInterpolationAst.from( - TemplateAst origin, + TemplateAst super.origin, this.value, - ) : super.from(origin); + ) : super.from(); @override final String value; diff --git a/ngast/lib/src/ast/let_binding.dart b/ngast/lib/src/ast/let_binding.dart index 6d465bef8c..ae5f518243 100644 --- a/ngast/lib/src/ast/let_binding.dart +++ b/ngast/lib/src/ast/let_binding.dart @@ -9,7 +9,7 @@ import '../visitor.dart'; /// for a [EmbeddedTemplateAst]. /// /// Clients should not extend, implement, or mix-in this class. -abstract class LetBindingAst implements TemplateAst { +abstract mixin class LetBindingAst implements TemplateAst { /// Create a new synthetic [LetBindingAst] listening to [name]. /// [value] is an optional parameter, which indicates that the variable is /// bound to a the value '$implicit'. @@ -143,8 +143,8 @@ class _SyntheticLetBindingAst extends SyntheticTemplateAst with LetBindingAst { _SyntheticLetBindingAst(this.name, [this.value]); _SyntheticLetBindingAst.from( - TemplateAst? origin, + super.origin, this.name, [ this.value, - ]) : super.from(origin); + ]) : super.from(); } diff --git a/ngast/lib/src/ast/property.dart b/ngast/lib/src/ast/property.dart index 7d203f84ef..293d4050d8 100644 --- a/ngast/lib/src/ast/property.dart +++ b/ngast/lib/src/ast/property.dart @@ -8,7 +8,7 @@ import '../visitor.dart'; /// element. /// /// Clients should not extend, implement, or mix-in this class. -abstract class PropertyAst implements TemplateAst { +abstract mixin class PropertyAst implements TemplateAst { /// Create a new synthetic [PropertyAst] assigned to [name]. factory PropertyAst( String name, [ @@ -188,12 +188,12 @@ class _SyntheticPropertyAst extends SyntheticTemplateAst with PropertyAst { ]); _SyntheticPropertyAst.from( - TemplateAst? origin, + super.origin, this.name, [ this.value, this.postfix, this.unit, - ]) : super.from(origin); + ]) : super.from(); @override final String name; diff --git a/ngast/lib/src/ast/reference.dart b/ngast/lib/src/ast/reference.dart index 618af4edc8..9d170cacfc 100644 --- a/ngast/lib/src/ast/reference.dart +++ b/ngast/lib/src/ast/reference.dart @@ -7,7 +7,7 @@ import '../visitor.dart'; /// Represents a reference to an element or exported directive instance. /// /// Clients should not extend, implement, or mix-in this class. -abstract class ReferenceAst implements TemplateAst { +abstract mixin class ReferenceAst implements TemplateAst { /// Create a new synthetic reference of [variable]. factory ReferenceAst( String variable, [ @@ -138,10 +138,10 @@ class _SyntheticReferenceAst extends SyntheticTemplateAst with ReferenceAst { _SyntheticReferenceAst(this.variable, [this.identifier]); _SyntheticReferenceAst.from( - TemplateAst origin, + TemplateAst super.origin, this.variable, [ this.identifier, - ]) : super.from(origin); + ]) : super.from(); @override final String? identifier; diff --git a/ngast/lib/src/ast/sugar/annotation.dart b/ngast/lib/src/ast/sugar/annotation.dart index 3179ec7e0d..ffdd5d7717 100644 --- a/ngast/lib/src/ast/sugar/annotation.dart +++ b/ngast/lib/src/ast/sugar/annotation.dart @@ -9,7 +9,7 @@ import '../../visitor.dart'; /// This annotation may optionally be assigned a value `@annotation="value"`. /// /// Clients should not extend, implement, or mix-in this class. -abstract class AnnotationAst implements TemplateAst { +abstract mixin class AnnotationAst implements TemplateAst { /// Create a new synthetic [AnnotationAst] with a string [name]. factory AnnotationAst(String name, [String? value]) = _SyntheticAnnotationAst; @@ -116,6 +116,9 @@ class _SyntheticAnnotationAst extends SyntheticTemplateAst with AnnotationAst { _SyntheticAnnotationAst(this.name, [this.value]); - _SyntheticAnnotationAst.from(TemplateAst origin, this.name, [this.value]) - : super.from(origin); + _SyntheticAnnotationAst.from( + TemplateAst super.origin, + this.name, [ + this.value, + ]) : super.from(); } diff --git a/ngast/lib/src/ast/sugar/banana.dart b/ngast/lib/src/ast/sugar/banana.dart index ed55de2292..f64d3b16f7 100644 --- a/ngast/lib/src/ast/sugar/banana.dart +++ b/ngast/lib/src/ast/sugar/banana.dart @@ -10,7 +10,7 @@ import '../../visitor.dart'; /// useful for tooling, but not useful for compilers). /// /// Clients should not extend, implement, or mix-in this class. -abstract class BananaAst implements TemplateAst { +abstract mixin class BananaAst implements TemplateAst { /// Create a new synthetic [BananaAst] with a string [field]. factory BananaAst( String name, [ @@ -142,8 +142,8 @@ class _SyntheticBananaAst extends SyntheticTemplateAst with BananaAst { _SyntheticBananaAst(this.name, [this.value]); _SyntheticBananaAst.from( - TemplateAst origin, + TemplateAst super.origin, this.name, [ this.value, - ]) : super.from(origin); + ]) : super.from(); } diff --git a/ngast/lib/src/ast/sugar/star.dart b/ngast/lib/src/ast/sugar/star.dart index 7e200be803..b6d52cc23b 100644 --- a/ngast/lib/src/ast/sugar/star.dart +++ b/ngast/lib/src/ast/sugar/star.dart @@ -10,7 +10,7 @@ import '../../visitor.dart'; /// useful for tooling, but not useful for compilers). /// /// Clients should not extend, implement, or mix-in this class. -abstract class StarAst implements TemplateAst { +abstract mixin class StarAst implements TemplateAst { /// Create a new synthetic [StarAst] assigned to [name]. factory StarAst( String name, [ @@ -137,10 +137,10 @@ class _SyntheticStarAst extends SyntheticTemplateAst with StarAst { ]); _SyntheticStarAst.from( - TemplateAst origin, + TemplateAst super.origin, this.name, [ this.value, - ]) : super.from(origin); + ]) : super.from(); @override final String name; diff --git a/ngast/lib/src/ast/template.dart b/ngast/lib/src/ast/template.dart index 55fb3980fd..4b9b0b5949 100644 --- a/ngast/lib/src/ast/template.dart +++ b/ngast/lib/src/ast/template.dart @@ -5,7 +5,7 @@ import '../ast.dart'; import '../token/tokens.dart'; import '../visitor.dart'; -const _listEquals = ListEquality(); +const _listEquals = ListEquality(); /// Represents an embedded template (i.e. is not directly rendered in DOM). /// @@ -14,7 +14,7 @@ const _listEquals = ListEquality(); /// [references]. /// /// Clients should not extend, implement, or mix-in this class. -abstract class EmbeddedTemplateAst implements StandaloneTemplateAst { +abstract mixin class EmbeddedTemplateAst implements StandaloneTemplateAst { factory EmbeddedTemplateAst({ List annotations, List attributes, @@ -222,7 +222,7 @@ class _SyntheticEmbeddedTemplateAst extends SyntheticTemplateAst }) : closeComplement = CloseElementAst('template'); _SyntheticEmbeddedTemplateAst.from( - TemplateAst origin, { + TemplateAst super.origin, { this.annotations = const [], this.attributes = const [], this.childNodes = const [], @@ -231,7 +231,7 @@ class _SyntheticEmbeddedTemplateAst extends SyntheticTemplateAst this.references = const [], this.letBindings = const [], }) : closeComplement = CloseElementAst('template'), - super.from(origin); + super.from(); @override final List annotations; diff --git a/ngast/lib/src/ast/text.dart b/ngast/lib/src/ast/text.dart index 79b2122b30..49a3f99bc3 100644 --- a/ngast/lib/src/ast/text.dart +++ b/ngast/lib/src/ast/text.dart @@ -7,7 +7,7 @@ import '../visitor.dart'; /// Represents a block of static text (i.e. not bound to a directive). /// /// Clients should not extend, implement, or mix-in this class. -abstract class TextAst implements StandaloneTemplateAst { +abstract mixin class TextAst implements StandaloneTemplateAst { /// Create a new synthetic [TextAst] with a string [value]. factory TextAst(String value) = _SyntheticTextAst; @@ -59,5 +59,5 @@ class _SyntheticTextAst extends SyntheticTemplateAst with TextAst { _SyntheticTextAst(this.value); - _SyntheticTextAst.from(TemplateAst origin, this.value) : super.from(origin); + _SyntheticTextAst.from(TemplateAst super.origin, this.value) : super.from(); } diff --git a/ngast/lib/src/expression/micro/ast.dart b/ngast/lib/src/expression/micro/ast.dart index 6f788968d6..adad07a166 100644 --- a/ngast/lib/src/expression/micro/ast.dart +++ b/ngast/lib/src/expression/micro/ast.dart @@ -3,7 +3,7 @@ import 'package:meta/meta.dart'; import '../../ast.dart'; -final _listEquals = const ListEquality(); +final _listEquals = const ListEquality(); /// A de-sugared form of longer pseudo expression. class NgMicroAst { diff --git a/ngast/lib/src/parser/reader.dart b/ngast/lib/src/parser/reader.dart index d2cbc12bad..1d1912b395 100644 --- a/ngast/lib/src/parser/reader.dart +++ b/ngast/lib/src/parser/reader.dart @@ -74,9 +74,9 @@ class NgTokenReversibleReader extends NgTokenReader { } NgTokenReversibleReader._( - SourceFile? source, - Iterator> iterator, - ) : super._(source, iterator); + super.source, + super.iterator, + ) : super._(); /// Scans forward for the next peek type that isn't ignoreType /// For example, `peekTypeIgnoringType(whitespace)` will peek diff --git a/ngast/mono_pkg.yaml b/ngast/mono_pkg.yaml index 7933b8ee8f..fb944aa0cc 100644 --- a/ngast/mono_pkg.yaml +++ b/ngast/mono_pkg.yaml @@ -1,10 +1,16 @@ sdk: - - 2.19.6 - pubspec + - dev stages: - analyze: - - format - - analyze: --fatal-infos + - format: + sdk: + - pubspec + - analyze: --fatal-infos . - unit_test: - - command: dart test -P ci + - test: -P ci + +cache: + directories: + - .dart_tool/build diff --git a/ngast/pubspec.yaml b/ngast/pubspec.yaml index 4cb9559536..8bff58d29d 100644 --- a/ngast/pubspec.yaml +++ b/ngast/pubspec.yaml @@ -1,19 +1,19 @@ name: ngast description: Parser and utilities for AngularDart templates -version: 3.0.0-dev.0 +version: 3.0.0-dev.1 repository: https://github.com/angulardart-community/angular environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=3.1.0 <4.0.0" dependencies: charcode: ^1.3.1 - collection: ^1.17.0 - meta: ^1.8.0 - source_span: ^1.9.1 + collection: ^1.18.0 + meta: ^1.11.0 + source_span: ^1.10.0 string_scanner: ^1.2.0 dev_dependencies: - lints: ^2.0.1 + lints: ^2.1.0 path: ^1.8.3 - test: ^1.22.2 + test: ^1.24.4 diff --git a/ngast/test/ast_cli_tester.dart b/ngast/test/ast_cli_tester.dart index d4210d0ca3..9c9fb08199 100644 --- a/ngast/test/ast_cli_tester.dart +++ b/ngast/test/ast_cli_tester.dart @@ -1,7 +1,7 @@ import 'dart:io'; -import 'package:path/path.dart' as p; import 'package:ngast/ngast.dart'; +import 'package:path/path.dart' as p; RecoveringExceptionHandler exceptionHandler = RecoveringExceptionHandler(); diff --git a/ngast/test/e2e/e2e_template_tests.dart b/ngast/test/e2e/e2e_template_tests.dart index 89d8aa2557..1568e34a2b 100644 --- a/ngast/test/e2e/e2e_template_tests.dart +++ b/ngast/test/e2e/e2e_template_tests.dart @@ -1,8 +1,8 @@ import 'dart:io'; +import 'package:ngast/ngast.dart'; import 'package:path/path.dart' as p; import 'package:test/test.dart'; -import 'package:ngast/ngast.dart'; void main() { var parse = const NgParser().parse; diff --git a/ngast/test/expression/micro/lexer_test.dart b/ngast/test/expression/micro/lexer_test.dart index fb3107132a..00d42d4e98 100644 --- a/ngast/test/expression/micro/lexer_test.dart +++ b/ngast/test/expression/micro/lexer_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngast/src/expression/micro/lexer.dart'; import 'package:ngast/src/expression/micro/token.dart'; +import 'package:test/test.dart'; void main() { // Returns the html parsed as a series of tokens. diff --git a/ngast/test/expression/micro/parser_test.dart b/ngast/test/expression/micro/parser_test.dart index ffa06ce8ce..bf9569985a 100644 --- a/ngast/test/expression/micro/parser_test.dart +++ b/ngast/test/expression/micro/parser_test.dart @@ -1,7 +1,7 @@ -import 'package:test/test.dart'; import 'package:ngast/ngast.dart'; import 'package:ngast/src/expression/micro/ast.dart'; import 'package:ngast/src/expression/micro/parser.dart'; +import 'package:test/test.dart'; void main() { NgMicroAst parse(String directive, String expression, int offset) { diff --git a/ngast/test/lexer_test.dart b/ngast/test/lexer_test.dart index a4a2fec5b2..98bef62384 100644 --- a/ngast/test/lexer_test.dart +++ b/ngast/test/lexer_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngast/ngast.dart'; +import 'package:test/test.dart'; void main() { // Returns the html parsed as a series of tokens. diff --git a/ngast/test/parser_test.dart b/ngast/test/parser_test.dart index 0a0c0c071f..58a0dcab96 100644 --- a/ngast/test/parser_test.dart +++ b/ngast/test/parser_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngast/ngast.dart'; +import 'package:test/test.dart'; void main() { List parse(String template) { diff --git a/ngast/test/random_generator_test/random_tester.dart b/ngast/test/random_generator_test/random_tester.dart index 0465343370..79577b91b7 100644 --- a/ngast/test/random_generator_test/random_tester.dart +++ b/ngast/test/random_generator_test/random_tester.dart @@ -2,9 +2,9 @@ import 'dart:core'; import 'dart:io'; import 'dart:math'; -import 'package:path/path.dart' as p; import 'package:ngast/ngast.dart'; import 'package:ngast/src/token/tokens.dart'; +import 'package:path/path.dart' as p; final int generationCount = 10000; final int iterationCount = 100; diff --git a/ngast/test/recover_errors_lexer_test.dart b/ngast/test/recover_errors_lexer_test.dart index 67f49a3a6d..138076e87f 100644 --- a/ngast/test/recover_errors_lexer_test.dart +++ b/ngast/test/recover_errors_lexer_test.dart @@ -1,8 +1,8 @@ -import 'package:test/test.dart'; import 'package:ngast/ngast.dart'; import 'package:ngast/src/parser/reader.dart'; import 'package:ngast/src/scanner.dart'; import 'package:ngast/src/token/tokens.dart'; +import 'package:test/test.dart'; const ThrowingExceptionHandler throwingException = ThrowingExceptionHandler(); RecoveringExceptionHandler recoveringException = RecoveringExceptionHandler(); diff --git a/ngast/test/recover_errors_parser_test.dart b/ngast/test/recover_errors_parser_test.dart index db765d976b..55aa83d234 100644 --- a/ngast/test/recover_errors_parser_test.dart +++ b/ngast/test/recover_errors_parser_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngast/ngast.dart'; +import 'package:test/test.dart'; final recoveringExceptionHandler = RecoveringExceptionHandler(); diff --git a/ngast/test/simple_token_test.dart b/ngast/test/simple_token_test.dart index e01901fe8a..797ede4b9c 100644 --- a/ngast/test/simple_token_test.dart +++ b/ngast/test/simple_token_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngast/src/token/tokens.dart'; +import 'package:test/test.dart'; void main() { NgSimpleToken token; diff --git a/ngast/test/simple_tokenizer_test.dart b/ngast/test/simple_tokenizer_test.dart index ce99da3f7a..211e02d4d7 100644 --- a/ngast/test/simple_tokenizer_test.dart +++ b/ngast/test/simple_tokenizer_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngast/src/simple_tokenizer.dart'; import 'package:ngast/src/token/tokens.dart'; +import 'package:test/test.dart'; void main() { Iterable tokenize(String html) => diff --git a/ngast/test/token_test.dart b/ngast/test/token_test.dart index 3d1a011528..a820a2305a 100644 --- a/ngast/test/token_test.dart +++ b/ngast/test/token_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngast/src/token/tokens.dart'; +import 'package:test/test.dart'; void main() => group('$NgToken', _testNgToken); diff --git a/ngast/test/visitor_test.dart b/ngast/test/visitor_test.dart index 37019e4987..e0076cdce8 100644 --- a/ngast/test/visitor_test.dart +++ b/ngast/test/visitor_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngast/ngast.dart'; +import 'package:test/test.dart'; void main() { // DesugarVisitor is tested by parser_test.dart diff --git a/ngcompiler/lib/v1/kythe_utils.dart b/ngcompiler/lib/v1/kythe_utils.dart index 28bdeff653..0a6b3ec6d0 100644 --- a/ngcompiler/lib/v1/kythe_utils.dart +++ b/ngcompiler/lib/v1/kythe_utils.dart @@ -1,11 +1,11 @@ import 'package:analyzer/dart/element/element.dart'; import 'package:build/build.dart' show AssetId; -import 'package:source_gen/source_gen.dart'; import 'package:ngcompiler/v1/src/compiler/template_compiler.dart'; import 'package:ngcompiler/v1/src/source_gen/template_compiler/component_visitor_exceptions.dart'; import 'package:ngcompiler/v1/src/source_gen/template_compiler/find_components.dart' show findComponentsAndDirectives; import 'package:ngcompiler/v2/context.dart'; +import 'package:source_gen/source_gen.dart'; export 'package:ngcompiler/v1/src/compiler/compile_metadata.dart' show CompileDirectiveMetadata; @@ -27,7 +27,6 @@ Future? angularArtifactsForKythe(LibraryElement element, assetId, policyExceptions: {}, policyExceptionsInPackages: {}, - isNullSafe: element.isNonNullableByDefault, enableDevTools: false, ), () async { try { diff --git a/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/dependencies.dart b/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/dependencies.dart index c617651e30..0feca37db9 100644 --- a/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/dependencies.dart +++ b/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/dependencies.dart @@ -3,10 +3,10 @@ import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/type.dart'; import 'package:collection/collection.dart'; import 'package:meta/meta.dart'; -import 'package:source_gen/source_gen.dart'; import 'package:ngcompiler/v1/cli.dart'; import 'package:ngcompiler/v2/analyzer.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:source_gen/source_gen.dart'; import '../common.dart'; import '../types.dart'; @@ -140,10 +140,6 @@ class DependencyReader { DartType type, { required bool isOptional, }) { - if (!CompileContext.current.emitNullSafeCode) { - // Do not run this check for libraries not opted-in to null safety. - return; - } if (type.isExplicitlyNonNullable) { // Must *NOT* be @Optional() if (isOptional) { diff --git a/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/injector.dart b/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/injector.dart index 0e09017a81..09bc07272a 100644 --- a/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/injector.dart +++ b/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/injector.dart @@ -2,10 +2,10 @@ import 'package:analyzer/dart/constant/value.dart'; import 'package:analyzer/dart/element/element.dart'; import 'package:code_builder/code_builder.dart'; import 'package:meta/meta.dart' hide literal; -import 'package:path/path.dart' as p; -import 'package:source_gen/source_gen.dart'; import 'package:ngcompiler/v1/cli.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:path/path.dart' as p; +import 'package:source_gen/source_gen.dart'; import '../link.dart'; import '../types.dart'; diff --git a/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/providers.dart b/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/providers.dart index 0da9a9a51e..ae2f4eb5d6 100644 --- a/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/providers.dart +++ b/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/providers.dart @@ -1,8 +1,8 @@ import 'package:analyzer/dart/constant/value.dart'; import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/type.dart'; -import 'package:ngcompiler/v2/context.dart'; import 'package:meta/meta.dart'; +import 'package:ngcompiler/v2/context.dart'; import 'package:source_gen/source_gen.dart'; import '../common.dart'; @@ -238,11 +238,11 @@ class UseClassProviderElement extends ProviderElement { @visibleForTesting const UseClassProviderElement( - TokenElement e, - TypeLink? providerType, + super.e, + super.providerType, this.useClass, { required this.dependencies, - }) : super._(e, providerType); + }) : super._(); @override bool operator ==(Object other) => @@ -268,10 +268,10 @@ class UseExistingProviderElement extends ProviderElement { final TokenElement redirect; const UseExistingProviderElement( - TokenElement e, - TypeLink providerType, + super.e, + TypeLink super.providerType, this.redirect, - ) : super._(e, providerType); + ) : super._(); @override bool operator ==(Object other) => @@ -299,14 +299,11 @@ class UseFactoryProviderElement extends ProviderElement { @visibleForTesting const UseFactoryProviderElement( - TokenElement e, - TypeLink? providerType, + super.e, + super.providerType, this.useFactory, { required this.dependencies, - }) : super._( - e, - providerType, - ); + }) : super._(); @override bool operator ==(Object other) => @@ -334,13 +331,10 @@ class UseValueProviderElement extends ProviderElement { // Not visible for testing because its impractical to create one. const UseValueProviderElement._( - TokenElement e, - TypeLink providerType, + super.e, + TypeLink super.providerType, this.useValue, - ) : super._( - e, - providerType, - ); + ) : super._(); } /// Thrown when a value of `null` is read for a provider token. diff --git a/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/tokens.dart b/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/tokens.dart index 8a27739f37..f604016861 100644 --- a/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/tokens.dart +++ b/ngcompiler/lib/v1/src/angular_compiler/analyzer/di/tokens.dart @@ -1,8 +1,8 @@ import 'package:analyzer/dart/constant/value.dart'; import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/type.dart'; -import 'package:ngcompiler/v2/context.dart'; import 'package:meta/meta.dart'; +import 'package:ngcompiler/v2/context.dart'; import 'package:source_gen/source_gen.dart'; import '../link.dart'; diff --git a/ngcompiler/lib/v1/src/angular_compiler/analyzer/view/directive.dart b/ngcompiler/lib/v1/src/angular_compiler/analyzer/view/directive.dart index d460ee50c0..75b5798f0f 100644 --- a/ngcompiler/lib/v1/src/angular_compiler/analyzer/view/directive.dart +++ b/ngcompiler/lib/v1/src/angular_compiler/analyzer/view/directive.dart @@ -1,8 +1,8 @@ import 'package:analyzer/dart/constant/value.dart'; import 'package:analyzer/dart/element/element.dart'; import 'package:meta/meta.dart'; -import 'package:source_gen/source_gen.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:source_gen/source_gen.dart'; import '../types.dart'; diff --git a/ngcompiler/lib/v1/src/angular_compiler/analyzer/view/typed_reader.dart b/ngcompiler/lib/v1/src/angular_compiler/analyzer/view/typed_reader.dart index 932c470219..595dafc10e 100644 --- a/ngcompiler/lib/v1/src/angular_compiler/analyzer/view/typed_reader.dart +++ b/ngcompiler/lib/v1/src/angular_compiler/analyzer/view/typed_reader.dart @@ -2,8 +2,8 @@ import 'package:analyzer/dart/constant/value.dart'; import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/nullability_suffix.dart'; import 'package:analyzer/dart/element/type.dart'; -import 'package:source_gen/source_gen.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:source_gen/source_gen.dart'; import '../common.dart'; import '../link.dart'; diff --git a/ngcompiler/lib/v1/src/angular_compiler/cli/builder.dart b/ngcompiler/lib/v1/src/angular_compiler/cli/builder.dart index 275f18bbaf..7b0cabc57b 100644 --- a/ngcompiler/lib/v1/src/angular_compiler/cli/builder.dart +++ b/ngcompiler/lib/v1/src/angular_compiler/cli/builder.dart @@ -1,6 +1,6 @@ -import 'package:ngcompiler/v2/context.dart'; import 'package:build/build.dart'; import 'package:dart_style/dart_style.dart'; +import 'package:ngcompiler/v2/context.dart'; import 'package:source_gen/source_gen.dart'; import 'flags.dart'; @@ -29,13 +29,11 @@ class Compiler implements Generator { @override Future generate(LibraryReader library, BuildStep buildStep) { - final isNullSafe = library.element.isNonNullableByDefault; return runWithContext( CompileContext( buildStep.inputId, policyExceptions: _flags.policyExceptions, policyExceptionsInPackages: _flags.policyExceptionInPackages, - isNullSafe: isNullSafe, enableDevTools: _flags.enableDevTools, ), () => _build(library, buildStep, _flags), diff --git a/ngcompiler/lib/v1/src/angular_compiler/emitter/split_dart_emitter.dart b/ngcompiler/lib/v1/src/angular_compiler/emitter/split_dart_emitter.dart index 2024a10556..2a9025fbd8 100644 --- a/ngcompiler/lib/v1/src/angular_compiler/emitter/split_dart_emitter.dart +++ b/ngcompiler/lib/v1/src/angular_compiler/emitter/split_dart_emitter.dart @@ -10,13 +10,8 @@ class SplitDartEmitter extends DartEmitter { SplitDartEmitter( this._writeImports, { - Allocator allocator = Allocator.none, - bool emitNullSafeSyntax = false, - }) : super( - allocator: allocator, - orderDirectives: false, - useNullSafetySyntax: emitNullSafeSyntax, - ); + super.allocator, + }) : super(orderDirectives: false, useNullSafetySyntax: true); @override StringSink visitDirective(Directive spec, [StringSink? output]) { diff --git a/ngcompiler/lib/v1/src/compiler/analyzed_class.dart b/ngcompiler/lib/v1/src/compiler/analyzed_class.dart index 79550a7983..9edb63c26f 100644 --- a/ngcompiler/lib/v1/src/compiler/analyzed_class.dart +++ b/ngcompiler/lib/v1/src/compiler/analyzed_class.dart @@ -10,32 +10,18 @@ class AnalyzedClass { final ClassElement classElement; final Map locals; - /// Whether this class has mock-like behavior. - /// - /// The heuristic used to determine mock-like behavior is if the analyzed - /// class or one of its ancestors, other than [Object], implements - /// [noSuchMethod]. - /// - /// Note that is the value is _never_ true for null-safe libraries, as we no - /// longer support null streams/stream subscriptions in the generated code. - final bool isMockLike; - // The type provider associated with this class. TypeProvider get _typeProvider => classElement.library.typeProvider; AnalyzedClass( this.classElement, { - this.isMockLike = false, this.locals = const {}, }); AnalyzedClass.from(AnalyzedClass other, {Map additionalLocals = const {}}) : classElement = other.classElement, - isMockLike = other.isMockLike, - locals = {} - ..addAll(other.locals) - ..addAll(additionalLocals); + locals = {...other.locals, ...additionalLocals}; } /// Returns the [expression] type evaluated within context of [analyzedClass]. diff --git a/ngcompiler/lib/v1/src/compiler/angular_compiler.dart b/ngcompiler/lib/v1/src/compiler/angular_compiler.dart index 6c359a9753..5480842d02 100644 --- a/ngcompiler/lib/v1/src/compiler/angular_compiler.dart +++ b/ngcompiler/lib/v1/src/compiler/angular_compiler.dart @@ -1,7 +1,5 @@ import 'package:analyzer/dart/element/element.dart'; import 'package:build/build.dart'; -import 'package:source_gen/source_gen.dart'; -import 'package:ngdart/src/meta.dart'; import 'package:ngcompiler/v1/src/compiler/ast_directive_normalizer.dart'; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart'; import 'package:ngcompiler/v1/src/compiler/compiler_utils.dart'; @@ -12,6 +10,8 @@ import 'package:ngcompiler/v1/src/compiler/template_compiler.dart'; import 'package:ngcompiler/v1/src/compiler/template_parser/ast_template_parser.dart'; import 'package:ngcompiler/v1/src/source_gen/template_compiler/component_visitor_exceptions.dart'; import 'package:ngcompiler/v1/src/source_gen/template_compiler/find_components.dart'; +import 'package:ngdart/src/meta.dart'; +import 'package:source_gen/source_gen.dart'; /// The bulk of "compilation" for AngularDart's components and templates. /// diff --git a/ngcompiler/lib/v1/src/compiler/ast_directive_normalizer.dart b/ngcompiler/lib/v1/src/compiler/ast_directive_normalizer.dart index fe590518d5..32711a70e0 100644 --- a/ngcompiler/lib/v1/src/compiler/ast_directive_normalizer.dart +++ b/ngcompiler/lib/v1/src/compiler/ast_directive_normalizer.dart @@ -1,8 +1,8 @@ -import 'package:ngdart/src/meta.dart'; import 'package:ngast/ngast.dart' as ast; import 'package:ngcompiler/v1/angular_compiler.dart'; import 'package:ngcompiler/v1/cli.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:ngdart/src/meta.dart'; import 'compile_metadata.dart'; import 'parse_util.dart'; diff --git a/ngcompiler/lib/v1/src/compiler/compile_metadata.dart b/ngcompiler/lib/v1/src/compiler/compile_metadata.dart index 8b1719251d..7162d46f23 100644 --- a/ngcompiler/lib/v1/src/compiler/compile_metadata.dart +++ b/ngcompiler/lib/v1/src/compiler/compile_metadata.dart @@ -1,8 +1,8 @@ import 'package:collection/collection.dart'; -import 'package:ngcompiler/v1/src/compiler/template_ast.dart'; -import 'package:ngdart/src/meta.dart'; import 'package:ngcompiler/v1/cli.dart'; +import 'package:ngcompiler/v1/src/compiler/template_ast.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:ngdart/src/meta.dart'; import 'analyzed_class.dart'; import 'expression_parser/ast.dart' as ast; diff --git a/ngcompiler/lib/v1/src/compiler/i18n.dart b/ngcompiler/lib/v1/src/compiler/i18n.dart index 6fb43a144c..6c783871bb 100644 --- a/ngcompiler/lib/v1/src/compiler/i18n.dart +++ b/ngcompiler/lib/v1/src/compiler/i18n.dart @@ -1,6 +1,6 @@ -import 'package:source_span/source_span.dart'; import 'package:ngast/ngast.dart' as ast; import 'package:ngcompiler/v2/context.dart'; +import 'package:source_span/source_span.dart'; import 'i18n/builder.dart'; import 'i18n/message.dart'; diff --git a/ngcompiler/lib/v1/src/compiler/i18n/metadata.dart b/ngcompiler/lib/v1/src/compiler/i18n/metadata.dart index 7807d42729..f2011cbdfa 100644 --- a/ngcompiler/lib/v1/src/compiler/i18n/metadata.dart +++ b/ngcompiler/lib/v1/src/compiler/i18n/metadata.dart @@ -1,6 +1,6 @@ -import 'package:source_span/source_span.dart' show SourceSpan; import 'package:ngast/ngast.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:source_span/source_span.dart' show SourceSpan; const i18nDescription = 'i18n'; const i18nDescriptionPrefix = '$i18nDescription:'; diff --git a/ngcompiler/lib/v1/src/compiler/i18n/property_visitor.dart b/ngcompiler/lib/v1/src/compiler/i18n/property_visitor.dart index cb0b037a88..ad531e8250 100644 --- a/ngcompiler/lib/v1/src/compiler/i18n/property_visitor.dart +++ b/ngcompiler/lib/v1/src/compiler/i18n/property_visitor.dart @@ -1,5 +1,5 @@ -import 'package:source_span/source_span.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:source_span/source_span.dart'; import '../expression_parser/ast.dart'; import 'message.dart'; diff --git a/ngcompiler/lib/v1/src/compiler/ir/model.dart b/ngcompiler/lib/v1/src/compiler/ir/model.dart index aab1e8e9a0..ee3a002c70 100644 --- a/ngcompiler/lib/v1/src/compiler/ir/model.dart +++ b/ngcompiler/lib/v1/src/compiler/ir/model.dart @@ -1,4 +1,3 @@ -import 'package:source_span/source_span.dart'; import 'package:ngcompiler/v1/src/compiler/analyzed_class.dart' as analyzed; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart'; import 'package:ngcompiler/v1/src/compiler/i18n/message.dart'; @@ -9,6 +8,7 @@ import 'package:ngcompiler/v1/src/compiler/view_compiler/compile_view.dart'; import 'package:ngcompiler/v1/src/compiler/view_compiler/ir/provider_source.dart'; import 'package:ngcompiler/v1/src/compiler/view_compiler/view_compiler_utils.dart' show namespaceUris; +import 'package:source_span/source_span.dart'; import '../expression_parser/ast.dart' as ast; import '../output/output_ast.dart' as o; @@ -487,17 +487,7 @@ class CustomEvent extends BoundEvent { } class DirectiveOutput extends BoundEvent { - /// Whether this output has mock-like behavior. - /// - /// The heuristic used to determine mock-like behavior is if the analyzed - /// class or one of its ancestors, other than [Object], implements - /// [noSuchMethod]. - /// - /// Note that is the value is _never_ true for null-safe libraries, as we no - /// longer support null streams/stream subscriptions in the generated code. - final bool isMockLike; - - DirectiveOutput(super.name, this.isMockLike); + DirectiveOutput(super.name); @override R accept(BindingTargetVisitor visitor, @@ -735,7 +725,7 @@ class ComplexEventHandler extends EventHandler { visitor.visitComplexEventHandler(this, context); } -abstract class BindingTargetVisitor { +abstract mixin class BindingTargetVisitor { R visitTextBinding(TextBinding textBinding, [C? context]); R visitHtmlBinding(HtmlBinding htmlBinding, [C? context]); R visitClassBinding(ClassBinding classBinding, [C? context]); @@ -749,7 +739,7 @@ abstract class BindingTargetVisitor { R visitDirectiveOutput(DirectiveOutput directiveOutput, [C? context]); } -abstract class BindingSourceVisitor { +abstract mixin class BindingSourceVisitor { R visitBoundI18nMessage(BoundI18nMessage boundI18nMessage, [C? context]); R visitStringLiteral(StringLiteral stringLiteral, [C? context]); R visitBoundExpression(BoundExpression boundExpression, [C? context]); diff --git a/ngcompiler/lib/v1/src/compiler/module/ng_compiler_module.dart b/ngcompiler/lib/v1/src/compiler/module/ng_compiler_module.dart index b472a32e9d..a2234a3ad7 100644 --- a/ngcompiler/lib/v1/src/compiler/module/ng_compiler_module.dart +++ b/ngcompiler/lib/v1/src/compiler/module/ng_compiler_module.dart @@ -12,7 +12,6 @@ import 'package:ngcompiler/v1/src/compiler/template_compiler.dart'; import 'package:ngcompiler/v1/src/compiler/template_parser/ast_template_parser.dart'; import 'package:ngcompiler/v1/src/compiler/view_compiler/directive_compiler.dart'; import 'package:ngcompiler/v1/src/compiler/view_compiler/view_compiler.dart'; -import 'package:ngcompiler/v2/context.dart'; /// Creates the elements necessary to parse HTML templates and compile them. AngularCompiler createTemplateCompiler( @@ -29,9 +28,7 @@ AngularCompiler createTemplateCompiler( DirectiveCompiler(), StyleCompiler(flags), ViewCompiler(flags, parser, schemaRegistry), - DartEmitter( - emitNullSafeSyntax: CompileContext.current.emitNullSafeCode, - ), + DartEmitter(emitNullSafeSyntax: true), ), AstDirectiveNormalizer(NgAssetReader.fromBuildStep(buildStep)), DirectiveConverter(schemaRegistry), diff --git a/ngcompiler/lib/v1/src/compiler/parse_util.dart b/ngcompiler/lib/v1/src/compiler/parse_util.dart index 687dfb8964..9fc03c5f3f 100644 --- a/ngcompiler/lib/v1/src/compiler/parse_util.dart +++ b/ngcompiler/lib/v1/src/compiler/parse_util.dart @@ -1,6 +1,6 @@ -import 'package:source_span/source_span.dart'; import 'package:ngast/ngast.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:source_span/source_span.dart'; /// Collects parsing exceptions from `ngast`, converting to [BuildError]. /// diff --git a/ngcompiler/lib/v1/src/compiler/provider_parser.dart b/ngcompiler/lib/v1/src/compiler/provider_parser.dart index b786327a4d..f2c1b7d7a2 100644 --- a/ngcompiler/lib/v1/src/compiler/provider_parser.dart +++ b/ngcompiler/lib/v1/src/compiler/provider_parser.dart @@ -1,6 +1,6 @@ -import 'package:source_span/source_span.dart'; -import 'package:ngdart/src/meta.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:ngdart/src/meta.dart'; +import 'package:source_span/source_span.dart'; import 'compile_metadata.dart' show diff --git a/ngcompiler/lib/v1/src/compiler/selector.dart b/ngcompiler/lib/v1/src/compiler/selector.dart index 2213f30847..677ec99c1f 100644 --- a/ngcompiler/lib/v1/src/compiler/selector.dart +++ b/ngcompiler/lib/v1/src/compiler/selector.dart @@ -302,7 +302,7 @@ class SelectorMatcher { return result; } - bool _matchTerminal(Map>> map, name, + bool _matchTerminal(Map>> map, Object? name, CssSelector cssSelector, void Function(CssSelector, T)? matchedCallback) { if (name == null) { return false; @@ -323,7 +323,7 @@ class SelectorMatcher { return result; } - bool _matchPartial(Map> map, name, + bool _matchPartial(Map> map, Object? name, CssSelector cssSelector, void Function(CssSelector, T)? matchedCallback) { if (name == null) { return false; diff --git a/ngcompiler/lib/v1/src/compiler/semantic_analysis/binding_converter.dart b/ngcompiler/lib/v1/src/compiler/semantic_analysis/binding_converter.dart index 8f453d2253..9ca92b4c77 100644 --- a/ngcompiler/lib/v1/src/compiler/semantic_analysis/binding_converter.dart +++ b/ngcompiler/lib/v1/src/compiler/semantic_analysis/binding_converter.dart @@ -1,4 +1,3 @@ -import 'package:source_span/source_span.dart'; import 'package:ngcompiler/v1/src/compiler/analyzed_class.dart'; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart'; import 'package:ngcompiler/v1/src/compiler/expression_parser/ast.dart' @@ -14,6 +13,7 @@ import 'package:ngcompiler/v1/src/compiler/view_compiler/ir/provider_source.dart import 'package:ngcompiler/v1/src/compiler/view_compiler/parse_utils.dart' show HandlerType, handlerTypeFromExpression; import 'package:ngcompiler/v2/context.dart'; +import 'package:source_span/source_span.dart'; /// Converts a list of [ast.TemplateAst] nodes into [ir.Binding] instances. /// @@ -204,8 +204,7 @@ class _ToBindingVisitor ir.Binding( source: _handlerFor(ast.templateName, ast.handler, ast.sourceSpan, context), - target: ir.DirectiveOutput( - ast.memberName, context.directive!.analyzedClass!.isMockLike), + target: ir.DirectiveOutput(ast.memberName), ); @override diff --git a/ngcompiler/lib/v1/src/compiler/semantic_analysis/directive_converter.dart b/ngcompiler/lib/v1/src/compiler/semantic_analysis/directive_converter.dart index ee2ed85d4b..fc6fa68ae7 100644 --- a/ngcompiler/lib/v1/src/compiler/semantic_analysis/directive_converter.dart +++ b/ngcompiler/lib/v1/src/compiler/semantic_analysis/directive_converter.dart @@ -1,4 +1,3 @@ -import 'package:source_span/source_span.dart'; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart'; import 'package:ngcompiler/v1/src/compiler/expression_parser/ast.dart' as ast; import 'package:ngcompiler/v1/src/compiler/ir/model.dart' as ir; @@ -6,6 +5,7 @@ import 'package:ngcompiler/v1/src/compiler/schema/element_schema_registry.dart'; import 'package:ngcompiler/v1/src/compiler/semantic_analysis/binding_converter.dart'; import 'package:ngcompiler/v1/src/compiler/template_ast.dart' as ast; import 'package:ngcompiler/v1/src/compiler/template_parser.dart'; +import 'package:source_span/source_span.dart'; /// Converts [CompileDirectiveMetadata] objects into /// [ir.Directive] instances. diff --git a/ngcompiler/lib/v1/src/compiler/semantic_analysis/matched_directive_converter.dart b/ngcompiler/lib/v1/src/compiler/semantic_analysis/matched_directive_converter.dart index a25b2fe2ad..d4580c1dad 100644 --- a/ngcompiler/lib/v1/src/compiler/semantic_analysis/matched_directive_converter.dart +++ b/ngcompiler/lib/v1/src/compiler/semantic_analysis/matched_directive_converter.dart @@ -1,4 +1,3 @@ -import 'package:ngdart/src/meta.dart'; import 'package:ngcompiler/v1/src/compiler/analyzed_class.dart'; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart' as core; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart'; @@ -8,6 +7,7 @@ import 'package:ngcompiler/v1/src/compiler/semantic_analysis/binding_converter.d import 'package:ngcompiler/v1/src/compiler/template_ast.dart' as ast; import 'package:ngcompiler/v1/src/compiler/view_compiler/compile_element.dart'; import 'package:ngcompiler/v1/src/compiler/view_compiler/ir/provider_source.dart'; +import 'package:ngdart/src/meta.dart'; /// Converts a list of [ast.DirectiveAst] nodes into [ir.MatchedDirective] /// instances. diff --git a/ngcompiler/lib/v1/src/compiler/template_ast.dart b/ngcompiler/lib/v1/src/compiler/template_ast.dart index fe2223c2c8..f61f785a92 100644 --- a/ngcompiler/lib/v1/src/compiler/template_ast.dart +++ b/ngcompiler/lib/v1/src/compiler/template_ast.dart @@ -1,7 +1,7 @@ import 'package:analyzer/dart/element/type.dart'; -import 'package:source_span/source_span.dart'; import 'package:ngcompiler/v1/src/compiler/output/convert.dart'; import 'package:ngcompiler/v1/src/compiler/selector.dart'; +import 'package:source_span/source_span.dart'; import 'compile_metadata.dart' show diff --git a/ngcompiler/lib/v1/src/compiler/template_optimize.dart b/ngcompiler/lib/v1/src/compiler/template_optimize.dart index 11e83c9b34..479c94d63c 100644 --- a/ngcompiler/lib/v1/src/compiler/template_optimize.dart +++ b/ngcompiler/lib/v1/src/compiler/template_optimize.dart @@ -20,17 +20,24 @@ class OptimizeTemplateAstVisitor context!; _typeNgForLocals(context, ast.directives, ast.variables); + AnalyzedClass? analyzedClass; + + if (context.analyzedClass case var contextAnalyzedClass?) { + analyzedClass = AnalyzedClass.from( + contextAnalyzedClass, + additionalLocals: { + for (var v in ast.variables) + if (v.dartType != null) v.name: v.dartType!, + }, + ); + } + // Add the local variables to the [CompileDirectiveMetadata] used in // children embedded templates. - var scoped = CompileDirectiveMetadata.from(context, - analyzedClass: AnalyzedClass.from( - context.analyzedClass!, - additionalLocals: { - for (var v in ast.variables) - if (v.dartType != null) v.name: v.dartType!, - }, - )); - + var scoped = CompileDirectiveMetadata.from( + context, + analyzedClass: analyzedClass, + ); return super.visitEmbeddedTemplate(ast, scoped); } } diff --git a/ngcompiler/lib/v1/src/compiler/template_parser.dart b/ngcompiler/lib/v1/src/compiler/template_parser.dart index 0ee541c23c..323be6a589 100644 --- a/ngcompiler/lib/v1/src/compiler/template_parser.dart +++ b/ngcompiler/lib/v1/src/compiler/template_parser.dart @@ -1,6 +1,6 @@ -import 'package:source_span/source_span.dart'; import 'package:ngcompiler/v1/src/compiler/js_split_facade.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:source_span/source_span.dart'; import 'compile_metadata.dart' show diff --git a/ngcompiler/lib/v1/src/compiler/template_parser/ast_template_parser.dart b/ngcompiler/lib/v1/src/compiler/template_parser/ast_template_parser.dart index 9a78290f36..b09c2156c8 100644 --- a/ngcompiler/lib/v1/src/compiler/template_parser/ast_template_parser.dart +++ b/ngcompiler/lib/v1/src/compiler/template_parser/ast_template_parser.dart @@ -1,5 +1,4 @@ import 'package:collection/collection.dart' show IterableExtension; -import 'package:source_span/source_span.dart'; import 'package:ngast/ngast.dart' as ast; import 'package:ngcompiler/v1/cli.dart'; import 'package:ngcompiler/v1/src/compiler/chars.dart'; @@ -19,6 +18,7 @@ import 'package:ngcompiler/v1/src/compiler/template_ast.dart' as ng; import 'package:ngcompiler/v1/src/compiler/template_optimize.dart'; import 'package:ngcompiler/v1/src/compiler/template_parser.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:source_span/source_span.dart'; import 'missing_directives_validator.dart'; import 'recursive_template_visitor.dart'; diff --git a/ngcompiler/lib/v1/src/compiler/view_compiler/compile_view.dart b/ngcompiler/lib/v1/src/compiler/view_compiler/compile_view.dart index 25d3ec75df..353be4fd2c 100644 --- a/ngcompiler/lib/v1/src/compiler/view_compiler/compile_view.dart +++ b/ngcompiler/lib/v1/src/compiler/view_compiler/compile_view.dart @@ -1,12 +1,11 @@ import 'dart:convert'; -import 'package:ngdart/src/meta.dart'; import 'package:ngcompiler/v1/cli.dart'; import 'package:ngcompiler/v1/src/compiler/ir/model.dart' as ir; import 'package:ngcompiler/v1/src/compiler/view_type.dart'; import 'package:ngcompiler/v1/src/source_gen/common/url_resolver.dart' show toTemplateExtension; -import 'package:ngcompiler/v2/context.dart'; +import 'package:ngdart/src/meta.dart'; import '../compile_metadata.dart' show @@ -186,8 +185,8 @@ class NodeReference { /// This is used in DirectiveChangeDetector. class _ParameterNodeReference extends NodeReference { _ParameterNodeReference( - CompileViewStorage storage, o.OutputType? type, String name) - : super._parameter(storage, type, name); + CompileViewStorage super.storage, super.type, super.name) + : super._parameter(); @override o.Expression toReadExpr() => o.ReadVarExpr(_name); @@ -198,8 +197,8 @@ class _ParameterNodeReference extends NodeReference { // Wraps references to HTML Text nodes in a [TextBinding] helper class. class TextBindingNodeReference extends NodeReference { - TextBindingNodeReference(CompileViewStorage storage, int nodeIndex) - : super._textBindingNode(storage, nodeIndex); + TextBindingNodeReference(CompileViewStorage super.storage, super.nodeIndex) + : super._textBindingNode(); @override o.Expression toReadExpr() => ReadNodeReferenceExpr(this).prop('element'); @@ -419,7 +418,6 @@ class CompileView { List methods = []; List getters = []; List subscriptions = []; - bool subscribesToMockLike = false; late CompileView componentView; var purePipes = {}; List pipes = []; @@ -1079,13 +1077,10 @@ class CompileView { } } - NodeReference createSubscription({bool isMockLike = false}) { + NodeReference createSubscription() { final subscription = NodeReference._subscription('subscription_${subscriptions.length}'); subscriptions.add(subscription.toReadExpr()); - if (isMockLike) { - subscribesToMockLike = true; - } return subscription; } @@ -1268,64 +1263,21 @@ class CompileView { return localVar; } } else { - // We don't have to eagerly initialize this object. Add an uninitialized - // class field and provide a getter to construct the provider on demand. - final cachedType = providerHasChangeDetector ? changeDetectorType! : type; - if (providerHasChangeDetector) { resolvedProviderValueExpr = o.importExpr(changeDetectorClass).instantiate(changeDetectorParams); } - if (CompileContext.current.emitNullSafeCode) { - // If null-safety is enabled, use `late` to implement a lazily - // initialized field. - final field = storage.allocate( - propName, - // TODO(b/190556639) - Use final. - modifiers: const [o.StmtModifier.lateStmt], - outputType: type, - initializer: resolvedProviderValueExpr, - ); - return storage.buildReadExpr(field); - } - - // If null-safety is disabled, manually implement a lazily initialized - // field. - final internalField = storage.allocate( - '_$propName', - outputType: cachedType.asNullable(), - modifiers: const [o.StmtModifier.privateStmt], - ); - - final getter = CompileMethod() - ..addStmts([ - o.DeclareVarStmt( - 'result', - storage.buildReadExpr(internalField), - ), - o.IfStmt( - o.ReadVarExpr('result').equals(o.nullExpr), - [ - storage - .buildWriteExpr( - internalField, - o.WriteVarExpr('result', resolvedProviderValueExpr), - ) - .toStmt(), - ], - ), - o.ReturnStatement( - o.ReadVarExpr('result'), - ), - ]); - getters.add( - o.ClassGetter( - propName, - getter.finish(), - providerHasChangeDetector ? changeDetectorType : type, - ), + // If null-safety is enabled, use `late` to implement a lazily + // initialized field. + final field = storage.allocate( + propName, + // TODO(b/190556639) - Use final. + modifiers: const [o.StmtModifier.lateStmt], + outputType: type, + initializer: resolvedProviderValueExpr, ); + return storage.buildReadExpr(field); } return o.ReadClassMemberExpr(propName, type); } diff --git a/ngcompiler/lib/v1/src/compiler/view_compiler/event_binder.dart b/ngcompiler/lib/v1/src/compiler/view_compiler/event_binder.dart index 749c6a5559..23942c7427 100644 --- a/ngcompiler/lib/v1/src/compiler/view_compiler/event_binder.dart +++ b/ngcompiler/lib/v1/src/compiler/view_compiler/event_binder.dart @@ -16,9 +16,7 @@ void bindDirectiveOutputs( var handlerExpr = converter .scopeNamespace() .convertSourceToExpression(output.source, output.target.type)!; - var nodeReference = view.createSubscription( - isMockLike: (output.target as ir.DirectiveOutput).isMockLike, - ); + var nodeReference = view.createSubscription(); view.addEventListener( nodeReference, output, handlerExpr, directiveInstance.build()); } diff --git a/ngcompiler/lib/v1/src/compiler/view_compiler/expression_converter.dart b/ngcompiler/lib/v1/src/compiler/view_compiler/expression_converter.dart index 0611c6b911..b6bc3e133f 100644 --- a/ngcompiler/lib/v1/src/compiler/view_compiler/expression_converter.dart +++ b/ngcompiler/lib/v1/src/compiler/view_compiler/expression_converter.dart @@ -1,4 +1,3 @@ -import 'package:source_span/source_span.dart' show SourceSpan; import 'package:ngcompiler/v1/src/compiler/analyzed_class.dart'; import 'package:ngcompiler/v1/src/compiler/chars.dart'; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart' @@ -8,6 +7,7 @@ import 'package:ngcompiler/v1/src/compiler/expression_parser/ast.dart' import 'package:ngcompiler/v1/src/compiler/identifiers.dart'; import 'package:ngcompiler/v1/src/compiler/output/output_ast.dart' as o; import 'package:ngcompiler/v2/context.dart'; +import 'package:source_span/source_span.dart' show SourceSpan; final _implicitReceiverVal = o.variable('#implicit'); diff --git a/ngcompiler/lib/v1/src/compiler/view_compiler/update_statement_visitor.dart b/ngcompiler/lib/v1/src/compiler/view_compiler/update_statement_visitor.dart index c4c45b47e8..34449c413d 100644 --- a/ngcompiler/lib/v1/src/compiler/view_compiler/update_statement_visitor.dart +++ b/ngcompiler/lib/v1/src/compiler/view_compiler/update_statement_visitor.dart @@ -10,7 +10,6 @@ import 'package:ngcompiler/v1/src/compiler/view_compiler/compile_view.dart' import 'package:ngcompiler/v2/context.dart'; import 'devtools.dart'; -import 'interpolation_utils.dart'; /// Returns statements that update a [binding]. List bindingToUpdateStatements( @@ -70,19 +69,8 @@ class _UpdateStatementsVisitor // b/171226440: Avoid using "setAttribute" for conditionals, because we // try to use a (ternary) nullable-string, which is invalid. We either // need more plumbing in order to use "setAttribute" safely. - if (CompileContext.current.emitNullSafeCode) { - useSetAttributeIfImmutable = false; - } + useSetAttributeIfImmutable = false; renderValue = renderValue!.conditional(o.literal(''), o.nullExpr); - } else if (attributeBinding.securityContext == - TemplateSecurityContext.none && - !isInterpolation(bindingSource) && - !bindingSource.isString) { - // Convert to string if necessary. - // Sanitized and interpolated bindings always return a string, so we only - // check if values that don't require sanitization or interpolation need - // to be converted to a string. - renderValue = _convertAttributeRenderValue(renderValue, bindingSource); } if (attributeBinding.hasNamespace) { return o.importExpr(DomHelpers.updateAttributeNS).callFn([ @@ -106,27 +94,6 @@ class _UpdateStatementsVisitor ).toStmt(); } - static o.Expression? _convertAttributeRenderValue( - o.Expression? renderValue, - ir.BindingSource bindingSource, - ) { - if (CompileContext.current.emitNullSafeCode) { - // New behavior: Do nothing. We accept a "String?" (only) as a type and - // Dart's compilers will emit a compile-time error (i.e. something like - // "cannot assign int to String?") on another value type. - return renderValue; - } else { - // Legacy behavior: Allow a non-String `[attr.foo]="baz"` binding. We - // coerce it into a String (or null) by transforming "baz" into - // "baz?.toString()". - return renderValue!.callMethod( - 'toString', - const [], - checked: bindingSource.isNullable, - ); - } - } - @override o.Statement visitClassBinding(ir.ClassBinding classBinding, [o.Expression? renderValue]) { @@ -271,8 +238,7 @@ class _UpdateStatementsVisitor [o.Expression? renderValue]) => renderNode!.toWriteStmt(appViewInstance! .prop(directiveOutput.name) - .callMethod(o.BuiltinMethod.subscribeObservable, [renderValue!], - checked: directiveOutput.isMockLike)); + .callMethod(o.BuiltinMethod.subscribeObservable, [renderValue!])); @override o.Statement visitNativeEvent(ir.NativeEvent nativeEvent, diff --git a/ngcompiler/lib/v1/src/compiler/view_compiler/view_binder.dart b/ngcompiler/lib/v1/src/compiler/view_compiler/view_binder.dart index 1b12077daf..b98c0542b8 100644 --- a/ngcompiler/lib/v1/src/compiler/view_compiler/view_binder.dart +++ b/ngcompiler/lib/v1/src/compiler/view_compiler/view_binder.dart @@ -1,4 +1,3 @@ -import 'package:source_span/source_span.dart'; import 'package:ngcompiler/v1/src/compiler/expression_parser/ast.dart' as ast; import 'package:ngcompiler/v1/src/compiler/ir/model.dart' as ir; import 'package:ngcompiler/v1/src/compiler/output/output_ast.dart' as o; @@ -8,6 +7,7 @@ import 'package:ngcompiler/v1/src/compiler/semantic_analysis/element_converter.d import 'package:ngcompiler/v1/src/compiler/template_ast.dart'; import 'package:ngcompiler/v1/src/compiler/template_parser.dart'; import 'package:ngcompiler/v1/src/compiler/view_type.dart'; +import 'package:source_span/source_span.dart'; import 'bound_value_converter.dart'; import 'compile_element.dart' show CompileElement; diff --git a/ngcompiler/lib/v1/src/compiler/view_compiler/view_builder.dart b/ngcompiler/lib/v1/src/compiler/view_compiler/view_builder.dart index 7c0387cdf3..d81debb1c7 100644 --- a/ngcompiler/lib/v1/src/compiler/view_compiler/view_builder.dart +++ b/ngcompiler/lib/v1/src/compiler/view_compiler/view_builder.dart @@ -1,5 +1,4 @@ import 'package:collection/collection.dart' show IterableExtension; -import 'package:ngdart/src/meta.dart'; import 'package:ngcompiler/v1/cli.dart'; import 'package:ngcompiler/v1/src/compiler/analyzed_class.dart'; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart' @@ -21,6 +20,7 @@ import 'package:ngcompiler/v1/src/compiler/view_compiler/bound_value_converter.d import 'package:ngcompiler/v1/src/compiler/view_compiler/update_statement_visitor.dart'; import 'package:ngcompiler/v1/src/compiler/view_type.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:ngdart/src/meta.dart'; import 'compile_element.dart' show CompileElement, CompileNode; import 'compile_view.dart'; @@ -926,18 +926,7 @@ o.Expression _maybeFilterSubscriptions(CompileView view) { if (view.subscriptions.isEmpty) { return o.nullExpr; } - final subscriptionsExpr = o.literalArr(view.subscriptions); - if (view.subscribesToMockLike) { - // Mock-like directives may have null subscriptions which must be - // filtered out to prevent an exception when they are later cancelled. - return subscriptionsExpr.callMethod('where', [ - o.FunctionExpr( - [o.FnParam('i')], - [o.ReturnStatement(o.variable('i').notEquals(o.nullExpr))], - ) - ]).callMethod('toList', []); - } - return subscriptionsExpr; + return o.literalArr(view.subscriptions); } /// Writes shared event handler wiring for events that are directly defined diff --git a/ngcompiler/lib/v1/src/compiler/view_compiler/view_style_linker.dart b/ngcompiler/lib/v1/src/compiler/view_compiler/view_style_linker.dart index a01b8c0e9c..f1e034df89 100644 --- a/ngcompiler/lib/v1/src/compiler/view_compiler/view_style_linker.dart +++ b/ngcompiler/lib/v1/src/compiler/view_compiler/view_style_linker.dart @@ -1,7 +1,7 @@ -import 'package:ngdart/src/meta.dart'; import 'package:ngcompiler/v1/src/compiler/identifiers.dart'; import 'package:ngcompiler/v1/src/compiler/output/output_ast.dart' as o; import 'package:ngcompiler/v1/src/compiler/view_type.dart'; +import 'package:ngdart/src/meta.dart'; import 'compile_view.dart'; diff --git a/ngcompiler/lib/v1/src/source_gen/common/annotation_matcher.dart b/ngcompiler/lib/v1/src/source_gen/common/annotation_matcher.dart index 32fc513ff6..38a8394aed 100644 --- a/ngcompiler/lib/v1/src/source_gen/common/annotation_matcher.dart +++ b/ngcompiler/lib/v1/src/source_gen/common/annotation_matcher.dart @@ -1,9 +1,9 @@ import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/src/dart/element/element.dart'; -import 'package:source_gen/source_gen.dart'; -import 'package:ngdart/src/meta.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; import 'package:ngcompiler/v1/cli.dart'; +import 'package:ngdart/src/meta.dart'; +import 'package:source_gen/source_gen.dart'; // See internal bug b/35319372 for details. diff --git a/ngcompiler/lib/v1/src/source_gen/template_compiler/annotation_information.dart b/ngcompiler/lib/v1/src/source_gen/template_compiler/annotation_information.dart index f45cd88087..016d6acd97 100644 --- a/ngcompiler/lib/v1/src/source_gen/template_compiler/annotation_information.dart +++ b/ngcompiler/lib/v1/src/source_gen/template_compiler/annotation_information.dart @@ -1,8 +1,8 @@ import 'package:analyzer/dart/constant/value.dart'; import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/error/error.dart'; -import 'package:source_gen/source_gen.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; +import 'package:source_gen/source_gen.dart'; import 'component_visitor_exceptions.dart'; diff --git a/ngcompiler/lib/v1/src/source_gen/template_compiler/check_injectables.dart b/ngcompiler/lib/v1/src/source_gen/template_compiler/check_injectables.dart index 613e11ed5b..ed5b92f515 100644 --- a/ngcompiler/lib/v1/src/source_gen/template_compiler/check_injectables.dart +++ b/ngcompiler/lib/v1/src/source_gen/template_compiler/check_injectables.dart @@ -1,6 +1,6 @@ import 'package:analyzer/dart/element/element.dart'; -import 'package:ngcompiler/v2/context.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; +import 'package:ngcompiler/v2/context.dart'; const DependencyReader dependencyReader = DependencyReader(); diff --git a/ngcompiler/lib/v1/src/source_gen/template_compiler/code_builder.dart b/ngcompiler/lib/v1/src/source_gen/template_compiler/code_builder.dart index 9ff4953a1e..478cd94cc4 100644 --- a/ngcompiler/lib/v1/src/source_gen/template_compiler/code_builder.dart +++ b/ngcompiler/lib/v1/src/source_gen/template_compiler/code_builder.dart @@ -2,7 +2,6 @@ import 'package:analyzer/dart/element/element.dart'; import 'package:code_builder/code_builder.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; import 'package:ngcompiler/v1/cli.dart'; -import 'package:ngcompiler/v2/context.dart'; import 'template_compiler_outputs.dart'; @@ -12,9 +11,7 @@ String buildGeneratedCode( String sourceFile, CompilerFlags flags, ) { - final languageVersion = - CompileContext.current.emitNullSafeCode ? '' : '// @dart=2.9\n\n'; - final buffer = StringBuffer(languageVersion); + final buffer = StringBuffer(); // Generated code. final allocator = Allocator.simplePrefixing(); @@ -30,11 +27,7 @@ String buildGeneratedCode( final imports = StringBuffer(); final body = StringBuffer(); final file = LibraryBuilder(); - final dart = SplitDartEmitter( - imports, - allocator: allocator, - emitNullSafeSyntax: CompileContext.current.emitNullSafeCode, - ); + final dart = SplitDartEmitter(imports, allocator: allocator); for (final injector in outputs.injectorsOutput) { final emitter = InjectorEmitter(); diff --git a/ngcompiler/lib/v1/src/source_gen/template_compiler/compile_metadata.dart b/ngcompiler/lib/v1/src/source_gen/template_compiler/compile_metadata.dart index fe12abf9ca..e6cfd0ade5 100644 --- a/ngcompiler/lib/v1/src/source_gen/template_compiler/compile_metadata.dart +++ b/ngcompiler/lib/v1/src/source_gen/template_compiler/compile_metadata.dart @@ -6,7 +6,6 @@ import 'package:analyzer/dart/element/visitor.dart'; import 'package:analyzer/src/dart/constant/value.dart'; import 'package:analyzer/src/dart/element/element.dart'; import 'package:analyzer/src/generated/utilities_dart.dart'; -import 'package:ngdart/src/meta.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; import 'package:ngcompiler/v1/cli.dart'; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart'; @@ -15,6 +14,7 @@ import 'package:ngcompiler/v1/src/compiler/output/output_ast.dart' as o; import 'package:ngcompiler/v1/src/source_gen/common/url_resolver.dart'; import 'package:ngcompiler/v2/analyzer.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:ngdart/src/meta.dart'; import 'package:source_gen/source_gen.dart'; import 'component_visitor_exceptions.dart'; @@ -138,10 +138,6 @@ class CompileTypeMetadataVisitor DartType type, { required bool isOptional, }) { - if (!CompileContext.current.emitNullSafeCode) { - // Do not run this check for libraries not opted-in to null safety. - return; - } if (type.isExplicitlyNonNullable) { // Must *NOT* be @Optional() if (isOptional) { diff --git a/ngcompiler/lib/v1/src/source_gen/template_compiler/component_visitor_exceptions.dart b/ngcompiler/lib/v1/src/source_gen/template_compiler/component_visitor_exceptions.dart index b16b9bb6e6..12d1bb9f74 100644 --- a/ngcompiler/lib/v1/src/source_gen/template_compiler/component_visitor_exceptions.dart +++ b/ngcompiler/lib/v1/src/source_gen/template_compiler/component_visitor_exceptions.dart @@ -3,11 +3,11 @@ import 'package:analyzer/dart/ast/ast.dart'; import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/error/error.dart'; import 'package:build/build.dart'; -import 'package:source_span/source_span.dart'; import 'package:ngcompiler/v1/cli.dart'; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart'; import 'package:ngcompiler/v1/src/source_gen/common/annotation_matcher.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:source_span/source_span.dart'; class IndexedAnnotation { final T element; diff --git a/ngcompiler/lib/v1/src/source_gen/template_compiler/find_components.dart b/ngcompiler/lib/v1/src/source_gen/template_compiler/find_components.dart index 814badd372..6830a5c36d 100644 --- a/ngcompiler/lib/v1/src/source_gen/template_compiler/find_components.dart +++ b/ngcompiler/lib/v1/src/source_gen/template_compiler/find_components.dart @@ -4,7 +4,8 @@ import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/type.dart'; import 'package:analyzer/dart/element/visitor.dart'; import 'package:analyzer/src/dart/element/element.dart'; -import 'package:ngdart/src/meta.dart'; +import 'package:build/build.dart'; +import 'package:collection/collection.dart' show IterableExtension; import 'package:ngcompiler/v1/angular_compiler.dart'; import 'package:ngcompiler/v1/src/compiler/analyzed_class.dart'; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart'; @@ -18,8 +19,7 @@ import 'package:ngcompiler/v1/src/source_gen/common/annotation_matcher.dart'; import 'package:ngcompiler/v1/src/source_gen/common/url_resolver.dart'; import 'package:ngcompiler/v2/analyzer.dart'; import 'package:ngcompiler/v2/context.dart'; -import 'package:build/build.dart'; -import 'package:collection/collection.dart' show IterableExtension; +import 'package:ngdart/src/meta.dart'; import 'package:path/path.dart' as p; import 'package:source_gen/source_gen.dart'; @@ -218,9 +218,6 @@ class _ComponentVisitor final LibraryReader _library; final ComponentVisitorExceptionHandler _exceptionHandler; - /// Whether the component being visited re-implements 'noSuchMethod'. - bool _implementsNoSuchMethod = false; - /// Element of the current directive being visited. /// /// This is used to look up resolved type information. @@ -601,12 +598,6 @@ class _ComponentVisitor // whether a user type implements 'noSuchMethod'. if (element is ClassElement && element.isDartCoreObject) return; - // Skip checking for noSuchMethod for opted-in libraries. - if (!CompileContext.current.emitNullSafeCode && - element.getMethod('noSuchMethod') != null) { - _implementsNoSuchMethod = true; - } - // Collect metadata from field and property accessor annotations. element.visitChildren(this); @@ -663,8 +654,7 @@ class _ComponentVisitor // _createTemplateMetadata failed to create the metadata. if (template == null) return null; - final analyzedClass = - AnalyzedClass(element, isMockLike: _implementsNoSuchMethod); + final analyzedClass = AnalyzedClass(element); final lifecycleHooks = extractLifecycleHooks(element); _validateLifecycleHooks(lifecycleHooks, element, isComponent); @@ -684,8 +674,10 @@ class _ComponentVisitor linkInfo != null; if (isChangeDetectionLink && !(isComponent && changeDetection == ChangeDetectionStrategy.onPush)) { - _exceptionHandler.handle(ErrorMessageForAnnotation(linkInfo, - 'Only supported on components that use "OnPush" change detection')); + _exceptionHandler.handle(ErrorMessageForAnnotation( + linkInfo, + 'Only supported on components that use ' + '"ChangeDetectionStrategy.onPush" change detection')); } return CompileDirectiveMetadata( diff --git a/ngcompiler/lib/v1/src/source_gen/template_compiler/generator.dart b/ngcompiler/lib/v1/src/source_gen/template_compiler/generator.dart index 4ad369550d..667b305117 100644 --- a/ngcompiler/lib/v1/src/source_gen/template_compiler/generator.dart +++ b/ngcompiler/lib/v1/src/source_gen/template_compiler/generator.dart @@ -1,7 +1,7 @@ import 'package:build/build.dart'; -import 'package:source_gen/source_gen.dart'; import 'package:ngcompiler/v1/cli.dart'; import 'package:ngcompiler/v1/src/source_gen/common/url_resolver.dart'; +import 'package:source_gen/source_gen.dart'; import 'code_builder.dart'; import 'template_processor.dart'; diff --git a/ngcompiler/lib/v1/src/source_gen/template_compiler/pipe_visitor.dart b/ngcompiler/lib/v1/src/source_gen/template_compiler/pipe_visitor.dart index fc17e0b995..870264190d 100644 --- a/ngcompiler/lib/v1/src/source_gen/template_compiler/pipe_visitor.dart +++ b/ngcompiler/lib/v1/src/source_gen/template_compiler/pipe_visitor.dart @@ -1,11 +1,11 @@ import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/type.dart'; import 'package:analyzer/dart/element/visitor.dart'; -import 'package:source_gen/source_gen.dart'; import 'package:ngcompiler/v1/src/compiler/compile_metadata.dart'; import 'package:ngcompiler/v1/src/compiler/output/convert.dart'; import 'package:ngcompiler/v1/src/source_gen/common/annotation_matcher.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:source_gen/source_gen.dart'; import 'annotation_information.dart'; import 'compile_metadata.dart'; diff --git a/ngcompiler/lib/v2/context.dart b/ngcompiler/lib/v2/context.dart index 16968da24c..04b2d309c6 100644 --- a/ngcompiler/lib/v2/context.dart +++ b/ngcompiler/lib/v2/context.dart @@ -2,10 +2,10 @@ import 'dart:async'; import 'package:build/build.dart'; import 'package:meta/meta.dart'; -import 'package:source_gen/source_gen.dart'; -import 'package:ngdart/src/utilities.dart'; import 'package:ngcompiler/v1/src/angular_compiler/cli/messages.dart'; import 'package:ngcompiler/v2/asset.dart'; +import 'package:ngdart/src/utilities.dart'; +import 'package:source_gen/source_gen.dart'; import 'src/context/build_error.dart'; @@ -101,8 +101,7 @@ Future runWithContext( /// /// When the compiler or components of the compiler are running in a _test_ it /// is required to statically initialize one by using [overrideForTesting]. -@sealed -abstract class CompileContext { +abstract final class CompileContext { /// Overrides [CompileContext.current] to return [context]. /// /// This can be done once during `main()` or `setUpAll(() => ...)`: @@ -128,7 +127,6 @@ abstract class CompileContext { static void overrideForTesting([ CompileContext context = const _TestCompileContext(), ]) { - ArgumentError.checkNotNull(context, 'context'); _overrideForTesting = context; } @@ -186,11 +184,9 @@ abstract class CompileContext { required Map> policyExceptions, required Map> policyExceptionsInPackages, required bool enableDevTools, - required bool isNullSafe, }) { return _LibraryCompileContext( enableDevTools: enableDevTools, - isNullSafe: isNullSafe, path: libraryPath.toRelativeUrl(), policyExceptionsPerFiles: policyExceptions, policyExceptionsPerPackages: policyExceptionsInPackages, @@ -210,7 +206,6 @@ abstract class CompileContext { /// **NOTE**: [reportAndRecover] simply uses `throw` in this configuration. @visibleForTesting const factory CompileContext.forTesting({ - bool emitNullSafeCode, bool isDevToolsEnabled, bool validateMissingDirectives, }) = _TestCompileContext; @@ -241,13 +236,6 @@ abstract class CompileContext { /// The buffer of previous errors is cleared as a result. void throwRecoverableErrors(); - /// Whether to emit code that supports https://dart.dev/null-safety. - /// - /// This is based on a combination of: - /// 1. The library and/or package being opted-in to null safety. - /// 2. The library being added to the appropriate allow-list. - bool get emitNullSafeCode; - /// Whether to emit code that supports developer tooling. /// /// There are two ways to enable this flag: @@ -261,7 +249,7 @@ abstract class CompileContext { bool get validateMissingDirectives; } -class _LibraryCompileContext implements CompileContext { +final class _LibraryCompileContext implements CompileContext { /// See `CompilerFlags.policyExceptions`. final Map> policyExceptionsPerFiles; @@ -274,15 +262,11 @@ class _LibraryCompileContext implements CompileContext { /// Whether `--define=ENABLE_DEVTOOLS=true` was passed during compilation. final bool enableDevTools; - /// Whether the library being compiled is opted-in to null-safety. - final bool isNullSafe; - _LibraryCompileContext({ required this.path, required this.policyExceptionsPerFiles, required this.policyExceptionsPerPackages, required this.enableDevTools, - required this.isNullSafe, }); final _recoverableErrors = []; @@ -342,9 +326,6 @@ class _LibraryCompileContext implements CompileContext { return packages.any(path.startsWith); } - @override - bool get emitNullSafeCode => isNullSafe; - @override bool get isDevToolsEnabled { return enableDevTools || hasPolicyException('FORCE_DEVTOOLS_ENABLED'); @@ -356,10 +337,7 @@ class _LibraryCompileContext implements CompileContext { } } -class _TestCompileContext implements CompileContext { - @override - final bool emitNullSafeCode; - +final class _TestCompileContext implements CompileContext { @override final bool isDevToolsEnabled; @@ -367,7 +345,6 @@ class _TestCompileContext implements CompileContext { final bool validateMissingDirectives; const _TestCompileContext({ - this.emitNullSafeCode = true, this.isDevToolsEnabled = false, this.validateMissingDirectives = true, }); diff --git a/ngcompiler/lib/v2/testing.dart b/ngcompiler/lib/v2/testing.dart deleted file mode 100644 index 8d6194f3f6..0000000000 --- a/ngcompiler/lib/v2/testing.dart +++ /dev/null @@ -1 +0,0 @@ -export 'src/testing/runtime_source_resolution.dart'; diff --git a/ngcompiler/mono_pkg.yaml b/ngcompiler/mono_pkg.yaml index 7933b8ee8f..fb944aa0cc 100644 --- a/ngcompiler/mono_pkg.yaml +++ b/ngcompiler/mono_pkg.yaml @@ -1,10 +1,16 @@ sdk: - - 2.19.6 - pubspec + - dev stages: - analyze: - - format - - analyze: --fatal-infos + - format: + sdk: + - pubspec + - analyze: --fatal-infos . - unit_test: - - command: dart test -P ci + - test: -P ci + +cache: + directories: + - .dart_tool/build diff --git a/ngcompiler/pubspec.yaml b/ngcompiler/pubspec.yaml index a90a0d440c..f33b6a686f 100644 --- a/ngcompiler/pubspec.yaml +++ b/ngcompiler/pubspec.yaml @@ -3,30 +3,30 @@ description: > The AngularDart compiler. It compiles your component files written in Dart into templates so that you don't have to worry about all the complicated hassle. -version: 3.0.0-dev.1 +version: 3.0.0-dev.2 repository: https://github.com/angulardart-community/angular environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=3.1.0 <4.0.0" dependencies: - analyzer: ^5.4.0 - args: ^2.3.2 - build: ^2.3.1 - build_test: ^2.1.6 - code_builder: ^4.4.0 - collection: ^1.17.0 - csslib: ^0.17.2 - dart_style: ^2.2.4 - logging: ^1.1.0 - meta: ^1.8.0 - ngast: ^3.0.0-dev.0 - ngdart: ^8.0.0-dev.1 - package_config: ^2.1.0 + analyzer: ^6.0.0 + args: ^2.4.2 + build: ^2.4.1 + code_builder: ^4.7.0 + collection: ^1.18.0 + csslib: ^1.0.0 + dart_style: ^2.3.2 + logging: ^1.2.0 + meta: ^1.11.0 + ngast: ^3.0.0-dev.1 + ngdart: ^8.0.0-dev.3 path: ^1.8.3 - source_gen: ^1.2.6 - source_span: ^1.9.1 + source_gen: ^1.4.0 + source_span: ^1.10.0 dev_dependencies: - lints: ^2.0.1 - test: ^1.22.2 + build_test: ^2.2.1 + lints: ^2.1.0 + package_config: ^2.1.0 + test: ^1.24.4 diff --git a/ngcompiler/test/v1/angular_compiler/analyzer/di/dependency_reader_test.dart b/ngcompiler/test/v1/angular_compiler/analyzer/di/dependency_reader_test.dart index 9ab8252af6..9dc2f57b17 100644 --- a/ngcompiler/test/v1/angular_compiler/analyzer/di/dependency_reader_test.dart +++ b/ngcompiler/test/v1/angular_compiler/analyzer/di/dependency_reader_test.dart @@ -1,7 +1,7 @@ import 'package:analyzer/dart/element/element.dart'; -import 'package:test/test.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; import '../../src/resolve.dart'; diff --git a/ngcompiler/test/v1/angular_compiler/analyzer/di/module_reader_test.dart b/ngcompiler/test/v1/angular_compiler/analyzer/di/module_reader_test.dart index 706cad80e0..7893e5cb86 100644 --- a/ngcompiler/test/v1/angular_compiler/analyzer/di/module_reader_test.dart +++ b/ngcompiler/test/v1/angular_compiler/analyzer/di/module_reader_test.dart @@ -1,7 +1,7 @@ import 'package:analyzer/dart/constant/value.dart'; import 'package:analyzer/dart/element/element.dart'; -import 'package:test/test.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; +import 'package:test/test.dart'; import '../../src/resolve.dart'; @@ -18,7 +18,6 @@ void main() { setUpAll(() async { final testLib = await resolveLibrary(r''' - // @dart=2.9 @listModule @newModuleA @newModuleB @@ -192,7 +191,6 @@ void main() { setUpAll(() async { final testLib = await resolveLibrary(r''' - // @dart=2.9 @aListOfProviders @aModuleOfProviders @nestedListsAndModules diff --git a/ngcompiler/test/v1/angular_compiler/analyzer/di/provider_reader_test.dart b/ngcompiler/test/v1/angular_compiler/analyzer/di/provider_reader_test.dart index 6440fd4099..5c5d3bdb69 100644 --- a/ngcompiler/test/v1/angular_compiler/analyzer/di/provider_reader_test.dart +++ b/ngcompiler/test/v1/angular_compiler/analyzer/di/provider_reader_test.dart @@ -1,8 +1,8 @@ import 'package:analyzer/dart/constant/value.dart'; import 'package:analyzer/dart/element/element.dart'; -import 'package:test/test.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; import '../../src/resolve.dart'; diff --git a/ngcompiler/test/v1/angular_compiler/analyzer/di/token_reader_test.dart b/ngcompiler/test/v1/angular_compiler/analyzer/di/token_reader_test.dart index dc652eb5d0..f904ac949c 100644 --- a/ngcompiler/test/v1/angular_compiler/analyzer/di/token_reader_test.dart +++ b/ngcompiler/test/v1/angular_compiler/analyzer/di/token_reader_test.dart @@ -2,9 +2,9 @@ import 'package:analyzer/dart/constant/value.dart'; import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/nullability_suffix.dart'; import 'package:analyzer/dart/element/type.dart'; -import 'package:test/test.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; import '../../src/resolve.dart'; diff --git a/ngcompiler/test/v1/angular_compiler/analyzer/types_test.dart b/ngcompiler/test/v1/angular_compiler/analyzer/types_test.dart index f3c2bdf181..bf715d284a 100644 --- a/ngcompiler/test/v1/angular_compiler/analyzer/types_test.dart +++ b/ngcompiler/test/v1/angular_compiler/analyzer/types_test.dart @@ -1,6 +1,6 @@ import 'package:analyzer/dart/element/element.dart'; -import 'package:test/test.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; +import 'package:test/test.dart'; import '../src/resolve.dart'; @@ -10,10 +10,10 @@ void main() { setUpAll(() async { testLib = await resolveLibrary(r''' - @Directive() + @Directive(selector: '') class ADirective {} - @Component() + @Component(selector: '') class AComponent {} @Injectable() diff --git a/ngcompiler/test/v1/angular_compiler/analyzer/view/directive_test.dart b/ngcompiler/test/v1/angular_compiler/analyzer/view/directive_test.dart index bcceda27c1..411b18c282 100644 --- a/ngcompiler/test/v1/angular_compiler/analyzer/view/directive_test.dart +++ b/ngcompiler/test/v1/angular_compiler/analyzer/view/directive_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; +import 'package:test/test.dart'; import '../../src/compile.dart'; diff --git a/ngcompiler/test/v1/angular_compiler/analyzer/view/typed_reader_test.dart b/ngcompiler/test/v1/angular_compiler/analyzer/view/typed_reader_test.dart index b4675a330d..3dacab32f8 100644 --- a/ngcompiler/test/v1/angular_compiler/analyzer/view/typed_reader_test.dart +++ b/ngcompiler/test/v1/angular_compiler/analyzer/view/typed_reader_test.dart @@ -1,6 +1,6 @@ import 'package:analyzer/dart/element/element.dart'; -import 'package:test/test.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; +import 'package:test/test.dart'; import '../../src/compile.dart'; import '../../src/resolve.dart'; @@ -9,10 +9,10 @@ const testImport = 'asset:test_lib/lib/test_lib.dart'; Future parse(String source) async { final amendedSource = ''' - @Component() + @Component(selector: '') class GenericComponent {} - @Directive() + @Directive(selector: '') class GenericDirective {} $source @@ -282,7 +282,7 @@ void main() { test('if a non-existent type parameter is flowed', () async { await compilesExpecting( ''' - @Component() + @Component(selector: '') class GenericComponent {} const typed = Typed.of([#X]); @@ -301,7 +301,7 @@ void main() { test("if a type argument isn't a supported type", () async { await compilesExpecting( ''' - @Component() + @Component(selector: '') class GenericComponent {} const typed = Typed.of([12]); @@ -320,7 +320,7 @@ void main() { test('if "Typed.on" is specified anywhere other than the root', () async { await compilesExpecting( ''' - @Component() + @Component(selector: '') class GenericComponent {} const typed = Typed.of([ Typed.of([#X], on: 'foo'), @@ -358,7 +358,7 @@ void main() { test('if a private type argument is used', () async { await compilesExpecting( ''' - @Component() + @Component(selector: '') class GenericComponent {} class _Private {} const typed = Typed>(); diff --git a/ngcompiler/test/v1/angular_compiler/emitter/injector_test.dart b/ngcompiler/test/v1/angular_compiler/emitter/injector_test.dart index d61e91fea7..7da83c6dad 100644 --- a/ngcompiler/test/v1/angular_compiler/emitter/injector_test.dart +++ b/ngcompiler/test/v1/angular_compiler/emitter/injector_test.dart @@ -1,7 +1,7 @@ import 'package:code_builder/code_builder.dart'; import 'package:dart_style/dart_style.dart'; -import 'package:test/test.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; +import 'package:test/test.dart'; void main() { final dartfmt = DartFormatter(); @@ -72,6 +72,7 @@ void main() { this.get(Dep1), this.get(Dep2), ); + @override Object injectFromSelfOptional( Object token, [ @@ -104,6 +105,7 @@ void main() { FooInjector._(Injector parent) : super(parent); Foo _getExisting$0() => this.get(Foo); + @override Object injectFromSelfOptional( Object token, [ @@ -145,6 +147,7 @@ void main() { this.get(Dep1), this.get(Dep2), ); + @override Object injectFromSelfOptional( Object token, [ @@ -177,6 +180,7 @@ void main() { FooInjector._(Injector parent) : super(parent); Foo _getFoo$0() => const Foo(); + @override Object injectFromSelfOptional( Object token, [ @@ -226,7 +230,9 @@ void main() { FooInjector._(Injector parent) : super(parent); int _getint$0() => 1; + int _getint$1() => 2; + @override Object injectFromSelfOptional( Object token, [ diff --git a/ngcompiler/test/v1/angular_compiler/integration/generate_injector_test.dart b/ngcompiler/test/v1/angular_compiler/integration/generate_injector_test.dart index 360d40f30a..94e7d54b9d 100644 --- a/ngcompiler/test/v1/angular_compiler/integration/generate_injector_test.dart +++ b/ngcompiler/test/v1/angular_compiler/integration/generate_injector_test.dart @@ -1,8 +1,8 @@ import 'package:code_builder/code_builder.dart'; import 'package:dart_style/dart_style.dart'; -import 'package:test/test.dart'; import 'package:ngcompiler/v1/angular_compiler.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; import '../src/resolve.dart'; @@ -21,7 +21,6 @@ void main() { setUpAll(() async { final library = await resolveLibrary(r''' - // @dart=2.9 @GenerateInjector([ FactoryProvider(Foo, createFooDynamicDependency), ]) @@ -48,7 +47,9 @@ void main() { Object _field0; Object _getObject$0() => _field0 ??= createFooDynamicDependency(this.get(dynamic)); + Injector _getInjector$1() => this; + @override Object injectFromSelfOptional( Object token, [ @@ -78,7 +79,6 @@ void main() { setUpAll(() async { final library = await resolveLibrary(r''' - // @dart=2.9 @GenerateInjector([ ValueProvider(Foo, Foo(Foo)), ]) @@ -100,7 +100,7 @@ void main() { e.toString(), allOf([ contains('Reviving Types is not supported'), - contains('line 8, column 25 of') + contains('line 7, column 25 of') ])); rethrow; } diff --git a/ngcompiler/test/v1/angular_compiler/src/compile.dart b/ngcompiler/test/v1/angular_compiler/src/compile.dart index ea759cb6cf..4de54de52f 100644 --- a/ngcompiler/test/v1/angular_compiler/src/compile.dart +++ b/ngcompiler/test/v1/angular_compiler/src/compile.dart @@ -1,8 +1,8 @@ import 'package:analyzer/dart/element/element.dart'; import 'package:build_test/build_test.dart'; import 'package:logging/logging.dart'; -import 'package:test/test.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; import 'resolve.dart'; diff --git a/ngcompiler/test/v2/analyzer_test.dart b/ngcompiler/test/v2/analyzer_test.dart index 7daa9003b3..7c7c3a69b9 100644 --- a/ngcompiler/test/v2/analyzer_test.dart +++ b/ngcompiler/test/v2/analyzer_test.dart @@ -1,8 +1,9 @@ import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/type.dart'; -import 'package:test/test.dart'; import 'package:ngcompiler/v2/analyzer.dart'; -import 'package:ngcompiler/v2/testing.dart'; +import 'package:test/test.dart'; + +import 'testing/runtime_source_resolution.dart'; void main() { group('NullableDartType', () { @@ -12,12 +13,9 @@ void main() { expect(noType.isExplicitlyNullable, isFalse); }); - Future testDynamicIsNotExplicit({ - required bool enableNullSafety, - }) async { + test('dynamic should not be explicitly anything', () async { final lib = await resolve( ''' - ${enableNullSafety ? '// @dart=2.9' : ''} dynamic topLevelField; ''', includeAngularDeps: false, @@ -25,82 +23,43 @@ void main() { final field = lib.library.topLevelElements.last as VariableElement; expect(field.type.isExplicitlyNullable, isFalse); expect(field.type.isExplicitlyNonNullable, isFalse); - } - - group('on opted-in code:', () { - test('dynamic should not be explicitly anything', () async { - await (testDynamicIsNotExplicit(enableNullSafety: true)); - }); + }); - test('a non-nullable type should be explicitly non-nullable', () async { - final lib = await resolve( - ''' + test('a non-nullable type should be explicitly non-nullable', () async { + final lib = await resolve( + ''' String topLevelField; ''', - includeAngularDeps: false, - ); - final field = lib.library.topLevelElements.last as VariableElement; - expect(field.type.isExplicitlyNullable, isFalse); - expect(field.type.isExplicitlyNonNullable, isTrue); - }); + includeAngularDeps: false, + ); + final field = lib.library.topLevelElements.last as VariableElement; + expect(field.type.isExplicitlyNullable, isFalse); + expect(field.type.isExplicitlyNonNullable, isTrue); + }); - test('a nullable type should be explicitly nullable', () async { - final lib = await resolve( - ''' + test('a nullable type should be explicitly nullable', () async { + final lib = await resolve( + ''' String? topLevelField; ''', - includeAngularDeps: false, - ); - final field = lib.library.topLevelElements.last as VariableElement; - expect(field.type.isExplicitlyNullable, isTrue); - expect(field.type.isExplicitlyNonNullable, isFalse); - }); - - test('a nullable FutureOr should be explicitly nullable', () async { - final lib = await resolve( - ''' - import 'dart:async'; - FutureOr topLevelField; - ''', - includeAngularDeps: false, - ); - final field = lib.library.topLevelElements.last as VariableElement; - expect(field.type.isExplicitlyNullable, isTrue); - expect(field.type.isExplicitlyNonNullable, isFalse); - }); + includeAngularDeps: false, + ); + final field = lib.library.topLevelElements.last as VariableElement; + expect(field.type.isExplicitlyNullable, isTrue); + expect(field.type.isExplicitlyNonNullable, isFalse); }); - group('on opted-out code:', () { - test('dynamic should not be explicitly anything', () async { - await (testDynamicIsNotExplicit(enableNullSafety: false)); - }); - - test('a legacy type should not be explicitly anything', () async { - final lib = await resolve( - ''' - // @dart=2.9 - String topLevelField; - ''', - includeAngularDeps: false, - ); - final field = lib.library.topLevelElements.last as VariableElement; - expect(field.type.isExplicitlyNullable, isFalse); - expect(field.type.isExplicitlyNonNullable, isFalse); - }); - - test('a legacy FutureOr should not explicitly anything', () async { - final lib = await resolve( - ''' - // @dart=2.9 + test('a nullable FutureOr should be explicitly nullable', () async { + final lib = await resolve( + ''' import 'dart:async'; - FutureOr topLevelField; + FutureOr topLevelField; ''', - includeAngularDeps: false, - ); - final field = lib.library.topLevelElements.last as VariableElement; - expect(field.type.isExplicitlyNullable, isFalse); - expect(field.type.isExplicitlyNonNullable, isFalse); - }); + includeAngularDeps: false, + ); + final field = lib.library.topLevelElements.last as VariableElement; + expect(field.type.isExplicitlyNullable, isTrue); + expect(field.type.isExplicitlyNonNullable, isFalse); }); }); } diff --git a/ngcompiler/test/v2/context_test.dart b/ngcompiler/test/v2/context_test.dart index 81a4178acd..3fbe940a75 100644 --- a/ngcompiler/test/v2/context_test.dart +++ b/ngcompiler/test/v2/context_test.dart @@ -1,6 +1,6 @@ import 'package:build/build.dart'; -import 'package:test/test.dart'; import 'package:ngcompiler/v2/context.dart'; +import 'package:test/test.dart'; void main() { tearDown(CompileContext.removeTestingOverride); @@ -32,7 +32,6 @@ void main() { final context = CompileContext( AssetId('foo.sub', 'lib/bar.dart'), enableDevTools: false, - isNullSafe: false, policyExceptions: {}, policyExceptionsInPackages: {}, ); @@ -43,7 +42,6 @@ void main() { final context = CompileContext( AssetId('foo', 'lib/bar.dart'), enableDevTools: false, - isNullSafe: false, policyExceptions: {}, policyExceptionsInPackages: {}, ); @@ -54,7 +52,6 @@ void main() { final context = CompileContext( AssetId('foo.sub', 'lib/bar.dart'), enableDevTools: false, - isNullSafe: false, policyExceptions: {}, policyExceptionsInPackages: {}, ); @@ -73,36 +70,11 @@ void main() { ); }); - group('emitNullSafeCode', () { - test('should be false if the source library is not opted-in', () { - final context = CompileContext( - AssetId('foo.sub', 'lib/bar.dart'), - enableDevTools: false, - isNullSafe: false, - policyExceptions: {}, - policyExceptionsInPackages: {}, - ); - expect(context.emitNullSafeCode, isFalse); - }); - - test('should be true if the source library opted-in', () { - final context = CompileContext( - AssetId('foo.sub', 'lib/bar.dart'), - enableDevTools: false, - isNullSafe: true, - policyExceptions: {}, - policyExceptionsInPackages: {}, - ); - expect(context.emitNullSafeCode, isTrue); - }); - }); - group('isDevToolsEnabled', () { test('should be false by default', () { final context = CompileContext( AssetId('foo.sub', 'lib/bar.dart'), enableDevTools: false, - isNullSafe: false, policyExceptions: {}, policyExceptionsInPackages: {}, ); @@ -113,7 +85,6 @@ void main() { final context = CompileContext( AssetId('foo.sub', 'lib/bar.dart'), enableDevTools: true, - isNullSafe: false, policyExceptions: {}, policyExceptionsInPackages: {}, ); @@ -124,7 +95,6 @@ void main() { final context = CompileContext( AssetId('foo.sub', 'lib/bar.dart'), enableDevTools: false, - isNullSafe: false, policyExceptions: { 'FORCE_DEVTOOLS_ENABLED': { 'foo/sub/lib/bar.dart', @@ -141,7 +111,6 @@ void main() { final context = CompileContext( AssetId('foo', 'lib/bar.dart'), enableDevTools: false, - isNullSafe: false, policyExceptions: {}, policyExceptionsInPackages: {}, ); @@ -152,7 +121,6 @@ void main() { final context = CompileContext( AssetId('foo.sub', 'lib/bar.dart'), enableDevTools: false, - isNullSafe: false, policyExceptions: {}, policyExceptionsInPackages: { 'EXCLUDED_VALIDATE_MISSING_DIRECTIVES': { diff --git a/ngcompiler/lib/v2/src/testing/runtime_source_resolution.dart b/ngcompiler/test/v2/testing/runtime_source_resolution.dart similarity index 99% rename from ngcompiler/lib/v2/src/testing/runtime_source_resolution.dart rename to ngcompiler/test/v2/testing/runtime_source_resolution.dart index bbb486b540..8d8f56b59d 100644 --- a/ngcompiler/lib/v2/src/testing/runtime_source_resolution.dart +++ b/ngcompiler/test/v2/testing/runtime_source_resolution.dart @@ -3,6 +3,8 @@ /// For functional tests that instrument the compiler in ad-hoc fashion; for /// example to expect that given source code produces an error or other /// specific output. +library; + import 'dart:async'; import 'dart:isolate'; diff --git a/ngcompiler/test/v2/testing/runtime_source_resolution_test.dart b/ngcompiler/test/v2/testing/runtime_source_resolution_test.dart index 190c040467..d7565359a6 100644 --- a/ngcompiler/test/v2/testing/runtime_source_resolution_test.dart +++ b/ngcompiler/test/v2/testing/runtime_source_resolution_test.dart @@ -1,6 +1,7 @@ import 'package:build/build.dart'; import 'package:test/test.dart'; -import 'package:ngcompiler/v2/testing.dart'; + +import 'runtime_source_resolution.dart'; void main() { test('should resolve a component', () async { diff --git a/ngdart/lib/src/core/linker/style_encapsulation.dart b/ngdart/lib/src/core/linker/style_encapsulation.dart index fc3dcb4f2f..9f2fa41aaf 100644 --- a/ngdart/lib/src/core/linker/style_encapsulation.dart +++ b/ngdart/lib/src/core/linker/style_encapsulation.dart @@ -180,9 +180,9 @@ class ComponentStyles { class _UnscopedComponentStyles extends ComponentStyles { _UnscopedComponentStyles( - List styles, - String? componentUrl, - ) : super._(styles, componentUrl); + super.styles, + super.componentUrl, + ) : super._(); @override void addContentShimClass(Element element) { diff --git a/ngdart/lib/src/meta/change_detection_constants.dart b/ngdart/lib/src/meta/change_detection_constants.dart index bfcbd46355..bbba633bdd 100644 --- a/ngdart/lib/src/meta/change_detection_constants.dart +++ b/ngdart/lib/src/meta/change_detection_constants.dart @@ -43,7 +43,7 @@ enum ChangeDetectionStrategy { /// /// **WARNING**: It is currently _undefined behavior_ to have a [checkAlways] /// configured component as a child (or directive) of a component that is - /// using [OnPush]. We hope to introduce more guidance here in the future. + /// using [onPush]. We hope to introduce more guidance here in the future. onPush, } diff --git a/ngdart/lib/src/meta/di_providers.dart b/ngdart/lib/src/meta/di_providers.dart index fb2db44f42..dcec794dc4 100644 --- a/ngdart/lib/src/meta/di_providers.dart +++ b/ngdart/lib/src/meta/di_providers.dart @@ -181,10 +181,9 @@ class ClassProvider extends Provider { // Prevents extending this class. const ClassProvider._( - Object token, { + super.token, { Type? useClass, }) : super._( - token, useClass: useClass ?? token as Type, ); } @@ -208,10 +207,9 @@ class ExistingProvider extends Provider { // Prevents extending this class. const ExistingProvider._( - Object token, + super.token, Object useExisting, ) : super._( - token, useExisting: useExisting, ); } @@ -235,13 +233,11 @@ class FactoryProvider extends Provider { // Prevents extending this class. const FactoryProvider._( - Object token, + super.token, Function useFactory, { - List? deps, + super.deps, }) : super._( - token, useFactory: useFactory, - deps: deps, ); } @@ -272,10 +268,9 @@ class ValueProvider extends Provider { // Prevents extending this class. const ValueProvider._( - Object token, + super.token, T useValue, ) : super._( - token, useValue: useValue, ); } diff --git a/ngdart/lib/src/meta/directives.dart b/ngdart/lib/src/meta/directives.dart index c29c5d8357..de350e6552 100644 --- a/ngdart/lib/src/meta/directives.dart +++ b/ngdart/lib/src/meta/directives.dart @@ -392,14 +392,9 @@ class ContentChildren extends _Query { }) class ContentChild extends _Query { const ContentChild( - Object selector, { - Object? read, - }) : super( - selector, - descendants: true, - first: true, - read: read, - ); + super.selector, { + super.read, + }) : super(descendants: true, first: true); } abstract class _ViewQuery extends _Query { @@ -590,13 +585,9 @@ abstract class _ViewQuery extends _Query { }) class ViewChildren extends _ViewQuery { const ViewChildren( - Object selector, { - Object? read, - }) : super( - selector, - descendants: true, - read: read, - ); + super.selector, { + super.read, + }) : super(descendants: true); } /// Declares a reference to a single child node in a component's template. @@ -630,14 +621,9 @@ class ViewChildren extends _ViewQuery { }) class ViewChild extends _ViewQuery { const ViewChild( - Object selector, { - Object? read, - }) : super( - selector, - descendants: true, - first: true, - read: read, - ); + super.selector, { + super.read, + }) : super(descendants: true, first: true); } /// Declares a data-bound input property. diff --git a/ngdart/lib/src/security/dom_sanitization_service.dart b/ngdart/lib/src/security/dom_sanitization_service.dart index bf2ce30573..c7994b190f 100644 --- a/ngdart/lib/src/security/dom_sanitization_service.dart +++ b/ngdart/lib/src/security/dom_sanitization_service.dart @@ -2,9 +2,9 @@ import 'package:ngdart/di.dart' show Injectable; import 'package:ngdart/src/utilities.dart'; import 'html_sanitizer.dart'; +import 'sanitization_service.dart'; import 'style_sanitizer.dart'; import 'url_sanitizer.dart'; -import 'sanitization_service.dart'; abstract class SafeValue { /// Named this way to allow security teams to @@ -18,23 +18,19 @@ abstract class SafeValue { } class SafeHtml extends SafeValue { - SafeHtml(String changingThisWillBypassSecurityTrust) - : super(changingThisWillBypassSecurityTrust); + SafeHtml(super.changingThisWillBypassSecurityTrust); } class SafeStyle extends SafeValue { - SafeStyle(String changingThisWillBypassSecurityTrust) - : super(changingThisWillBypassSecurityTrust); + SafeStyle(super.changingThisWillBypassSecurityTrust); } class SafeUrl extends SafeValue { - SafeUrl(String changingThisWillBypassSecurityTrust) - : super(changingThisWillBypassSecurityTrust); + SafeUrl(super.changingThisWillBypassSecurityTrust); } class SafeResourceUrl extends SafeValue { - SafeResourceUrl(String changingThisWillBypassSecurityTrust) - : super(changingThisWillBypassSecurityTrust); + SafeResourceUrl(super.changingThisWillBypassSecurityTrust); } /// DomSanitizationService helps preventing Cross Site Scripting Security bugs diff --git a/ngdart/lib/src/security/safe_inner_html.dart b/ngdart/lib/src/security/safe_inner_html.dart index c5e7c86189..88b884f7ce 100644 --- a/ngdart/lib/src/security/safe_inner_html.dart +++ b/ngdart/lib/src/security/safe_inner_html.dart @@ -42,14 +42,11 @@ class SafeInnerHtmlDirective { @Input() set safeInnerHtml(safeInnerHtml) { - // print('Setting inner html as $safeInnerHtml'); if (safeInnerHtml is SafeHtml) { _element.setInnerHtml( safeInnerHtml.changingThisWillBypassSecurityTrust, treeSanitizer: NodeTreeSanitizer.trusted, ); - // print('$safeInnerHtml is SafeHtml!'); - // print(_element.innerHtml); } else if (safeInnerHtml == null) { _element.setInnerHtml(''); } else { @@ -59,9 +56,7 @@ class SafeInnerHtmlDirective { // origin instead of passing a primitive string through layers // of code which could introduce mutations making security auditing // hard. - throw UnsupportedError( - 'SafeHtml required (got $safeInnerHtml)', - ); + throw UnsupportedError('SafeHtml required (got $safeInnerHtml)'); } } } diff --git a/ngdart/mono_pkg.yaml b/ngdart/mono_pkg.yaml index c2187265b7..03cc3ef1f3 100644 --- a/ngdart/mono_pkg.yaml +++ b/ngdart/mono_pkg.yaml @@ -1,8 +1,14 @@ sdk: - - 2.19.6 - pubspec + - dev stages: - analyze: - - format - - analyze \ No newline at end of file + - format: + sdk: + - pubspec + - analyze: --fatal-infos . + +cache: + directories: + - .dart_tool/build diff --git a/ngdart/pubspec.yaml b/ngdart/pubspec.yaml index 483e8a8fff..56c50d5628 100644 --- a/ngdart/pubspec.yaml +++ b/ngdart/pubspec.yaml @@ -2,25 +2,27 @@ name: ngdart description: >- Fast and productive web framework by Google. Separate, but similar to the JavaScript framework with a similar name. -version: 8.0.0-dev.2 +version: 8.0.0-dev.3 repository: https://github.com/angulardart-community/angular environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=3.1.0 <4.0.0" dependencies: - analyzer: ^5.4.0 - build: ^2.3.1 + build: ^2.4.1 built_collection: ^5.1.1 - build_modules: ^4.0.7 - built_value: ^8.4.3 - collection: ^1.17.0 - intl: ^0.18.0 - js: ^0.6.5 - meta: ^1.8.0 - ngast: ^3.0.0-dev.0 - ngcompiler: ^3.0.0-dev.1 + built_value: ^8.7.0 + collection: ^1.18.0 + intl: ^0.18.1 + js: ^0.6.7 + meta: ^1.11.0 + ngcompiler: ^3.0.0-dev.2 stream_transform: ^2.1.0 dev_dependencies: - lints: ^2.0.1 + lints: ^2.1.0 + + # minimal versions to support null safety and class modifiers + build_runner: ^2.4.6 + build_web_compilers: ^4.0.4 + watcher: ^1.1.0 diff --git a/ngforms/lib/src/directives/control_value_accessor.dart b/ngforms/lib/src/directives/control_value_accessor.dart index 592f7a8000..4fcbb135df 100644 --- a/ngforms/lib/src/directives/control_value_accessor.dart +++ b/ngforms/lib/src/directives/control_value_accessor.dart @@ -1,5 +1,7 @@ import 'package:ngdart/angular.dart'; +import 'default_value_accessor.dart'; + /// A bridge between a control and a native element. /// /// A `ControlValueAccessor` abstracts the operations of writing a new value to a @@ -56,7 +58,7 @@ typedef TouchFunction = dynamic Function(); /// A mixin to add touch support to a [ControlValueAccessor]. /// /// **NOTE**: This will add a [HostListener] on the `blur` event. -class TouchHandler { +mixin class TouchHandler { // TODO(alorenzen): Make this private. // ignore: prefer_function_declarations_over_variables TouchFunction onTouched = () {}; @@ -76,7 +78,7 @@ class TouchHandler { /// /// **NOTE**: It is expected that all subclasses will implement their own /// [HostListener] to actually call the [onChange] callback.. -class ChangeHandler { +mixin class ChangeHandler { // ignore: prefer_function_declarations_over_variables ChangeFunction onChange = (T _, {String? rawValue}) {}; diff --git a/ngforms/lib/src/directives/default_value_accessor.dart b/ngforms/lib/src/directives/default_value_accessor.dart index ba7b99ead2..0c28cdbee4 100644 --- a/ngforms/lib/src/directives/default_value_accessor.dart +++ b/ngforms/lib/src/directives/default_value_accessor.dart @@ -5,6 +5,9 @@ import 'package:ngdart/angular.dart'; import 'package:ngforms/src/directives/shared.dart' show setElementDisabled; import 'control_value_accessor.dart'; +import 'ng_control_name.dart'; +import 'ng_form_control.dart'; +import 'ng_model.dart'; const defaultValueAccessor = ExistingProvider.forToken( ngValueAccessor, diff --git a/ngforms/lib/src/directives/memorized_form.dart b/ngforms/lib/src/directives/memorized_form.dart index 54c4abc3a6..32cfadad11 100644 --- a/ngforms/lib/src/directives/memorized_form.dart +++ b/ngforms/lib/src/directives/memorized_form.dart @@ -22,9 +22,9 @@ import 'shared.dart' show setUpControl, setUpControlGroup; ) class MemorizedForm extends NgForm { MemorizedForm( - @Optional() @Self() @Inject(ngValidators) List? validators, - ChangeDetectorRef changeDetectorRef, - ) : super(validators, changeDetectorRef); + @Optional() @Self() @Inject(ngValidators) super.validators, + super.changeDetectorRef, + ); /// Add a control if it isn't already found in the container. @override diff --git a/ngforms/lib/src/directives/ng_control_name.dart b/ngforms/lib/src/directives/ng_control_name.dart index ee96808c60..49cdc3555c 100644 --- a/ngforms/lib/src/directives/ng_control_name.dart +++ b/ngforms/lib/src/directives/ng_control_name.dart @@ -95,7 +95,7 @@ class NgControlName extends NgControl implements AfterChanges, OnDestroy { @Optional() @Self() @Inject(ngValueAccessor) - List>? valueAccessors, + List>? valueAccessors, ) : super(valueAccessors, validators); @Input('ngControl') diff --git a/ngforms/lib/src/directives/ng_form_control.dart b/ngforms/lib/src/directives/ng_form_control.dart index 85b8ab0e06..85fb402af2 100644 --- a/ngforms/lib/src/directives/ng_form_control.dart +++ b/ngforms/lib/src/directives/ng_form_control.dart @@ -84,14 +84,11 @@ class NgFormControl extends NgControl implements AfterChanges { dynamic viewModel; NgFormControl( - @Optional() - @Self() - @Inject(ngValidators) - List? validators, + @Optional() @Self() @Inject(ngValidators) List? validators, @Optional() @Self() @Inject(ngValueAccessor) - List>? valueAccessors) + List>? valueAccessors) : super(valueAccessors, validators); @override diff --git a/ngforms/lib/src/directives/ng_model.dart b/ngforms/lib/src/directives/ng_model.dart index 8a628e2647..a30cd430aa 100644 --- a/ngforms/lib/src/directives/ng_model.dart +++ b/ngforms/lib/src/directives/ng_model.dart @@ -77,14 +77,11 @@ class NgModel extends NgControl implements AfterChanges, OnInit { dynamic viewModel; NgModel( - @Optional() - @Self() - @Inject(ngValidators) - List? validators, + @Optional() @Self() @Inject(ngValidators) List? validators, @Optional() @Self() @Inject(ngValueAccessor) - List>? valueAccessors) + List>? valueAccessors) : super(valueAccessors, validators) { _init(valueAccessors); } diff --git a/ngforms/lib/src/model.dart b/ngforms/lib/src/model.dart index 6eff805a5e..9e7ae376d9 100644 --- a/ngforms/lib/src/model.dart +++ b/ngforms/lib/src/model.dart @@ -420,8 +420,7 @@ class Control extends AbstractControl { Function? _onChange; String? _rawValue; - Control([dynamic value, ValidatorFn? validator]) - : super(validator, value: value); + Control([dynamic value, super.validator]) : super(value: value); /// Set the value of the control to `value`. /// @@ -488,8 +487,7 @@ class Control extends AbstractControl { /// define forms in Angular, along with [Control] and [ControlArray]. /// [ControlArray] can also contain other controls, but is of variable length. class ControlGroup extends AbstractControlGroup> { - ControlGroup(Map controls, [ValidatorFn? validator]) - : super(controls, validator); + ControlGroup(super.controls, [super.validator]); @override void updateValue(Map? value, diff --git a/ngforms/mono_pkg.yaml b/ngforms/mono_pkg.yaml index 5f71b46822..15a4d6d6de 100644 --- a/ngforms/mono_pkg.yaml +++ b/ngforms/mono_pkg.yaml @@ -1,8 +1,13 @@ sdk: - - 2.19.6 - pubspec + - dev stages: + - analyze: + - format: + sdk: + - pubspec + - analyze: --fatal-infos . - build: - command: dart run build_runner build --fail-on-severe - unit_test: diff --git a/ngforms/pubspec.yaml b/ngforms/pubspec.yaml index d23844c1c5..7b51fabd74 100644 --- a/ngforms/pubspec.yaml +++ b/ngforms/pubspec.yaml @@ -2,20 +2,21 @@ name: ngforms description: > Forms framework for AngularDart. Easily create forms to accept input from users. -version: 5.0.0-dev.1 +version: 5.0.0-dev.2 repository: https://github.com/angulardart-community/angular environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=3.1.0 <4.0.0" dependencies: - meta: ^1.8.0 - ngdart: ^8.0.0-dev.1 + meta: ^1.11.0 + ngdart: ^8.0.0-dev.3 + dev_dependencies: - build_runner: ^2.3.3 - build_test: ^2.1.6 - build_web_compilers: ^3.2.7 - lints: ^2.0.1 - mockito: ^5.3.2 - ngtest: ^5.0.0-dev.1 - test: ^1.22.2 + build_runner: ^2.4.6 + build_test: ^2.2.1 + build_web_compilers: ^4.0.4 + lints: ^2.1.0 + mockito: ^5.4.3 + ngtest: ^5.0.0-dev.2 + test: ^1.24.4 diff --git a/ngforms/test/accessor_test.dart b/ngforms/test/accessor_test.dart index a610caf0b7..bdbb8fb5e9 100644 --- a/ngforms/test/accessor_test.dart +++ b/ngforms/test/accessor_test.dart @@ -1,10 +1,10 @@ import 'dart:html'; import 'dart:js_util' as js_util; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngforms/ngforms.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'accessor_test.template.dart' as ng; diff --git a/ngforms/test/directives_test.dart b/ngforms/test/directives_test.dart index 8c51efd1ef..01963b9fa8 100644 --- a/ngforms/test/directives_test.dart +++ b/ngforms/test/directives_test.dart @@ -1,8 +1,12 @@ -// @dart=2.9 -import 'package:mockito/mockito.dart'; -import 'package:test/test.dart'; +import 'dart:html'; + +import 'package:mockito/annotations.dart'; import 'package:ngforms/ngforms.dart'; import 'package:ngforms/src/directives/shared.dart'; +import 'package:test/test.dart'; + +@GenerateMocks([ControlValueAccessor]) +import 'directives_test.mocks.dart'; // ignore: uri_does_not_exist class DummyControlValueAccessor implements ControlValueAccessor { dynamic writtenValue; @@ -34,9 +38,10 @@ Future flushMicrotasks() async => await Future.microtask(() => null); void main() { group('Shared selectValueAccessor', () { - DefaultValueAccessor defaultAccessor; + late DefaultValueAccessor defaultAccessor; + setUp(() { - defaultAccessor = DefaultValueAccessor(null); + defaultAccessor = DefaultValueAccessor(InputElement()); }); test('should throw when given an empty array', () { expect(() => selectValueAccessor([]), @@ -46,51 +51,49 @@ void main() { expect(selectValueAccessor([defaultAccessor]), defaultAccessor); }); test('should return checkbox accessor when provided', () { - var checkboxAccessor = CheckboxControlValueAccessor(null); + var checkboxAccessor = CheckboxControlValueAccessor(InputElement()); expect(selectValueAccessor([defaultAccessor, checkboxAccessor]), checkboxAccessor); }); test('should return select accessor when provided', () { - var selectAccessor = SelectControlValueAccessor(null); + var selectAccessor = SelectControlValueAccessor(SelectElement()); expect(selectValueAccessor([defaultAccessor, selectAccessor]), selectAccessor); }); test('should throw when more than one build-in accessor is provided', () { - var checkboxAccessor = CheckboxControlValueAccessor(null); - var selectAccessor = SelectControlValueAccessor(null); + var checkboxAccessor = CheckboxControlValueAccessor(InputElement()); + var selectAccessor = SelectControlValueAccessor(SelectElement()); expect(() => selectValueAccessor([checkboxAccessor, selectAccessor]), throwsWith('More than one built-in value accessor matches')); }); test('should return custom accessor when provided', () { - var customAccessor = MockValueAccessor(); - var checkboxAccessor = CheckboxControlValueAccessor(null); + // ignore: undefined_function + var customAccessor = MockControlValueAccessor(); + var checkboxAccessor = CheckboxControlValueAccessor(InputElement()); expect( selectValueAccessor( [defaultAccessor, customAccessor, checkboxAccessor]), customAccessor); }); test('should throw when more than one custom accessor is provided', () { - ControlValueAccessor customAccessor = MockValueAccessor(); + // ignore: undefined_function + var customAccessor = MockControlValueAccessor(); expect(() => selectValueAccessor([customAccessor, customAccessor]), throwsWith('More than one custom value accessor matches')); }); }); group('Shared composeValidators', () { - setUp(() { - DefaultValueAccessor(null); - }); test('should compose functions', () { Map dummy1(_) => {'dummy1': true}; Map dummy2(_) => {'dummy2': true}; - var v = composeValidators([dummy1, dummy2]); + var v = composeValidators([dummy1, dummy2])!; expect(v(Control('')), {'dummy1': true, 'dummy2': true}); }); + test('should compose validator directives', () { Map dummy1(_) => {'dummy1': true}; - var v = composeValidators([dummy1, CustomValidatorDirective()]); + var v = composeValidators([dummy1, CustomValidatorDirective()])!; expect(v(Control('')), {'dummy1': true, 'custom': true}); }); }); } - -class MockValueAccessor extends Mock implements ControlValueAccessor {} diff --git a/ngforms/test/form_builder_test.dart b/ngforms/test/form_builder_test.dart index ae8924f9a1..7e6232958e 100644 --- a/ngforms/test/form_builder_test.dart +++ b/ngforms/test/form_builder_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngforms/ngforms.dart'; +import 'package:test/test.dart'; Map? _syncValidator(AbstractControl c) { return null; diff --git a/ngforms/test/integration_test.dart b/ngforms/test/integration_test.dart index 258543a597..0bc4fd8023 100644 --- a/ngforms/test/integration_test.dart +++ b/ngforms/test/integration_test.dart @@ -1,10 +1,10 @@ import 'dart:async'; import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngforms/ngforms.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'integration_test.template.dart' as ng; diff --git a/ngforms/test/memorized_form_test.dart b/ngforms/test/memorized_form_test.dart index 64fb750cc3..b278d89e56 100644 --- a/ngforms/test/memorized_form_test.dart +++ b/ngforms/test/memorized_form_test.dart @@ -1,7 +1,7 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngforms/ngforms.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'memorized_form_test.template.dart' as ng; diff --git a/ngforms/test/model_test.dart b/ngforms/test/model_test.dart index 165a15a9c6..46e6cf275c 100644 --- a/ngforms/test/model_test.dart +++ b/ngforms/test/model_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngforms/ngforms.dart'; +import 'package:test/test.dart'; void main() { group('Form Model', () { diff --git a/ngforms/test/ng_control_group_test.dart b/ngforms/test/ng_control_group_test.dart index 3f910d6f30..de85190fb3 100644 --- a/ngforms/test/ng_control_group_test.dart +++ b/ngforms/test/ng_control_group_test.dart @@ -1,9 +1,9 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngforms/ngforms.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'ng_control_group_test.template.dart' as ng; diff --git a/ngforms/test/ng_control_name_test.dart b/ngforms/test/ng_control_name_test.dart index 80f857f94e..8d09a19fa2 100644 --- a/ngforms/test/ng_control_name_test.dart +++ b/ngforms/test/ng_control_name_test.dart @@ -1,9 +1,9 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngforms/ngforms.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'ng_control_name_test.template.dart' as ng; diff --git a/ngforms/test/ng_form_control_test.dart b/ngforms/test/ng_form_control_test.dart index a9f049d79d..313920b46a 100644 --- a/ngforms/test/ng_form_control_test.dart +++ b/ngforms/test/ng_form_control_test.dart @@ -1,9 +1,9 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngforms/ngforms.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'ng_form_control_test.template.dart' as ng; diff --git a/ngforms/test/ng_form_model_test.dart b/ngforms/test/ng_form_model_test.dart index c314364440..6bc71c4230 100644 --- a/ngforms/test/ng_form_model_test.dart +++ b/ngforms/test/ng_form_model_test.dart @@ -1,7 +1,7 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngforms/ngforms.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'ng_form_model_test.template.dart' as ng; diff --git a/ngforms/test/ng_form_test.dart b/ngforms/test/ng_form_test.dart index f965164e32..09753e6116 100644 --- a/ngforms/test/ng_form_test.dart +++ b/ngforms/test/ng_form_test.dart @@ -1,9 +1,9 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngforms/ngforms.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'ng_form_test.template.dart' as ng; diff --git a/ngforms/test/ng_model_test.dart b/ngforms/test/ng_model_test.dart index e02ae30e49..f68f2f4719 100644 --- a/ngforms/test/ng_model_test.dart +++ b/ngforms/test/ng_model_test.dart @@ -1,8 +1,8 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngdart/src/runtime/check_binding.dart'; import 'package:ngforms/ngforms.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'ng_model_test.template.dart' as ng; diff --git a/ngforms/test/validator_directives_test.dart b/ngforms/test/validator_directives_test.dart index 3e4425066b..96367fa72b 100644 --- a/ngforms/test/validator_directives_test.dart +++ b/ngforms/test/validator_directives_test.dart @@ -1,7 +1,7 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngforms/ngforms.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'validator_directives_test.template.dart' as ng; diff --git a/ngforms/test/validators_test.dart b/ngforms/test/validators_test.dart index be5a671bb8..5ea827e826 100644 --- a/ngforms/test/validators_test.dart +++ b/ngforms/test/validators_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngforms/ngforms.dart'; +import 'package:test/test.dart'; Map Function(AbstractControl c) validator( String key, diff --git a/ngrouter/lib/src/route_definition.dart b/ngrouter/lib/src/route_definition.dart index c695f6dfcc..794e856aa9 100644 --- a/ngrouter/lib/src/route_definition.dart +++ b/ngrouter/lib/src/route_definition.dart @@ -178,17 +178,12 @@ class ComponentRouteDefinition extends RouteDefinition { final ComponentFactory? component; ComponentRouteDefinition._({ - String? path, + super.path, this.component, - bool? useAsDefault, - dynamic additionalData, - RoutePath? routePath, - }) : super._( - path: path, - useAsDefault: useAsDefault, - additionalData: additionalData, - routePath: routePath, - ); + super.useAsDefault, + super.additionalData, + super.routePath, + }) : super._(); @override void assertValid() { @@ -211,17 +206,13 @@ class DeferredRouteDefinition extends RouteDefinition { final FutureOr Function(RouterState)? prefetcher; DeferredRouteDefinition._({ - String? path, + super.path, required this.loader, this.prefetcher, - bool? useAsDefault, - dynamic additionalData, - RoutePath? routePath, - }) : super._( - path: path, - useAsDefault: useAsDefault, - additionalData: additionalData, - routePath: routePath); + super.useAsDefault, + super.additionalData, + super.routePath, + }) : super._(); } class RedirectRouteDefinition extends RouteDefinition { @@ -229,16 +220,12 @@ class RedirectRouteDefinition extends RouteDefinition { final String redirectTo; RedirectRouteDefinition._({ - String? path, + super.path, required this.redirectTo, - bool? useAsDefault, - dynamic additionalData, - RoutePath? routePath, - }) : super._( - path: path, - useAsDefault: useAsDefault, - additionalData: additionalData, - routePath: routePath); + super.useAsDefault, + super.additionalData, + super.routePath, + }) : super._(); @override void assertValid() { diff --git a/ngrouter/lib/src/router/router_state.dart b/ngrouter/lib/src/router/router_state.dart index c264bbe067..459710a0fa 100644 --- a/ngrouter/lib/src/router/router_state.dart +++ b/ngrouter/lib/src/router/router_state.dart @@ -22,15 +22,14 @@ class RouterState extends Url { late final routePath = RoutePath.fromRoutes(routes); RouterState( - String path, + super.path, List? routes, { Map? parameters, - String fragment = '', - Map? queryParameters, + String super.fragment = '', + super.queryParameters, this.fromPopState = false, }) : parameters = Map.unmodifiable(parameters ?? {}), - routes = List.unmodifiable(routes ?? []), - super(path, queryParameters: queryParameters, fragment: fragment); + routes = List.unmodifiable(routes ?? []); @override String toString() => '#$RouterState {${super.toString()}}'; diff --git a/ngrouter/mono_pkg.yaml b/ngrouter/mono_pkg.yaml index 5f71b46822..15a4d6d6de 100644 --- a/ngrouter/mono_pkg.yaml +++ b/ngrouter/mono_pkg.yaml @@ -1,8 +1,13 @@ sdk: - - 2.19.6 - pubspec + - dev stages: + - analyze: + - format: + sdk: + - pubspec + - analyze: --fatal-infos . - build: - command: dart run build_runner build --fail-on-severe - unit_test: diff --git a/ngrouter/pubspec.yaml b/ngrouter/pubspec.yaml index 09cc789d5b..bc27a10d5b 100644 --- a/ngrouter/pubspec.yaml +++ b/ngrouter/pubspec.yaml @@ -2,21 +2,22 @@ name: ngrouter description: > Router for AngularDart. It enables navigation from one view to the next as users perform tasks. -version: 4.0.0-dev.1 +version: 4.0.0-dev.2 repository: https://github.com/angulardart-community/angular environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=3.1.0 <4.0.0" dependencies: - collection: ^1.17.0 - ngdart: ^8.0.0-dev.1 + collection: ^1.18.0 + ngdart: ^8.0.0-dev.3 + dev_dependencies: - async: ^2.10.0 - build_runner: ^2.3.3 - build_test: ^2.1.6 - build_web_compilers: ^3.2.7 - lints: ^2.0.1 - mockito: ^5.3.2 - ngtest: ^5.0.0-dev.1 - test: ^1.22.2 + async: ^2.11.0 + build_runner: ^2.4.6 + build_test: ^2.2.1 + build_web_compilers: ^4.0.4 + lints: ^2.1.0 + mockito: ^5.4.3 + ngtest: ^5.0.0-dev.2 + test: ^1.24.4 diff --git a/ngrouter/test/directives/router_link_active_directive_test.dart b/ngrouter/test/directives/router_link_active_directive_test.dart index 3d2dc42cc9..792f1008fe 100644 --- a/ngrouter/test/directives/router_link_active_directive_test.dart +++ b/ngrouter/test/directives/router_link_active_directive_test.dart @@ -1,11 +1,11 @@ import 'dart:async'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; -import 'package:ngrouter/testing.dart'; import 'package:ngrouter/src/location/testing/mock_location_strategy.dart'; // by some cause it is not visilble by ngrouter/testing.dart above +import 'package:ngrouter/testing.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'router_link_active_directive_test.template.dart' as ng; diff --git a/ngrouter/test/directives/router_link_directive_test.dart b/ngrouter/test/directives/router_link_directive_test.dart index 6e187cd5ee..37669b6a9a 100644 --- a/ngrouter/test/directives/router_link_directive_test.dart +++ b/ngrouter/test/directives/router_link_directive_test.dart @@ -1,11 +1,11 @@ import 'dart:html' hide Location; import 'dart:js'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngrouter/testing.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'router_link_directive_test.template.dart' as ng; diff --git a/ngrouter/test/lifecycle_test.dart b/ngrouter/test/lifecycle_test.dart index 51ee4693c9..ba28974a50 100644 --- a/ngrouter/test/lifecycle_test.dart +++ b/ngrouter/test/lifecycle_test.dart @@ -1,8 +1,8 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngrouter/testing.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; // ignore: uri_has_not_been_generated import 'lifecycle_test.template.dart' as ng; diff --git a/ngrouter/test/mock_location_strategy_test.dart b/ngrouter/test/mock_location_strategy_test.dart index 1405ffdb33..48078a8a90 100644 --- a/ngrouter/test/mock_location_strategy_test.dart +++ b/ngrouter/test/mock_location_strategy_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngrouter/src/location/testing/mock_location_strategy.dart'; +import 'package:test/test.dart'; void main() { group('$MockLocationStrategy', () { diff --git a/ngrouter/test/navigate_by_url_test.dart b/ngrouter/test/navigate_by_url_test.dart index 5abc0100e5..c361e8cafb 100644 --- a/ngrouter/test/navigate_by_url_test.dart +++ b/ngrouter/test/navigate_by_url_test.dart @@ -1,96 +1,74 @@ -// @dart=2.9 - import 'package:collection/collection.dart'; +import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; -import 'package:test/test.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngrouter/src/router/router_impl.dart'; import 'package:ngrouter/testing.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; + +@GenerateMocks([Router]) +import 'navigate_by_url_test.mocks.dart'; // ignore: uri_does_not_exist void main() { tearDown(disposeAnyRunningTest); group('navigateByUrl', () { - Router mockRouter; - Router router; + // ignore: undefined_class + late MockRouter mockRouter; + late Router router; setUp(() { + // ignore: undefined_function mockRouter = MockRouter(); router = DelegatingRouter(mockRouter); }); + tearDown(() { + reset(mockRouter); + }); + test('invokes navigate', () { + when(mockRouter.navigate('/to/path', any)) + .thenAnswer((_) => Future.value(NavigationResult.success)); router.navigateByUrl('/to/path'); - expect( - verify(mockRouter.navigate( - captureAny, - captureAny, - )).captured, - ['/to/path', navigationParams()], - ); + verify(mockRouter.navigate('/to/path', argThat(navigationParams()))); }); test('invokes navigate with query parameters', () { + when(mockRouter.navigate('/to/path', any)) + .thenAnswer((_) => Future.value(NavigationResult.success)); router.navigateByUrl('/to/path?q=hello%20world'); - expect( - verify(mockRouter.navigate( - captureAny, - captureAny, - )).captured, - [ - '/to/path', - navigationParams(queryParameters: {'q': 'hello world'}), - ], - ); + verify(mockRouter.navigate('/to/path', + argThat(navigationParams(queryParameters: {'q': 'hello world'})))); }); test('invokes navigate with fragment identifier', () { + when(mockRouter.navigate('/to/path', any)) + .thenAnswer((_) => Future.value(NavigationResult.success)); router.navigateByUrl('/to/path#with-fragment'); - expect( - verify(mockRouter.navigate( - captureAny, - captureAny, - )).captured, - [ - '/to/path', - navigationParams(fragment: 'with-fragment'), - ], - ); + verify(mockRouter.navigate( + '/to/path', argThat(navigationParams(fragment: 'with-fragment')))); }); test('invokes navigate with reload', () { + when(mockRouter.navigate('/to/path', any)) + .thenAnswer((_) => Future.value(NavigationResult.success)); router.navigateByUrl('/to/path', reload: true); - expect( - verify(mockRouter.navigate( - captureAny, - captureAny, - )).captured, - [ - '/to/path', - navigationParams(reload: true), - ], - ); + verify(mockRouter.navigate( + '/to/path', argThat(navigationParams(reload: true)))); }); test('invokes navigate with replace', () { + when(mockRouter.navigate('/to/path', any)) + .thenAnswer((_) => Future.value(NavigationResult.success)); router.navigateByUrl('/to/path', replace: true); - expect( - verify(mockRouter.navigate( - captureAny, - captureAny, - )).captured, - [ - '/to/path', - navigationParams(replace: true), - ], - ); + verify(mockRouter.navigate( + '/to/path', argThat(navigationParams(replace: true)))); }); }); } -class MockRouter extends Mock implements Router {} - class DelegatingRouter extends RouterImpl { final Router _delegate; @@ -100,7 +78,7 @@ class DelegatingRouter extends RouterImpl { @override Future navigate( String path, [ - NavigationParams navigationParams, + NavigationParams? navigationParams, ]) => _delegate.navigate(path, navigationParams); } @@ -144,7 +122,7 @@ class NavigationParamsMatcher extends Matcher { Description describeMismatch( item, Description mismatchDescription, - Map matchState, + Map matchState, bool verbose, ) { if (item is NavigationParams) { diff --git a/ngrouter/test/navigation_queue_test.dart b/ngrouter/test/navigation_queue_test.dart index 81424b0cf6..3e10ba35c3 100644 --- a/ngrouter/test/navigation_queue_test.dart +++ b/ngrouter/test/navigation_queue_test.dart @@ -1,10 +1,10 @@ import 'dart:async'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngrouter/testing.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; // ignore: uri_has_not_been_generated import 'navigation_queue_test.template.dart' as ng; @@ -103,15 +103,15 @@ abstract class DelayedActivation implements CanActivate { @Component(selector: 'first', template: 'First') class FirstComponent extends DelayedActivation { - FirstComponent(@firstToken Future future) : super(future); + FirstComponent(@firstToken super.future); } @Component(selector: 'second', template: 'Second') class SecondComponent extends DelayedActivation { - SecondComponent(@secondToken Future future) : super(future); + SecondComponent(@secondToken super.future); } @Component(selector: 'third', template: 'Third') class ThirdComponent extends DelayedActivation { - ThirdComponent(@thirdToken Future future) : super(future); + ThirdComponent(@thirdToken super.future); } diff --git a/ngrouter/test/on_navigation_start_test.dart b/ngrouter/test/on_navigation_start_test.dart index 9ecc35393a..f1dbe9fd22 100644 --- a/ngrouter/test/on_navigation_start_test.dart +++ b/ngrouter/test/on_navigation_start_test.dart @@ -1,9 +1,9 @@ import 'package:async/async.dart' show StreamGroup; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngrouter/testing.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; // ingore: uri_has_not_been_generated import 'on_navigation_start_test.template.dart' as ng; diff --git a/ngrouter/test/on_route_resolved_test.dart b/ngrouter/test/on_route_resolved_test.dart index ce05361457..3f6c11cca9 100644 --- a/ngrouter/test/on_route_resolved_test.dart +++ b/ngrouter/test/on_route_resolved_test.dart @@ -1,9 +1,9 @@ import 'package:async/async.dart' show StreamGroup; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngrouter/testing.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; // ingore: uri_has_not_been_generated import 'on_route_resolved_test.template.dart' as ng; diff --git a/ngrouter/test/redirect_parameters_navigation_test.dart b/ngrouter/test/redirect_parameters_navigation_test.dart index 612c057896..6dfcaa71a1 100644 --- a/ngrouter/test/redirect_parameters_navigation_test.dart +++ b/ngrouter/test/redirect_parameters_navigation_test.dart @@ -1,8 +1,8 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngrouter/testing.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'redirect_parameters_navigation_test.template.dart' as ng; diff --git a/ngrouter/test/regression/empty_active_link_test.dart b/ngrouter/test/regression/empty_active_link_test.dart index fce2279f6f..89389eed7d 100644 --- a/ngrouter/test/regression/empty_active_link_test.dart +++ b/ngrouter/test/regression/empty_active_link_test.dart @@ -1,8 +1,8 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngrouter/testing.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'empty_active_link_test.template.dart' as ng; diff --git a/ngrouter/test/regression/empty_hash_test.dart b/ngrouter/test/regression/empty_hash_test.dart index 9dff5d0101..7d1ba6c6b6 100644 --- a/ngrouter/test/regression/empty_hash_test.dart +++ b/ngrouter/test/regression/empty_hash_test.dart @@ -1,17 +1,19 @@ -// @dart=2.9 - +import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; -import 'package:test/test.dart'; import 'package:ngrouter/ngrouter.dart'; +import 'package:test/test.dart'; -class MockPlatformLocation extends Mock implements PlatformLocation {} +@GenerateMocks([PlatformLocation]) +import 'empty_hash_test.mocks.dart'; // ignore: uri_does_not_exist void main() { - LocationStrategy locationStrategy; - MockPlatformLocation platformLocation; + late LocationStrategy locationStrategy; + // ignore: undefined_class + late MockPlatformLocation platformLocation; group("empty URL doesn't overwrite query parameters", () { setUp(() { + // ignore: undefined_function platformLocation = MockPlatformLocation(); locationStrategy = HashLocationStrategy(platformLocation, null); when(platformLocation.pathname).thenReturn('/foo'); @@ -19,13 +21,13 @@ void main() { }); test('on push', () { - locationStrategy.pushState(null, null, '', ''); - verify(platformLocation.pushState(null, null, '/foo?bar=baz')); + locationStrategy.pushState(null, '', '', ''); + verify(platformLocation.pushState(null, '', '/foo?bar=baz')); }); test('on replace', () { - locationStrategy.replaceState(null, null, '', ''); - verify(platformLocation.replaceState(null, null, '/foo?bar=baz')); + locationStrategy.replaceState(null, '', '', ''); + verify(platformLocation.replaceState(null, '', '/foo?bar=baz')); }); }); } diff --git a/ngrouter/test/regression/empty_path_test.dart b/ngrouter/test/regression/empty_path_test.dart index 622d055fc6..0c87740523 100644 --- a/ngrouter/test/regression/empty_path_test.dart +++ b/ngrouter/test/regression/empty_path_test.dart @@ -1,8 +1,8 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngrouter/testing.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; // ignore: uri_has_not_been_generated import 'empty_path_test.template.dart' as ng; diff --git a/ngrouter/test/regression/hash_location_strategy_test.dart b/ngrouter/test/regression/hash_location_strategy_test.dart index 9931a9df9d..252aed0005 100644 --- a/ngrouter/test/regression/hash_location_strategy_test.dart +++ b/ngrouter/test/regression/hash_location_strategy_test.dart @@ -1,16 +1,19 @@ -// @dart=2.9 - import 'dart:html'; +import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; + +@GenerateNiceMocks([MockSpec()]) +import 'hash_location_strategy_test.mocks.dart'; // ignore: uri_does_not_exist import 'hash_location_strategy_test.template.dart' as ng; -final platformLocation = MockPlatformLocation(); +// ignore: undefined_function +final platformLocation = MockBrowserPlatformLocation(); void main() { setUp(() { @@ -23,9 +26,10 @@ void main() { final testBed = NgTestBed(ng.createAppComponentFactory(), rootInjector: injectorFactory); final testFixture = await testBed.create(); - expect(testFixture.assertOnlyInstance.anchor.getAttribute('href'), '#/foo'); + expect( + testFixture.assertOnlyInstance.anchor!.getAttribute('href'), '#/foo'); await testFixture.update((c) { - c.anchor.click(); + c.anchor!.click(); }); verify(platformLocation.pushState(any, any, '#/foo')).called(1); }); @@ -33,8 +37,6 @@ void main() { PlatformLocation platformLocationFactory() => platformLocation; -class MockPlatformLocation extends Mock implements BrowserPlatformLocation {} - @GenerateInjector([ routerProvidersHash, FactoryProvider(PlatformLocation, platformLocationFactory), @@ -57,7 +59,7 @@ class AppComponent { static final routes = [fooRoute]; @ViewChild('routerLink') - HtmlElement anchor; + HtmlElement? anchor; } @Component(selector: 'foo', template: '') diff --git a/ngrouter/test/regression/redirect_test.dart b/ngrouter/test/regression/redirect_test.dart index 1e2aaa97c9..e0414e2934 100644 --- a/ngrouter/test/regression/redirect_test.dart +++ b/ngrouter/test/regression/redirect_test.dart @@ -1,8 +1,8 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngrouter/testing.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'redirect_test.template.dart' as ng; diff --git a/ngrouter/test/regression/routing_state_crash_test.dart b/ngrouter/test/regression/routing_state_crash_test.dart index 1c130ab8b7..7b56011938 100644 --- a/ngrouter/test/regression/routing_state_crash_test.dart +++ b/ngrouter/test/regression/routing_state_crash_test.dart @@ -1,10 +1,10 @@ import 'dart:async'; import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngrouter/testing.dart'; +import 'package:test/test.dart'; import 'routing_state_crash_test.template.dart' as ng; diff --git a/ngrouter/test/revert_popstate_test.dart b/ngrouter/test/revert_popstate_test.dart index 0fb0c0a83b..34226678e9 100644 --- a/ngrouter/test/revert_popstate_test.dart +++ b/ngrouter/test/revert_popstate_test.dart @@ -1,9 +1,9 @@ import 'dart:html' show window; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'revert_popstate_test.template.dart' as ng; diff --git a/ngrouter/test/route_definition_test.dart b/ngrouter/test/route_definition_test.dart index e620624f56..824c2685cd 100644 --- a/ngrouter/test/route_definition_test.dart +++ b/ngrouter/test/route_definition_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/src/route_definition.dart'; +import 'package:test/test.dart'; import 'route_definition_test.template.dart' as ng; // ignore: uri_has_not_been_generated diff --git a/ngrouter/test/route_path_test.dart b/ngrouter/test/route_path_test.dart index 0a40a25fbf..46b83a97fc 100644 --- a/ngrouter/test/route_path_test.dart +++ b/ngrouter/test/route_path_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; +import 'package:test/test.dart'; import 'route_path_test.template.dart' as ng; diff --git a/ngrouter/test/route_prefetcher_test.dart b/ngrouter/test/route_prefetcher_test.dart index 2d60964eaf..7850e24c98 100644 --- a/ngrouter/test/route_prefetcher_test.dart +++ b/ngrouter/test/route_prefetcher_test.dart @@ -1,10 +1,10 @@ import 'dart:async'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngrouter/testing.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'route_prefetcher_test.template.dart' as ng; diff --git a/ngrouter/test/router_hook_test.dart b/ngrouter/test/router_hook_test.dart index 49fe8714c6..8fd36e2992 100644 --- a/ngrouter/test/router_hook_test.dart +++ b/ngrouter/test/router_hook_test.dart @@ -1,8 +1,8 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngrouter/testing.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'router_hook_test.template.dart' as ng; diff --git a/ngrouter/test/update_location_on_popstate_test.dart b/ngrouter/test/update_location_on_popstate_test.dart index 05b9682588..dda9c53ec1 100644 --- a/ngrouter/test/update_location_on_popstate_test.dart +++ b/ngrouter/test/update_location_on_popstate_test.dart @@ -1,8 +1,8 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngrouter/ngrouter.dart'; import 'package:ngrouter/testing.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'update_location_on_popstate_test.template.dart' as ng; diff --git a/ngrouter/test/url_test.dart b/ngrouter/test/url_test.dart index d74140edf2..5fdc7a8206 100644 --- a/ngrouter/test/url_test.dart +++ b/ngrouter/test/url_test.dart @@ -1,5 +1,5 @@ -import 'package:test/test.dart'; import 'package:ngrouter/src/url.dart'; +import 'package:test/test.dart'; void main() { group('$Url', () { diff --git a/ngtest/CHANGELOG.md b/ngtest/CHANGELOG.md index 2525038624..cc633fcbdb 100644 --- a/ngtest/CHANGELOG.md +++ b/ngtest/CHANGELOG.md @@ -1,16 +1,20 @@ +## 5.0.0-dev.2 + +- Migrate to Analyzer v6 and Dart 3.0. + ## 5.0.0-dev.1 - - Update a dependency to the latest release. +- Update a dependency to the latest release. ## 5.0.0-dev.0 > Note: This release has breaking changes. - - **BREAKING** **REFACTOR**: remove SlowComponentLoader and ReflectiveInjector ([#26](https://github.com/angulardart-community/angular/issues/26)). +- **BREAKING** **REFACTOR**: remove SlowComponentLoader and ReflectiveInjector ([#26](https://github.com/angulardart-community/angular/issues/26)). ## 4.1.1 - - **FIX**: bring back original import file for compatibility. +- **FIX**: bring back original import file for compatibility. ## 4.1.0 diff --git a/ngtest/lib/src/bootstrap.dart b/ngtest/lib/src/bootstrap.dart index 943a4298d5..a0adbdd815 100644 --- a/ngtest/lib/src/bootstrap.dart +++ b/ngtest/lib/src/bootstrap.dart @@ -5,9 +5,6 @@ import 'package:ngdart/angular.dart'; import 'package:ngdart/src/bootstrap/run.dart'; import 'package:ngdart/src/core/application_ref.dart'; -/// Used as a "tear-off" of [NgZone]. -NgZone _createNgZone() => NgZone(); - /// Returns a future that completes with a new instantiated component. /// /// It is treated as the root component of a temporary application for testing @@ -22,7 +19,7 @@ Future> bootstrapForTest( InjectorFactory userInjector, { FutureOr Function(Injector)? beforeComponentCreated, FutureOr Function(E)? beforeChangeDetection, - NgZone Function() createNgZone = _createNgZone, + NgZone Function() createNgZone = NgZone.new, }) async { // This should be kept in sync with 'runApp' as much as possible. final injector = appInjector(userInjector, createNgZone: createNgZone); diff --git a/ngtest/lib/src/frontend/ng_zone/fake_time_stabilizer.dart b/ngtest/lib/src/frontend/ng_zone/fake_time_stabilizer.dart index aac82de825..4c2e756255 100644 --- a/ngtest/lib/src/frontend/ng_zone/fake_time_stabilizer.dart +++ b/ngtest/lib/src/frontend/ng_zone/fake_time_stabilizer.dart @@ -74,11 +74,10 @@ class FakeTimeNgZoneStabilizer extends BaseNgZoneStabilizer<_FakeTimer> { final int _maxIterations; FakeTimeNgZoneStabilizer._( - NgZone ngZone, - PriorityQueue<_FakeTimer> pendingTimers, { + super.ngZone, + super.pendingTimers, { int? maxIterations, - }) : _maxIterations = maxIterations ?? defaultMaxIterations, - super(ngZone, pendingTimers); + }) : _maxIterations = maxIterations ?? defaultMaxIterations; /// The amount of time since construction that [elapse] has executed on. var _lastElapse = Duration.zero; diff --git a/ngtest/lib/src/frontend/ng_zone/real_time_stabilizer.dart b/ngtest/lib/src/frontend/ng_zone/real_time_stabilizer.dart index a8f98d2ec8..02b2c5c79e 100644 --- a/ngtest/lib/src/frontend/ng_zone/real_time_stabilizer.dart +++ b/ngtest/lib/src/frontend/ng_zone/real_time_stabilizer.dart @@ -63,9 +63,9 @@ class RealTimeNgZoneStabilizer extends BaseNgZoneStabilizer<_ObservedTimer> { } RealTimeNgZoneStabilizer._( - NgZone ngZone, - PriorityQueue<_ObservedTimer> pendingTimers, - ) : super(ngZone, pendingTimers); + super.ngZone, + super.pendingTimers, + ); @override bool get isStable => super.isStable && pendingTimers.isEmpty; diff --git a/ngtest/mono_pkg.yaml b/ngtest/mono_pkg.yaml index 5f71b46822..cd3c645849 100644 --- a/ngtest/mono_pkg.yaml +++ b/ngtest/mono_pkg.yaml @@ -1,9 +1,18 @@ sdk: - - 2.19.6 - pubspec + - dev stages: + - analyze: + - format: + sdk: + - pubspec + - analyze: --fatal-infos . - build: - command: dart run build_runner build --fail-on-severe - unit_test: - command: dart run build_runner test --fail-on-severe -- -P ci + +cache: + directories: + - .dart_tool/build diff --git a/ngtest/pubspec.yaml b/ngtest/pubspec.yaml index a28875706e..ae63d2b14c 100644 --- a/ngtest/pubspec.yaml +++ b/ngtest/pubspec.yaml @@ -2,20 +2,20 @@ name: ngtest description: > Testing runner and library for AngularDart. This package is necessary to write component tests for AngularDart components. -version: 5.0.0-dev.1 +version: 5.0.0-dev.2 repository: https://github.com/angulardart-community/angular environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=3.1.0 <4.0.0" dependencies: - collection: ^1.17.0 - meta: ^1.8.0 - ngdart: ^8.0.0-dev.1 + collection: ^1.18.0 + meta: ^1.11.0 + ngdart: ^8.0.0-dev.3 dev_dependencies: - build_runner: ^2.3.3 - build_test: ^2.1.6 - build_web_compilers: ^3.2.7 - lints: ^2.0.1 - test: ^1.22.2 + build_runner: ^2.4.6 + build_test: ^2.2.1 + build_web_compilers: ^4.0.4 + lints: ^2.1.0 + test: ^1.24.4 diff --git a/ngtest/test/bootstrap_test.dart b/ngtest/test/bootstrap_test.dart index 787a24ae1c..71e0cf6cee 100644 --- a/ngtest/test/bootstrap_test.dart +++ b/ngtest/test/bootstrap_test.dart @@ -1,14 +1,14 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/src/bootstrap.dart'; +import 'package:test/test.dart'; import 'bootstrap_test.template.dart' as ng_generated; -void main() { - Injector noopInjector(Injector i) => i; +Injector noopInjector(Injector i) => i; +void main() { test('should create a new component in the DOM', () async { final host = Element.div(); final test = await bootstrapForTest( diff --git a/ngtest/test/frontend/bed_error_test.dart b/ngtest/test/frontend/bed_error_test.dart index 3fee3c5203..f2ff01a652 100644 --- a/ngtest/test/frontend/bed_error_test.dart +++ b/ngtest/test/frontend/bed_error_test.dart @@ -1,45 +1,37 @@ import 'dart:async'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'bed_error_test.template.dart' as ng; void main() { tearDown(disposeAnyRunningTest); - test('should be able to catch errors that occur synchronously', () { - return CatchSynchronousErrors._runTest(); - }); + test('should be able to catch errors that occur synchronously', + CatchSynchronousErrors._runTest); - test('should be able to catch errors that occur asynchronously', () { - return CatchAsynchronousErrors._runTest(); - }); + test('should be able to catch errors that occur asynchronously', + CatchAsynchronousErrors._runTest); - test('should be able to catch errors that occur in the constructor', () { - return CatchConstructorErrors._runTest(); - }); + test('should be able to catch errors that occur in the constructor', + CatchConstructorErrors._runTest); - test('should be able to catch errors asynchronously in constructor', () { - return CatchConstructorAsyncErrors._runTest(); - }); + test('should be able to catch errors asynchronously in constructor', + CatchConstructorAsyncErrors._runTest); - test('should be able to catch asynchronous errors from a native event', () { - return CatchNativeEventAsynchronousErrors._runTest(); - }); + test('should be able to catch asynchronous errors from a native event', + CatchNativeEventAsynchronousErrors._runTest); - test('should be able to catch synchronously errors from a native event', () { - return CatchNativeEventSynchronousErrors._runTest(); - }); + test('should be able to catch synchronously errors from a native event', + CatchNativeEventSynchronousErrors._runTest); - test('should be able to catch errors that occur in `ngOnInit`', () { - return CatchOnInitErrors._runTest(); - }); + test('should be able to catch errors that occur in `ngOnInit`', + CatchOnInitErrors._runTest); - test('should be able to catch errors that occur in change detection', () { - return CatchInChangeDetection._runTest(); - }); + test('should be able to catch errors that occur in change detection', + CatchInChangeDetection._runTest); test('should not have uncaught errors silenty passed', () async { await NoExceptionsSwallowedTest._runTest(); @@ -72,7 +64,7 @@ class CatchAsynchronousErrors { ng.createCatchAsynchronousErrorsFactory(), ).create(); expect( - fixture.update((_) => Future.error(StateError('Test'))), + fixture.update((_) => Future.error(StateError('Test'))), throwsA(isStateError), ); } @@ -159,7 +151,7 @@ class CatchNativeEventAsynchronousErrors { ); } - void throwError() async { + Future throwError() async { throw StateError('Test'); } } diff --git a/ngtest/test/frontend/bed_lifecycle_test.dart b/ngtest/test/frontend/bed_lifecycle_test.dart index a6f3c77395..d03f35e2fe 100644 --- a/ngtest/test/frontend/bed_lifecycle_test.dart +++ b/ngtest/test/frontend/bed_lifecycle_test.dart @@ -1,8 +1,8 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'bed_lifecycle_test.template.dart' as ng; diff --git a/ngtest/test/frontend/bed_static_test.dart b/ngtest/test/frontend/bed_static_test.dart index 77fa1d1b48..2a4ec1114b 100644 --- a/ngtest/test/frontend/bed_static_test.dart +++ b/ngtest/test/frontend/bed_static_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'bed_static_test.template.dart' as ng_generated; diff --git a/ngtest/test/frontend/compatibility_test.dart b/ngtest/test/frontend/compatibility_test.dart index 459d4fa9e6..10a311242b 100644 --- a/ngtest/test/frontend/compatibility_test.dart +++ b/ngtest/test/frontend/compatibility_test.dart @@ -1,9 +1,9 @@ import 'dart:html'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; import 'package:ngtest/compatibility.dart'; +import 'package:test/test.dart'; import 'compatibility_test.template.dart' as ng; @@ -70,7 +70,7 @@ void main() { test('should handle asynchronous fn with delayed future', () async { final fixture = await testBed.create(beforeComponentCreated: (i) async { - await Future.delayed(Duration(milliseconds: 200)); + await Future.delayed(Duration(milliseconds: 200)); testService = i.provideType(TestService); testService!.value = 'New value'; }, beforeChangeDetection: (_) { diff --git a/ngtest/test/frontend/ng_zone_test.dart b/ngtest/test/frontend/ng_zone_test.dart index 023237c64d..0a1db2e5ac 100644 --- a/ngtest/test/frontend/ng_zone_test.dart +++ b/ngtest/test/frontend/ng_zone_test.dart @@ -1,10 +1,10 @@ import 'dart:async'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/src/frontend/ng_zone/fake_time_stabilizer.dart'; import 'package:ngtest/src/frontend/ng_zone/real_time_stabilizer.dart'; import 'package:ngtest/src/frontend/ng_zone/timer_hook_zone.dart'; +import 'package:test/test.dart'; void main() { group('FakeTimeNgZoneStabilizer', () { @@ -14,7 +14,7 @@ void main() { setUp(() { timerZone = TimerHookZone(); - ngZone = timerZone.run(() => NgZone()); + ngZone = timerZone.run(NgZone.new); stabilizer = FakeTimeNgZoneStabilizer(timerZone, ngZone); }); @@ -266,7 +266,7 @@ void main() { setUp(() { final timerZone = TimerHookZone(); - ngZone = timerZone.run(() => NgZone()); + ngZone = timerZone.run(NgZone.new); stabilizer = RealTimeNgZoneStabilizer(timerZone, ngZone); }); diff --git a/ngtest/test/frontend/override_test.dart b/ngtest/test/frontend/override_test.dart index 5a606c2683..f21db44614 100644 --- a/ngtest/test/frontend/override_test.dart +++ b/ngtest/test/frontend/override_test.dart @@ -1,6 +1,6 @@ -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; +import 'package:test/test.dart'; import 'override_test.template.dart' as ng; diff --git a/ngtest/test/frontend/stabilizer_test.dart b/ngtest/test/frontend/stabilizer_test.dart index 260b5c04c6..68b334514f 100644 --- a/ngtest/test/frontend/stabilizer_test.dart +++ b/ngtest/test/frontend/stabilizer_test.dart @@ -1,9 +1,9 @@ import 'dart:async'; -import 'package:test/test.dart'; import 'package:ngdart/angular.dart'; import 'package:ngtest/angular_test.dart'; import 'package:ngtest/src/errors/will_never_stabilize.dart'; +import 'package:test/test.dart'; import 'stabilizer_test.template.dart' as template; diff --git a/pubspec.yaml b/pubspec.yaml index c36cf4962b..a6f47c0c7b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,5 +4,5 @@ environment: sdk: '>=3.0.0 <4.0.0' dev_dependencies: - lints: ^2.1.1 - melos: ^3.1.0 + lints: ^2.1.0 + melos: ^3.2.0 diff --git a/tool/ci.sh b/tool/ci.sh index 4e09bb7b83..52fcc1a779 100755 --- a/tool/ci.sh +++ b/tool/ci.sh @@ -1,9 +1,10 @@ #!/bin/bash -# Created with package:mono_repo v6.5.7 +# Created with package:mono_repo v6.6.1 # Support built in commands on windows out of the box. + # When it is a flutter repo (check the pubspec.yaml for "sdk: flutter") -# then "flutter" is called instead of "pub". +# then "flutter pub" is called instead of "dart pub". # This assumes that the Flutter SDK has been installed in a previous step. function pub() { if grep -Fq "sdk: flutter" "${PWD}/pubspec.yaml"; then @@ -12,18 +13,13 @@ function pub() { command dart pub "$@" fi } -# When it is a flutter repo (check the pubspec.yaml for "sdk: flutter") -# then "flutter" is called instead of "pub". -# This assumes that the Flutter SDK has been installed in a previous step. + function format() { - if grep -Fq "sdk: flutter" "${PWD}/pubspec.yaml"; then - command flutter format "$@" - else - command dart format "$@" - fi + command dart format "$@" } + # When it is a flutter repo (check the pubspec.yaml for "sdk: flutter") -# then "flutter" is called instead of "pub". +# then "flutter analyze" is called instead of "dart analyze". # This assumes that the Flutter SDK has been installed in a previous step. function analyze() { if grep -Fq "sdk: flutter" "${PWD}/pubspec.yaml"; then @@ -67,31 +63,23 @@ for PKG in ${PKGS}; do echo echo -e "\033[1mPKG: ${PKG}; TASK: ${TASK}\033[22m" case ${TASK} in - analyze_0) - echo 'dart analyze --fatal-infos' - dart analyze --fatal-infos || EXIT_CODE=$? - ;; - analyze_1) - echo 'dart analyze' - dart analyze || EXIT_CODE=$? + analyze) + echo 'dart analyze --fatal-infos .' + dart analyze --fatal-infos . || EXIT_CODE=$? ;; command_0) echo 'dart run build_runner build --fail-on-severe' dart run build_runner build --fail-on-severe || EXIT_CODE=$? ;; command_1) - echo 'dart run test -P vm' - dart run test -P vm || EXIT_CODE=$? + echo 'dart test -P vm' + dart test -P vm || EXIT_CODE=$? ;; command_2) echo 'dart run build_runner test --fail-on-severe -- -P browser' dart run build_runner test --fail-on-severe -- -P browser || EXIT_CODE=$? ;; command_3) - echo 'dart test -P ci' - dart test -P ci || EXIT_CODE=$? - ;; - command_4) echo 'dart run build_runner test --fail-on-severe -- -P ci' dart run build_runner test --fail-on-severe -- -P ci || EXIT_CODE=$? ;; @@ -99,6 +87,10 @@ for PKG in ${PKGS}; do echo 'dart format --output=none --set-exit-if-changed .' dart format --output=none --set-exit-if-changed . || EXIT_CODE=$? ;; + test) + echo 'dart test -P ci' + dart test -P ci || EXIT_CODE=$? + ;; *) echo -e "\033[31mUnknown TASK '${TASK}' - TERMINATING JOB\033[0m" exit 64 diff --git a/tool/dart_test_repo.yaml b/tool/dart_test_repo.yaml index 700ff93813..7442b31017 100644 --- a/tool/dart_test_repo.yaml +++ b/tool/dart_test_repo.yaml @@ -2,6 +2,3 @@ presets: ci: # Don't run any tests that are tagged ["fails-on-ci"]. exclude_tags: "fails-on-ci" - - # https://github.com/dart-lang/test/blob/master/doc/configuration.md#reporter - reporter: expanded diff --git a/tool/package_versions.yaml b/tool/package_versions.yaml new file mode 100644 index 0000000000..6fff33e32e --- /dev/null +++ b/tool/package_versions.yaml @@ -0,0 +1,37 @@ +sdk: ">=3.1.0 <4.0.0" + +analyzer: ^6.0.0 +args: ^2.4.2 +async: ^2.11.0 +build: ^2.4.1 +built_collection: ^5.1.1 +build_resolvers: ^2.4.1 +build_runner: ^2.4.6 +build_test: ^2.2.1 +built_value: ^8.7.0 +build_web_compilers: ^4.0.4 +charcode: ^1.3.1 +code_builder: ^4.7.0 +collection: ^1.18.0 +csslib: ^1.0.0 +dart_style: ^2.3.2 +glob: ^2.1.2 +intl: ^0.18.1 +js: ^0.6.7 +logging: ^1.2.0 +lints: ^2.1.0 +meta: ^1.11.0 +mockito: ^5.4.3 +ngast: ^3.0.0-dev.1 +ngcompiler: ^3.0.0-dev.2 +ngdart: ^8.0.0-dev.3 +ngtest: ^5.0.0-dev.2 +package_config: ^2.1.0 +path: ^1.8.3 +source_gen: ^1.4.0 +source_span: ^1.10.0 +string_scanner: ^1.2.0 +stream_transform: ^2.1.0 +term_glyph: ^1.2.1 +test: ^1.24.4 +watcher: ^1.1.0 \ No newline at end of file diff --git a/tool/update_versions.dart b/tool/update_versions.dart new file mode 100644 index 0000000000..1fd8a2e528 --- /dev/null +++ b/tool/update_versions.dart @@ -0,0 +1,42 @@ +import 'dart:io'; + +final packageFolderRe = RegExp('(_|ng)'); + +final packageEntryRe = RegExp('^ (\\w+): (.+)\$', multiLine: true); + +void main() { + var versionsUri = Uri(path: 'tool/package_versions.yaml'); + var resolvedVersionsUri = Directory.current.uri.resolveUri(versionsUri); + var versionsFile = File.fromUri(resolvedVersionsUri); + + var versions = {}; + + for (var version in versionsFile.readAsLinesSync()) { + if (version.isEmpty) { + continue; + } + + var parts = version.split(':'); + versions[parts[0]] = parts[1].trimLeft(); + } + + String replace(Match match) { + return ' ${match[1]}: ${versions[match[1]]}'; + } + + var offset = Directory.current.path.length + 1; + + Directory.current.listSync().whereType().forEach((directory) { + var directoryName = directory.path.substring(offset); + + if (directoryName.startsWith(packageFolderRe)) { + var pubspecFile = File.fromUri(directory.uri.resolve('pubspec.yaml')); + + if (pubspecFile.existsSync()) { + var oldPubspec = pubspecFile.readAsStringSync(); + var newContent = oldPubspec.replaceAllMapped(packageEntryRe, replace); + pubspecFile.writeAsStringSync(newContent); + } + } + }); +}