Sdk: DDC nnbd sdk errors

Created on 31 Jan 2020  路  10Comments  路  Source: dart-lang/sdk

Enabling CFE warning/error reporting for NNBD shows warnings (mostly) in dart:mirrors, dart:html and friends.

The easiest way to enable the warning/error reporting while building the nnbd sdk is to change performNnbdChecks in pkg/front_end/lib/src/base/processed_options.dart to always return true, and run the compile_platform script directly:

tools/sdks/dart-sdk/bin/dart --packages=.packages --dfe=tools/sdks/dart-sdk/bin/snapshots/kernel-service.dart.snapshot pkg/front_end/tool/_fasta/compile_platform.dart --target=dartdevc dart:core --enable-experiment=non-nullable --single-root-scheme=org-dartlang-sdk --single-root-base=. org-dartlang-sdk:///sdk_nnbd/lib/libraries.json out/ReleaseX64NNBD/vm_outline_strong.dill out/ReleaseX64NNBD/ddc_platform.dill out/ReleaseX64NNBD/ddc_sdk.dill

The current warnings are:

org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/private/js_mirrors.dart:201:29: Warning: Optional parameter 'namedArgs' doesn't have a default value and its type 'Map<Symbol, dynamic>' doesn't allow null.
 - 'Map' is from 'dart:core'.
 - 'Symbol' is from 'dart:core'.
      [Map<Symbol, dynamic> namedArgs]) {
                            ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/private/js_mirrors.dart:214:66: Warning: Optional parameter 'namedArgs' doesn't have a default value and its type 'Map<Symbol, dynamic>' doesn't allow null.
 - 'Map' is from 'dart:core'.
 - 'Symbol' is from 'dart:core'.
  InstanceMirror apply(List<dynamic> args, [Map<Symbol, dynamic> namedArgs]) {
                                                                 ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/private/js_mirrors.dart:367:29: Warning: Optional parameter 'namedArgs' doesn't have a default value and its type 'Map<Symbol, dynamic>' doesn't allow null.
 - 'Map' is from 'dart:core'.
 - 'Symbol' is from 'dart:core'.
      [Map<Symbol, dynamic> namedArgs]) {
                            ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/private/js_mirrors.dart:400:29: Warning: Optional parameter 'namedArgs' doesn't have a default value and its type 'Map<Symbol, dynamic>' doesn't allow null.
 - 'Map' is from 'dart:core'.
 - 'Symbol' is from 'dart:core'.
      [Map<Symbol, dynamic> namedArgs]) {
                            ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/patch/isolate_patch.dart:46:15: Warning: Optional parameter 'packageRoot' doesn't have a default value and its type 'Uri' doesn't allow null.
 - 'Uri' is from 'dart:core'.
          Uri packageRoot,
              ^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/patch/isolate_patch.dart:72:19: Warning: Optional parameter 'response' doesn't have a default value and its type 'Object' doesn't allow null.
 - 'Object' is from 'dart:core'.
          {Object response, int priority = immediate}) =>
                  ^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/isolate/isolate.dart:340:15: Warning: Optional parameter 'packageRoot' doesn't have a default value and its type 'Uri' doesn't allow null.
 - 'Uri' is from 'dart:core'.
          Uri packageRoot,
              ^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/isolate/isolate.dart:525:15: Warning: Optional parameter 'response' doesn't have a default value and its type 'Object' doesn't allow null.
 - 'Object' is from 'dart:core'.
      {Object response, int priority = immediate});
              ^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/patch/mirrors_patch.dart:23:55: Warning: Optional parameter 'library' doesn't have a default value and its type 'LibraryMirror' doesn't allow null.
 - 'LibraryMirror' is from 'dart:mirrors'.
  static Symbol getSymbol(String name, [LibraryMirror library]) {
                                                      ^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:234:21: Warning: Optional parameter 'key' doesn't have a default value and its type 'Object' doesn't allow null.
 - 'Object' is from 'dart:core'.
  void next([Object key]) {
                    ^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:308:61: Warning: Optional parameter 'autoIncrement' doesn't have a default value and its type 'bool' doesn't allow null.
  ObjectStore createObjectStore(String name, {keyPath, bool autoIncrement}) {
                                                            ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:473:12: Warning: Optional parameter 'version' doesn't have a default value and its type 'int' doesn't allow null.
      {int version,
           ^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:474:12: Warning: Optional parameter 'onUpgradeNeeded' doesn't have a default value and its type 'void Function(VersionChangeEvent)' doesn't allow null.
 - 'VersionChangeEvent' is from 'dart:indexed_db'.
      void onUpgradeNeeded(VersionChangeEvent event),
           ^^^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:475:12: Warning: Optional parameter 'onBlocked' doesn't have a default value and its type 'void Function(Event)' doesn't allow null.
 - 'Event' is from 'dart:html'.
      void onBlocked(Event event)}) {
           ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:500:56: Warning: Optional parameter 'onBlocked' doesn't have a default value and its type 'void Function(Event)' doesn't allow null.
 - 'Event' is from 'dart:html'.
  Future<IdbFactory> deleteDatabase(String name, {void onBlocked(Event e)}) {
                                                       ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:604:22: Warning: Optional parameter 'range' doesn't have a default value and its type 'KeyRange' doesn't allow null.
 - 'KeyRange' is from 'dart:indexed_db'.
      {key, KeyRange range, String direction, bool autoAdvance}) {
                     ^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:604:36: Warning: Optional parameter 'direction' doesn't have a default value and its type 'String' doesn't allow null.
      {key, KeyRange range, String direction, bool autoAdvance}) {
                                   ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:604:52: Warning: Optional parameter 'autoAdvance' doesn't have a default value and its type 'bool' doesn't allow null.
      {key, KeyRange range, String direction, bool autoAdvance}) {
                                                   ^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:632:22: Warning: Optional parameter 'range' doesn't have a default value and its type 'KeyRange' doesn't allow null.
 - 'KeyRange' is from 'dart:indexed_db'.
      {key, KeyRange range, String direction, bool autoAdvance}) {
                     ^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:632:36: Warning: Optional parameter 'direction' doesn't have a default value and its type 'String' doesn't allow null.
      {key, KeyRange range, String direction, bool autoAdvance}) {
                                   ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:632:52: Warning: Optional parameter 'autoAdvance' doesn't have a default value and its type 'bool' doesn't allow null.
      {key, KeyRange range, String direction, bool autoAdvance}) {
                                                   ^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:847:22: Warning: Optional parameter 'range' doesn't have a default value and its type 'KeyRange' doesn't allow null.
 - 'KeyRange' is from 'dart:indexed_db'.
      {key, KeyRange range, String direction, bool autoAdvance}) {
                     ^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:847:36: Warning: Optional parameter 'direction' doesn't have a default value and its type 'String' doesn't allow null.
      {key, KeyRange range, String direction, bool autoAdvance}) {
                                   ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:847:52: Warning: Optional parameter 'autoAdvance' doesn't have a default value and its type 'bool' doesn't allow null.
      {key, KeyRange range, String direction, bool autoAdvance}) {
                                                   ^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:868:49: Warning: Optional parameter 'unique' doesn't have a default value and its type 'bool' doesn't allow null.
  Index createIndex(String name, keyPath, {bool unique, bool multiEntry}) {
                                                ^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/indexed_db/dart2js/indexed_db_dart2js.dart:868:62: Warning: Optional parameter 'multiEntry' doesn't have a default value and its type 'bool' doesn't allow null.
  Index createIndex(String name, keyPath, {bool unique, bool multiEntry}) {
                                                             ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:2269:52: Warning: Optional parameter 'quality' doesn't have a default value and its type 'num' doesn't allow null.
  String toDataUrl([String type = 'image/png', num quality]) =>
                                                   ^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:2845:18: Warning: Optional parameter 'sourceRect' doesn't have a default value and its type 'Rectangle<num>' doesn't allow null.
 - 'Rectangle' is from 'dart:math'.
      {Rectangle sourceRect}) {
                 ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:3035:49: Warning: Optional parameter 'maxWidth' doesn't have a default value and its type 'num' doesn't allow null.
  void fillText(String text, num x, num y, [num maxWidth]) {
                                                ^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:4113:63: Warning: Optional parameter 'priority' doesn't have a default value and its type 'String' doesn't allow null.
  void setProperty(String propertyName, String value, [String priority]) {
                                                              ^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:5292:63: Warning: Optional parameter 'priority' doesn't have a default value and its type 'String' doesn't allow null.
  void setProperty(String propertyName, String value, [String priority]) {
                                                              ^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:10275:15: Warning: Optional parameter 'extendsTag' doesn't have a default value and its type 'String' doesn't allow null.
      {String extendsTag}) {
              ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:10281:49: Warning: Optional parameter 'typeExtension' doesn't have a default value and its type 'String' doesn't allow null.
  Element createElement(String tagName, [String typeExtension]) {
                                                ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:10298:15: Warning: Optional parameter 'typeExtension' doesn't have a default value and its type 'String' doesn't allow null.
      [String typeExtension]) {
              ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:10305:16: Warning: Optional parameter 'whatToShow' doesn't have a default value and its type 'int' doesn't allow null.
          [int whatToShow, NodeFilter filter]) =>
               ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:10305:39: Warning: Optional parameter 'filter' doesn't have a default value and its type 'NodeFilter' doesn't allow null.
 - 'NodeFilter' is from 'dart:html'.
          [int whatToShow, NodeFilter filter]) =>
                                      ^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:10310:16: Warning: Optional parameter 'whatToShow' doesn't have a default value and its type 'int' doesn't allow null.
          [int whatToShow, NodeFilter filter]) =>
               ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:10310:39: Warning: Optional parameter 'filter' doesn't have a default value and its type 'NodeFilter' doesn't allow null.
 - 'NodeFilter' is from 'dart:html'.
          [int whatToShow, NodeFilter filter]) =>
                                      ^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:10395:22: Warning: Optional parameter 'validator' doesn't have a default value and its type 'NodeValidator' doesn't allow null.
 - 'NodeValidator' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                     ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:10395:51: Warning: Optional parameter 'treeSanitizer' doesn't have a default value and its type 'NodeTreeSanitizer' doesn't allow null.
 - 'NodeTreeSanitizer' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                                                  ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:10414:22: Warning: Optional parameter 'validator' doesn't have a default value and its type 'NodeValidator' doesn't allow null.
 - 'NodeValidator' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                     ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:10414:51: Warning: Optional parameter 'treeSanitizer' doesn't have a default value and its type 'NodeTreeSanitizer' doesn't allow null.
 - 'NodeTreeSanitizer' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                                                  ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13055:22: Warning: Optional parameter 'validator' doesn't have a default value and its type 'NodeValidator' doesn't allow null.
 - 'NodeValidator' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                     ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13055:51: Warning: Optional parameter 'treeSanitizer' doesn't have a default value and its type 'NodeTreeSanitizer' doesn't allow null.
 - 'NodeTreeSanitizer' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                                                  ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13208:40: Warning: Optional parameter 'alignment' doesn't have a default value and its type 'ScrollAlignment' doesn't allow null.
 - 'ScrollAlignment' is from 'dart:html'.
  void scrollIntoView([ScrollAlignment alignment]) {
                                       ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13303:22: Warning: Optional parameter 'validator' doesn't have a default value and its type 'NodeValidator' doesn't allow null.
 - 'NodeValidator' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                     ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13303:51: Warning: Optional parameter 'treeSanitizer' doesn't have a default value and its type 'NodeTreeSanitizer' doesn't allow null.
 - 'NodeTreeSanitizer' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                                                  ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13558:22: Warning: Optional parameter 'validator' doesn't have a default value and its type 'NodeValidator' doesn't allow null.
 - 'NodeValidator' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                     ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13558:51: Warning: Optional parameter 'treeSanitizer' doesn't have a default value and its type 'NodeTreeSanitizer' doesn't allow null.
 - 'NodeTreeSanitizer' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                                                  ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13693:22: Warning: Optional parameter 'validator' doesn't have a default value and its type 'NodeValidator' doesn't allow null.
 - 'NodeValidator' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                     ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13693:51: Warning: Optional parameter 'treeSanitizer' doesn't have a default value and its type 'NodeTreeSanitizer' doesn't allow null.
 - 'NodeTreeSanitizer' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                                                  ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:15730:13: Warning: Optional parameter 'useCapture' doesn't have a default value and its type 'bool' doesn't allow null.
      [bool useCapture]) {
            ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:15740:13: Warning: Optional parameter 'useCapture' doesn't have a default value and its type 'bool' doesn't allow null.
      [bool useCapture]) {
            ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:17761:46: Warning: Optional parameter 'options' doesn't have a default value and its type 'Map<dynamic, dynamic>' doesn't allow null.
 - 'Map' is from 'dart:core'.
  Function registerElement2(String tag, [Map options]) {
                                             ^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:17767:62: Warning: Optional parameter 'extendsTag' doesn't have a default value and its type 'String' doesn't allow null.
  void register(String tag, Type customElementClass, {String extendsTag}) {
                                                             ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:17811:60: Warning: Optional parameter 'extendsTag' doesn't have a default value and its type 'String' doesn't allow null.
  ElementUpgrader createElementUpgrader(Type type, {String extendsTag}) {
                                                           ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18045:13: Warning: Optional parameter 'withCredentials' doesn't have a default value and its type 'bool' doesn't allow null.
      {bool withCredentials,
            ^^^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18046:14: Warning: Optional parameter 'responseType' doesn't have a default value and its type 'String' doesn't allow null.
      String responseType,
             ^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18047:27: Warning: Optional parameter 'requestHeaders' doesn't have a default value and its type 'Map<String, String>' doesn't allow null.
 - 'Map' is from 'dart:core'.
      Map<String, String> requestHeaders,
                          ^^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18048:12: Warning: Optional parameter 'onProgress' doesn't have a default value and its type 'void Function(ProgressEvent)' doesn't allow null.
 - 'ProgressEvent' is from 'dart:html'.
      void onProgress(ProgressEvent e)}) {
           ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18126:15: Warning: Optional parameter 'method' doesn't have a default value and its type 'String' doesn't allow null.
      {String method,
              ^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18127:12: Warning: Optional parameter 'withCredentials' doesn't have a default value and its type 'bool' doesn't allow null.
      bool withCredentials,
           ^^^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18128:14: Warning: Optional parameter 'responseType' doesn't have a default value and its type 'String' doesn't allow null.
      String responseType,
             ^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18129:14: Warning: Optional parameter 'mimeType' doesn't have a default value and its type 'String' doesn't allow null.
      String mimeType,
             ^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18130:27: Warning: Optional parameter 'requestHeaders' doesn't have a default value and its type 'Map<String, String>' doesn't allow null.
 - 'Map' is from 'dart:core'.
      Map<String, String> requestHeaders,
                          ^^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18132:12: Warning: Optional parameter 'onProgress' doesn't have a default value and its type 'void Function(ProgressEvent)' doesn't allow null.
 - 'ProgressEvent' is from 'dart:html'.
      void onProgress(ProgressEvent e)}) {
           ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18236:15: Warning: Optional parameter 'method' doesn't have a default value and its type 'String' doesn't allow null.
      {String method, String sendData}) {
              ^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18236:30: Warning: Optional parameter 'sendData' doesn't have a default value and its type 'String' doesn't allow null.
      {String method, String sendData}) {
                             ^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18332:13: Warning: Optional parameter 'async' doesn't have a default value and its type 'bool' doesn't allow null.
      {bool async, String user, String password}) native;
            ^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18332:27: Warning: Optional parameter 'user' doesn't have a default value and its type 'String' doesn't allow null.
      {bool async, String user, String password}) native;
                          ^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18332:40: Warning: Optional parameter 'password' doesn't have a default value and its type 'String' doesn't allow null.
      {bool async, String user, String password}) native;
                                       ^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:21764:13: Warning: Optional parameter 'useCapture' doesn't have a default value and its type 'bool' doesn't allow null.
      [bool useCapture]) {
            ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:22652:13: Warning: Optional parameter 'childList' doesn't have a default value and its type 'bool' doesn't allow null.
      {bool childList,
            ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:22653:12: Warning: Optional parameter 'attributes' doesn't have a default value and its type 'bool' doesn't allow null.
      bool attributes,
           ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:22654:12: Warning: Optional parameter 'characterData' doesn't have a default value and its type 'bool' doesn't allow null.
      bool characterData,
           ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:22655:12: Warning: Optional parameter 'subtree' doesn't have a default value and its type 'bool' doesn't allow null.
      bool subtree,
           ^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:22656:12: Warning: Optional parameter 'attributeOldValue' doesn't have a default value and its type 'bool' doesn't allow null.
      bool attributeOldValue,
           ^^^^^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:22657:12: Warning: Optional parameter 'characterDataOldValue' doesn't have a default value and its type 'bool' doesn't allow null.
      bool characterDataOldValue,
           ^^^^^^^^^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:27149:61: Warning: Optional parameter 'selector' doesn't have a default value and its type 'MediaStreamTrack' doesn't allow null.
 - 'MediaStreamTrack' is from 'dart:html'.
  Future<RtcStatsResponse> getLegacyStats([MediaStreamTrack selector]) {
                                                            ^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:27159:25: Warning: Optional parameter 'successCallback' doesn't have a default value and its type 'void Function(RtcStatsResponse)' doesn't allow null.
 - 'RtcStatsResponse' is from 'dart:html'.
      [RtcStatsCallback successCallback, MediaStreamTrack selector]) native;
                        ^^^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:27159:59: Warning: Optional parameter 'selector' doesn't have a default value and its type 'MediaStreamTrack' doesn't allow null.
 - 'MediaStreamTrack' is from 'dart:html'.
      [RtcStatsCallback successCallback, MediaStreamTrack selector]) native;
                                                          ^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:29835:22: Warning: Optional parameter 'validator' doesn't have a default value and its type 'NodeValidator' doesn't allow null.
 - 'NodeValidator' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                     ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:29835:51: Warning: Optional parameter 'treeSanitizer' doesn't have a default value and its type 'NodeTreeSanitizer' doesn't allow null.
 - 'NodeTreeSanitizer' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                                                  ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:29919:22: Warning: Optional parameter 'validator' doesn't have a default value and its type 'NodeValidator' doesn't allow null.
 - 'NodeValidator' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                     ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:29919:51: Warning: Optional parameter 'treeSanitizer' doesn't have a default value and its type 'NodeTreeSanitizer' doesn't allow null.
 - 'NodeTreeSanitizer' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                                                  ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:29982:22: Warning: Optional parameter 'validator' doesn't have a default value and its type 'NodeValidator' doesn't allow null.
 - 'NodeValidator' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                     ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:29982:51: Warning: Optional parameter 'treeSanitizer' doesn't have a default value and its type 'NodeTreeSanitizer' doesn't allow null.
 - 'NodeTreeSanitizer' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                                                  ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:30077:22: Warning: Optional parameter 'validator' doesn't have a default value and its type 'NodeValidator' doesn't allow null.
 - 'NodeValidator' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                     ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:30077:51: Warning: Optional parameter 'treeSanitizer' doesn't have a default value and its type 'NodeTreeSanitizer' doesn't allow null.
 - 'NodeTreeSanitizer' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                                                  ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:32606:52: Warning: Optional parameter 'options' doesn't have a default value and its type 'String' doesn't allow null.
  WindowBase open(String url, String name, [String options]) {
                                                   ^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:34231:25: Warning: Optional parameter 'creationCallback' doesn't have a default value and its type 'void Function(SqlDatabase)' doesn't allow null.
 - 'SqlDatabase' is from 'dart:web_sql'.
      [DatabaseCallback creationCallback]) {
                        ^^^^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:39884:35: Warning: Optional parameter 'uriPolicy' doesn't have a default value and its type 'UriPolicy' doesn't allow null.
 - 'UriPolicy' is from 'dart:html'.
  void allowNavigation([UriPolicy uriPolicy]) {
                                  ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:39897:31: Warning: Optional parameter 'uriPolicy' doesn't have a default value and its type 'UriPolicy' doesn't allow null.
 - 'UriPolicy' is from 'dart:html'.
  void allowImages([UriPolicy uriPolicy]) {
                              ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:39938:34: Warning: Optional parameter 'tagName' doesn't have a default value and its type 'String' doesn't allow null.
  void allowInlineStyles({String tagName}) {
                                 ^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:39956:30: Warning: Optional parameter 'uriPolicy' doesn't have a default value and its type 'UriPolicy' doesn't allow null.
 - 'UriPolicy' is from 'dart:html'.
  void allowHtml5({UriPolicy uriPolicy}) {
                             ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:39975:18: Warning: Optional parameter 'uriPolicy' doesn't have a default value and its type 'UriPolicy' doesn't allow null.
 - 'UriPolicy' is from 'dart:html'.
      {UriPolicy uriPolicy,
                 ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:39977:24: Warning: Optional parameter 'uriAttributes' doesn't have a default value and its type 'Iterable<String>' doesn't allow null.
 - 'Iterable' is from 'dart:core'.
      Iterable<String> uriAttributes}) {
                       ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40000:18: Warning: Optional parameter 'uriPolicy' doesn't have a default value and its type 'UriPolicy' doesn't allow null.
 - 'UriPolicy' is from 'dart:html'.
      {UriPolicy uriPolicy,
                 ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40001:24: Warning: Optional parameter 'attributes' doesn't have a default value and its type 'Iterable<String>' doesn't allow null.
 - 'Iterable' is from 'dart:core'.
      Iterable<String> attributes,
                       ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40002:24: Warning: Optional parameter 'uriAttributes' doesn't have a default value and its type 'Iterable<String>' doesn't allow null.
 - 'Iterable' is from 'dart:core'.
      Iterable<String> uriAttributes}) {
                       ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40018:18: Warning: Optional parameter 'uriPolicy' doesn't have a default value and its type 'UriPolicy' doesn't allow null.
 - 'UriPolicy' is from 'dart:html'.
      {UriPolicy uriPolicy,
                 ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40019:24: Warning: Optional parameter 'attributes' doesn't have a default value and its type 'Iterable<String>' doesn't allow null.
 - 'Iterable' is from 'dart:core'.
      Iterable<String> attributes,
                       ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40020:24: Warning: Optional parameter 'uriAttributes' doesn't have a default value and its type 'Iterable<String>' doesn't allow null.
 - 'Iterable' is from 'dart:core'.
      Iterable<String> uriAttributes}) {
                       ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40665:69: Warning: Optional parameter 'options' doesn't have a default value and its type 'Map<dynamic, dynamic>' doesn't allow null.
 - 'Map' is from 'dart:core'.
Function _registerCustomElement(context, document, String tag, [Map options]) {
                                                                    ^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40880:17: Warning: Optional parameter 'useCapture' doesn't have a default value and its type 'bool' doesn't allow null.
          [bool useCapture]) =>
                ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40893:17: Warning: Optional parameter 'useCapture' doesn't have a default value and its type 'bool' doesn't allow null.
          [bool useCapture]) =>
                ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/svg/dart2js/svg_dart2js.dart:3155:22: Warning: Optional parameter 'validator' doesn't have a default value and its type 'NodeValidator' doesn't allow null.
 - 'NodeValidator' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                     ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/svg/dart2js/svg_dart2js.dart:3155:51: Warning: Optional parameter 'treeSanitizer' doesn't have a default value and its type 'NodeTreeSanitizer' doesn't allow null.
 - 'NodeTreeSanitizer' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                                                  ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/svg/dart2js/svg_dart2js.dart:3184:22: Warning: Optional parameter 'validator' doesn't have a default value and its type 'NodeValidator' doesn't allow null.
 - 'NodeValidator' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                     ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/svg/dart2js/svg_dart2js.dart:3184:51: Warning: Optional parameter 'treeSanitizer' doesn't have a default value and its type 'NodeTreeSanitizer' doesn't allow null.
 - 'NodeTreeSanitizer' is from 'dart:html'.
      {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
                                                  ^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/web_audio/dart2js/web_audio_dart2js.dart:242:30: Warning: Optional parameter 'successCallback' doesn't have a default value and its type 'void Function(AudioBuffer)' doesn't allow null.
 - 'AudioBuffer' is from 'dart:web_audio'.
      [DecodeSuccessCallback successCallback,
                             ^^^^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/web_audio/dart2js/web_audio_dart2js.dart:243:27: Warning: Optional parameter 'errorCallback' doesn't have a default value and its type 'void Function(DomException)' doesn't allow null.
 - 'DomException' is from 'dart:html'.
      DecodeErrorCallback errorCallback]) native;
                          ^^^^^^^^^^^^^
dart:html: Warning: Assigning value of type 'Null?' to a variable of type 'List<dynamic>'.
 - 'List' is from 'dart:core'.
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/private/js_mirrors.dart:111:22: Warning: Assigning value of type 'Object?' to a variable of type 'Iterable<dynamic>'.
 - 'Object' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
  for (var member in publicMembers) {
                     ^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/private/js_mirrors.dart:117:22: Warning: Assigning value of type 'Object?' to a variable of type 'Iterable<dynamic>'.
 - 'Object' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
  for (var member in privateMembers) {
                     ^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/private/js_mirrors.dart:173:5: Warning: Assigning value of type 'TypeMirror' to a variable of type 'ClassMirror'.
 - 'TypeMirror' is from 'dart:mirrors'.
 - 'ClassMirror' is from 'dart:mirrors'.
    return reflectType(_runtimeType(reflectee));
    ^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/private/js_mirrors.dart:237:24: Warning: Assigning value of type 'Null?' to a variable of type 'ClassMirror'.
 - 'ClassMirror' is from 'dart:mirrors'.
  ClassMirror _mixin = null;
                       ^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/private/js_mirrors.dart:417:7: Warning: Assigning value of type 'List<TypeMirror>' to a variable of type 'List<ClassMirror>'.
 - 'List' is from 'dart:core'.
 - 'TypeMirror' is from 'dart:mirrors'.
 - 'ClassMirror' is from 'dart:mirrors'.
      return interfaces.map((t) => reflectType(t)).toList();
      ^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/private/js_mirrors.dart:444:7: Warning: Assigning value of type 'Null?' to a variable of type 'ClassMirror'.
 - 'ClassMirror' is from 'dart:mirrors'.
      return null;
      ^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/private/js_mirrors.dart:446:7: Warning: Assigning value of type 'TypeMirror' to a variable of type 'ClassMirror'.
 - 'TypeMirror' is from 'dart:mirrors'.
 - 'ClassMirror' is from 'dart:mirrors'.
      return reflectType(
      ^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/private/js_mirrors.dart:461:5: Warning: Assigning value of type 'TypeMirror' to a variable of type 'ClassMirror'.
 - 'TypeMirror' is from 'dart:mirrors'.
 - 'ClassMirror' is from 'dart:mirrors'.
    _mixin = reflectType(dart.wrapType(mixin));
    ^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/private/js_mirrors.dart:545:33: Warning: Assigning value of type 'Symbol?' to a variable of type 'Symbol'.
 - 'Symbol' is from 'dart:core'.
  Symbol get constructorName => isConstructor ? _symbol : null;
                                ^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/private/js_mirrors.dart:574:74: Warning: Assigning value of type 'Null?' to a variable of type 'ParameterMirror'.
 - 'ParameterMirror' is from 'dart:mirrors'.
    var params = List<ParameterMirror>.filled(args.length + opts.length, null);
                                                                         ^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/patch/mirrors_patch.dart:43:3: Warning: Assigning value of type 'TypeMirror' to a variable of type 'ClassMirror'.
 - 'TypeMirror' is from 'dart:mirrors'.
 - 'ClassMirror' is from 'dart:mirrors'.
  return (tm as ClassMirror).originalDeclaration;
  ^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/patch/mirrors_patch.dart:71:24: Warning: Assigning value of type 'Object' to a variable of type 'Null?'.
 - 'Object' is from 'dart:core'.
    unwrappedArgs[i] = dart.unwrapType(typeArguments[i]);
                       ^
org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/patch/mirrors_patch.dart:81:60: Warning: Assigning value of type 'List<Null?>' to a variable of type 'List<Object>'.
 - 'List' is from 'dart:core'.
 - 'Object' is from 'dart:core'.
  return dart.wrapType(dart.instantiateClass(genericClass, unwrappedArgs));
                                                           ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:2225:5: Warning: Assigning value of type 'Object' to a variable of type 'RenderingContext'.
 - 'Object' is from 'dart:core'.
 - 'RenderingContext' is from 'dart:web_gl'.
    return context;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:3239:22: Warning: Assigning value of type 'Event' to a variable of type 'CompositionEvent'.
 - 'Event' is from 'dart:html'.
 - 'CompositionEvent' is from 'dart:html'.
    CompositionEvent e = document._createEvent("CompositionEvent");
                     ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:8837:23: Warning: Assigning value of type 'Event' to a variable of type 'CustomEvent'.
 - 'Event' is from 'dart:html'.
 - 'CustomEvent' is from 'dart:html'.
    final CustomEvent e = document._createEvent('CustomEvent');
                      ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:9520:41: Warning: Assigning value of type 'void Function(Entry)?' to a variable of type 'void Function(Entry)'.
 - 'Entry' is from 'dart:html'.
      __getDirectory_1(path, options_1, successCallback, errorCallback);
                                        ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:9564:36: Warning: Assigning value of type 'void Function(Entry)?' to a variable of type 'void Function(Entry)'.
 - 'Entry' is from 'dart:html'.
      __getFile_1(path, options_1, successCallback, errorCallback);
                                   ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:10582:5: Warning: Assigning value of type 'Object?' to a variable of type 'String'.
 - 'Object' is from 'dart:core'.
    return errorName;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:11395:5: Warning: Assigning value of type 'Null?' to a variable of type 'Rectangle<num>'.
 - 'Rectangle' is from 'dart:math'.
    return null;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:11629:24: Warning: Assigning value of type 'List<Node>' to a variable of type 'HtmlCollection'.
 - 'List' is from 'dart:core'.
 - 'Node' is from 'dart:html'.
 - 'HtmlCollection' is from 'dart:html'.
      : _childElements = element._children,
                       ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:11643:5: Warning: Assigning value of type 'Node' to a variable of type 'Element'.
 - 'Node' is from 'dart:html'.
 - 'Element' is from 'dart:html'.
    return _childElements[index];
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:11762:13: Warning: Assigning value of type 'Element?' to a variable of type 'Element'.
 - 'Element' is from 'dart:html'.
    Element result = _element._firstElementChild;
            ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:11768:13: Warning: Assigning value of type 'Element?' to a variable of type 'Element'.
 - 'Element' is from 'dart:html'.
    Element result = _element._lastElementChild;
            ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:12174:31: Warning: Assigning value of type 'Node' to a variable of type 'E'.
 - 'Node' is from 'dart:html'.
  E operator [](int index) => _nodeList[index];
                              ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:12192:18: Warning: Assigning value of type 'Node' to a variable of type 'E'.
 - 'Node' is from 'dart:html'.
  E get first => _nodeList.first;
                 ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:12194:17: Warning: Assigning value of type 'Node' to a variable of type 'E'.
 - 'Node' is from 'dart:html'.
  E get last => _nodeList.last;
                ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:12196:19: Warning: Assigning value of type 'Node' to a variable of type 'E'.
 - 'Node' is from 'dart:html'.
  E get single => _nodeList.single;
                  ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:12608:5: Warning: Assigning value of type 'Node' to a variable of type 'Element'.
 - 'Node' is from 'dart:html'.
 - 'Element' is from 'dart:html'.
    return fragment.nodes.where((e) => e is Element).single;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:12817:30: Warning: Assigning value of type 'String?' to a variable of type 'String'.
      attributes[key] = value[key];
                             ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:12991:24: Warning: Assigning value of type 'String?' to a variable of type 'String'.
      data[key] = value[key];
                       ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13066:60: Warning: Assigning value of type 'Null?' to a variable of type 'String'.
    var e = _ElementFactoryProvider.createElement_tag(tag, null);
                                                           ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13180:30: Warning: Assigning value of type 'String?' to a variable of type 'String'.
  String get namespaceUri => _namespaceUri;
                             ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13342:25: Warning: Method 'insertBefore' is called on 'Node?' which is potentially null.
 - 'Node' is from 'dart:html'.
Try calling using ?. instead.
        this.parentNode.insertBefore(node, this);
                        ^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13352:25: Warning: Method 'insertBefore' is called on 'Node?' which is potentially null.
 - 'Node' is from 'dart:html'.
Try calling using ?. instead.
        this.parentNode.insertBefore(node, this.nextNode);
                        ^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13383:7: Warning: Assigning value of type 'Element?' to a variable of type 'Element'.
 - 'Element' is from 'dart:html'.
      elem = elem.parent;
      ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13498:49: Warning: Assigning value of type 'Element?' to a variable of type 'Element'.
 - 'Element' is from 'dart:html'.
  Point get documentOffset => offsetTo(document.documentElement);
                                                ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:13590:22: Warning: Assigning value of type 'Element' to a variable of type 'BodyElement'.
 - 'Element' is from 'dart:html'.
 - 'BodyElement' is from 'dart:html'.
      _parseDocument.body = _parseDocument.createElement("body");
                     ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:15453:13: Warning: Assigning value of type 'EventTarget?' to a variable of type 'Element'.
 - 'EventTarget' is from 'dart:html'.
 - 'Element' is from 'dart:html'.
    Element currentTarget = this.currentTarget;
            ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:15454:13: Warning: Assigning value of type 'EventTarget?' to a variable of type 'Element'.
 - 'EventTarget' is from 'dart:html'.
 - 'Element' is from 'dart:html'.
    Element target = this.target;
            ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:15458:7: Warning: Assigning value of type 'Element?' to a variable of type 'Element'.
 - 'Element' is from 'dart:html'.
      target = target.parent;
      ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:16127:5: Warning: Assigning value of type 'Object?' to a variable of type 'Object'.
 - 'Object' is from 'dart:core'.
    return res;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:16933:48: Warning: Assigning value of type 'void Function(PositionError)?' to a variable of type 'void Function(PositionError)'.
 - 'PositionError' is from 'dart:html'.
      _getCurrentPosition_1(successCallback_1, errorCallback, options_2);
                                               ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:16960:50: Warning: Assigning value of type 'void Function(PositionError)?' to a variable of type 'void Function(PositionError)'.
 - 'PositionError' is from 'dart:html'.
      return _watchPosition_1(successCallback_1, errorCallback, options_2);
                                                 ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:17681:27: Warning: Assigning value of type 'HeadElement?' to a variable of type 'HeadElement'.
 - 'HeadElement' is from 'dart:html'.
  HeadElement get head => _head;
                          ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:17685:40: Warning: Assigning value of type 'String?' to a variable of type 'String'.
  String get preferredStylesheetSet => _preferredStylesheetSet;
                                       ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:17689:39: Warning: Assigning value of type 'String?' to a variable of type 'String'.
  String get selectedStylesheetSet => _selectedStylesheetSet;
                                      ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18015:30: Warning: Assigning value of type 'bool?' to a variable of type 'bool'.
            withCredentials: withCredentials, onProgress: onProgress)
                             ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18015:59: Warning: Assigning value of type 'void Function(ProgressEvent)?' to a variable of type 'void Function(ProgressEvent)'.
 - 'ProgressEvent' is from 'dart:html'.
            withCredentials: withCredentials, onProgress: onProgress)
                                                          ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:18254:30: Warning: Assigning value of type 'Object?' to a variable of type 'FutureOr<String>?'.
 - 'Object' is from 'dart:core'.
 - 'FutureOr' is from 'dart:async'.
          completer.complete(response);
                             ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:19154:18: Warning: Assigning value of type 'Element' to a variable of type 'InputElement'.
 - 'Element' is from 'dart:html'.
 - 'InputElement' is from 'dart:html'.
    InputElement e = document.createElement("input");
                 ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:20087:19: Warning: Assigning value of type 'Event' to a variable of type 'KeyboardEvent'.
 - 'Event' is from 'dart:html'.
 - 'KeyboardEvent' is from 'dart:html'.
    KeyboardEvent e = document._createEvent("KeyboardEvent");
                  ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:21690:18: Warning: Assigning value of type 'Event' to a variable of type 'MessageEvent'.
 - 'Event' is from 'dart:html'.
 - 'MessageEvent' is from 'dart:html'.
    MessageEvent event = document._createEvent("MessageEvent");
                 ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:22361:16: Warning: Assigning value of type 'Event' to a variable of type 'MouseEvent'.
 - 'Event' is from 'dart:html'.
 - 'MouseEvent' is from 'dart:html'.
    MouseEvent event = document._createEvent('MouseEvent');
               ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:22537:24: Warning: Assigning value of type 'Object?' to a variable of type 'num'.
 - 'Object' is from 'dart:core'.
      return new Point(x, y);
                       ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:22537:27: Warning: Assigning value of type 'Object?' to a variable of type 'num'.
 - 'Object' is from 'dart:core'.
      return new Point(x, y);
                          ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:22543:15: Warning: Assigning value of type 'EventTarget?' to a variable of type 'Element'.
 - 'EventTarget' is from 'dart:html'.
 - 'Element' is from 'dart:html'.
      Element target = this.target;
              ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:23208:40: Warning: Assigning value of type 'Node?' to a variable of type 'Node'.
 - 'Node' is from 'dart:html'.
          _this.append(otherList._this.firstChild);
                                       ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:23270:10: Warning: Assigning value of type 'Node?' to a variable of type 'Node'.
 - 'Node' is from 'dart:html'.
    Node child = _this.firstChild;
         ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:23272:12: Warning: Assigning value of type 'Node?' to a variable of type 'Node'.
 - 'Node' is from 'dart:html'.
      Node nextChild = child.nextNode;
           ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:23367:18: Warning: Assigning value of type 'Node?' to a variable of type 'Node'.
 - 'Node' is from 'dart:html'.
      final Node parent = this.parentNode;
                 ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:23368:18: Warning: Method '_removeChild' is called on 'Node?' which is potentially null.
 - 'Node' is from 'dart:html'.
Try calling using ?. instead.
      parentNode._removeChild(this);
                 ^^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:23377:18: Warning: Assigning value of type 'Node?' to a variable of type 'Node'.
 - 'Node' is from 'dart:html'.
      final Node parent = this.parentNode;
                 ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:23400:43: Warning: Assigning value of type 'Node?' to a variable of type 'Node'.
 - 'Node' is from 'dart:html'.
        this.insertBefore(otherList._this.firstChild, refChild);
                                          ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:23411:20: Warning: Assigning value of type 'Node?' to a variable of type 'Node'.
 - 'Node' is from 'dart:html'.
      _removeChild(firstChild);
                   ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:23419:12: Warning: Assigning value of type 'String?' to a variable of type 'String'.
    String value = nodeValue; // Fetch DOM Node property once.
           ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:23728:59: Warning: Assigning value of type 'Null?' to a variable of type 'NodeFilter'.
 - 'NodeFilter' is from 'dart:html'.
    return document._createNodeIterator(root, whatToShow, null);
                                                          ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:23863:20: Warning: Assigning value of type 'Null?' to a variable of type 'String'.
      {String dir: null,
                   ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:23864:20: Warning: Assigning value of type 'Null?' to a variable of type 'String'.
      String body: null,
                   ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:23865:20: Warning: Assigning value of type 'Null?' to a variable of type 'String'.
      String lang: null,
                   ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:23866:19: Warning: Assigning value of type 'Null?' to a variable of type 'String'.
      String tag: null,
                  ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:23867:20: Warning: Assigning value of type 'Null?' to a variable of type 'String'.
      String icon: null}) {
                   ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:26570:43: Warning: Assigning value of type 'num' to a variable of type 'int'.
      document._caretRangeFromPoint(point.x, point.y);
                                          ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:26570:52: Warning: Assigning value of type 'num' to a variable of type 'int'.
      document._caretRangeFromPoint(point.x, point.y);
                                                   ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:29376:45: Warning: Assigning value of type 'Object?' to a variable of type 'String'.
 - 'Object' is from 'dart:core'.
  bool containsKey(Object? key) => _getItem(key) != null;
                                            ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:29386:5: Warning: Assigning value of type 'String?' to a variable of type 'String'.
    return this[key];
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:29391:17: Warning: Assigning value of type 'Object?' to a variable of type 'String'.
 - 'Object' is from 'dart:core'.
    _removeItem(key);
                ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:29402:18: Warning: Assigning value of type 'String?' to a variable of type 'String'.
      f(key, this[key]);
                 ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:29470:18: Warning: Assigning value of type 'Event' to a variable of type 'StorageEvent'.
 - 'Event' is from 'dart:html'.
 - 'StorageEvent' is from 'dart:html'.
    StorageEvent e = document._createEvent("StorageEvent");
                 ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:29828:5: Warning: Assigning value of type 'Element' to a variable of type 'TableSectionElement'.
 - 'Element' is from 'dart:html'.
 - 'TableSectionElement' is from 'dart:html'.
    return tbody;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:29916:45: Warning: Assigning value of type 'HtmlElement' to a variable of type 'TableCellElement'.
 - 'HtmlElement' is from 'dart:html'.
 - 'TableCellElement' is from 'dart:html'.
  TableCellElement insertCell(int index) => _insertCell(index);
                                            ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:29979:43: Warning: Assigning value of type 'HtmlElement' to a variable of type 'TableRowElement'.
 - 'HtmlElement' is from 'dart:html'.
 - 'TableRowElement' is from 'dart:html'.
  TableRowElement insertRow(int index) => _insertRow(index);
                                          ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:30311:15: Warning: Assigning value of type 'Event' to a variable of type 'TextEvent'.
 - 'Event' is from 'dart:html'.
 - 'TextEvent' is from 'dart:html'.
    TextEvent e = document._createEvent("TextEvent");
              ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:30825:26: Warning: Assigning value of type 'Null?' to a variable of type 'TouchList'.
 - 'TouchList' is from 'dart:html'.
  factory TouchList() => null; //document._createTouchList();
                         ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:31084:57: Warning: Assigning value of type 'Null?' to a variable of type 'NodeFilter'.
 - 'NodeFilter' is from 'dart:html'.
    return document._createTreeWalker(root, whatToShow, null);
                                                        ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:31182:13: Warning: Assigning value of type 'Event' to a variable of type 'UIEvent'.
 - 'Event' is from 'dart:html'.
 - 'UIEvent' is from 'dart:html'.
    UIEvent e = document._createEvent("UIEvent");
            ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:34222:15: Warning: Assigning value of type 'num' to a variable of type 'int'.
    _moveTo(p.x, p.y);
              ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:34222:20: Warning: Assigning value of type 'num' to a variable of type 'int'.
    _moveTo(p.x, p.y);
                   ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:34260:34: Warning: Property 'scrollLeft' is accessed on 'Element?' which is potentially null.
 - 'Element' is from 'dart:html'.
Try accessing using ?. instead.
      : document.documentElement.scrollLeft;
                                 ^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:34274:34: Warning: Property 'scrollTop' is accessed on 'Element?' which is potentially null.
 - 'Element' is from 'dart:html'.
Try accessing using ?. instead.
      : document.documentElement.scrollTop;
                                 ^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:35143:5: Warning: Assigning value of type 'Null?' to a variable of type 'Rectangle<num>'.
 - 'Rectangle' is from 'dart:math'.
    return null;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:36307:5: Warning: Assigning value of type 'String?' to a variable of type 'String'.
    return this[key];
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:36319:14: Warning: Assigning value of type 'String?' to a variable of type 'String'.
      f(key, value);
             ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:36328:13: Warning: Assigning value of type 'Node' to a variable of type '_Attr'.
 - 'Node' is from 'dart:html'.
 - '_Attr' is from 'dart:html'.
      _Attr attr = attributes[i];
            ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:36341:13: Warning: Assigning value of type 'Node' to a variable of type '_Attr'.
 - 'Node' is from 'dart:html'.
 - '_Attr' is from 'dart:html'.
      _Attr attr = attributes[i];
            ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:36374:35: Warning: Assigning value of type 'Object?' to a variable of type 'String'.
 - 'Object' is from 'dart:core'.
    return _element._hasAttribute(key);
                                  ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:36378:34: Warning: Assigning value of type 'Object?' to a variable of type 'String'.
 - 'Object' is from 'dart:core'.
    return _element.getAttribute(key);
                                 ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:36422:49: Warning: Assigning value of type 'Object?' to a variable of type 'String'.
 - 'Object' is from 'dart:core'.
    return _element._hasAttributeNS(_namespace, key);
                                                ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:36426:48: Warning: Assigning value of type 'Object?' to a variable of type 'String'.
 - 'Object' is from 'dart:core'.
    return _element.getAttributeNS(_namespace, key);
                                               ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:36485:66: Warning: Assigning value of type 'Object?' to a variable of type 'String'.
 - 'Object' is from 'dart:core'.
  bool containsKey(Object? key) => _attributes.containsKey(_attr(key));
                                                                 ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:36487:57: Warning: Assigning value of type 'Object?' to a variable of type 'String'.
 - 'Object' is from 'dart:core'.
  String? operator [](Object? key) => _attributes[_attr(key)];
                                                        ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:36496:59: Warning: Assigning value of type 'Object?' to a variable of type 'String'.
 - 'Object' is from 'dart:core'.
  String? remove(Object? key) => _attributes.remove(_attr(key));
                                                          ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:37188:5: Warning: Assigning value of type 'Null?' to a variable of type 'Rectangle<num>'.
 - 'Rectangle' is from 'dart:math'.
    return null;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:37348:32: Warning: Assigning value of type 'Object?' to a variable of type 'Object'.
 - 'Object' is from 'dart:core'.
    return _contains(_element, value);
                               ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:37368:26: Warning: Assigning value of type 'Iterable<Object?>' to a variable of type 'Iterable<Object>'.
 - 'Iterable' is from 'dart:core'.
 - 'Object' is from 'dart:core'.
    _removeAll(_element, iterable);
                         ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:37442:5: Warning: Assigning value of type 'Object' to a variable of type 'String'.
 - 'Object' is from 'dart:core'.
    for (String value in iterable) {
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:37736:40: Warning: Assigning value of type 'void Function(T)?' to a variable of type 'void Function(T)'.
        this._target, this._eventType, onData, this._useCapture);
                                       ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:37832:17: Warning: Assigning value of type 'void Function(Event)?' to a variable of type 'dynamic Function(Event)'.
 - 'Event' is from 'dart:html'.
      : _onData = onData == null
                ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:37839:20: Warning: Assigning value of type 'Null?' to a variable of type 'Future<dynamic>'.
 - 'Future' is from 'dart:async'.
    if (_canceled) return null;
                   ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:37843:5: Warning: Assigning value of type 'Null?' to a variable of type 'EventTarget'.
 - 'EventTarget' is from 'dart:html'.
    _target = null;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:37844:5: Warning: Assigning value of type 'Null?' to a variable of type 'dynamic Function(Event)'.
 - 'Event' is from 'dart:html'.
    _onData = null;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:37845:5: Warning: Assigning value of type 'Null?' to a variable of type 'Future<dynamic>'.
 - 'Future' is from 'dart:async'.
    return null;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:37856:32: Warning: Assigning value of type 'void Function(T)?' to a variable of type 'void Function(Event)'.
 - 'Event' is from 'dart:html'.
    _onData = _wrapZone<Event>(handleData);
                               ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:39511:17: Warning: Assigning value of type 'Null?' to a variable of type 'EventTarget'.
 - 'EventTarget' is from 'dart:html'.
        _target = null,
                ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:39771:9: Warning: Assigning value of type 'int?' to a variable of type 'int'.
      e._shadowKeyCode = _keyIdentifier[e._shadowKeyIdentifier];
        ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:39780:19: Warning: Assigning value of type 'Null?' to a variable of type 'KeyboardEvent'.
 - 'KeyboardEvent' is from 'dart:html'.
    KeyboardEvent toRemove = null;
                  ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:39944:34: Warning: Assigning value of type 'Null?' to a variable of type 'UriPolicy'.
 - 'UriPolicy' is from 'dart:html'.
    add(new _SimpleNodeValidator(null, allowedAttributes: ['$tagName::style']));
                                 ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:39988:36: Warning: Assigning value of type 'Iterable<String>?' to a variable of type 'Iterable<String>'.
 - 'Iterable' is from 'dart:core'.
        uriPolicy, [tagNameUpper], attrs, uriAttrs, false, true));
                                   ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:39988:43: Warning: Assigning value of type 'Iterable<String>?' to a variable of type 'Iterable<String>'.
 - 'Iterable' is from 'dart:core'.
        uriPolicy, [tagNameUpper], attrs, uriAttrs, false, true));
                                          ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40014:40: Warning: Assigning value of type 'Iterable<String>?' to a variable of type 'Iterable<String>'.
 - 'Iterable' is from 'dart:core'.
        [tagNameUpper, baseNameUpper], attrs, uriAttrs, true, false));
                                       ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40014:47: Warning: Assigning value of type 'Iterable<String>?' to a variable of type 'Iterable<String>'.
 - 'Iterable' is from 'dart:core'.
        [tagNameUpper, baseNameUpper], attrs, uriAttrs, true, false));
                                              ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40110:37: Warning: Assigning value of type 'Null?' to a variable of type 'UriPolicy'.
 - 'UriPolicy' is from 'dart:html'.
    return new _SimpleNodeValidator(null, allowedElements: const [
                                    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40231:15: Warning: Assigning value of type 'Null?' to a variable of type 'UriPolicy'.
 - 'UriPolicy' is from 'dart:html'.
        super(null,
              ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40336:31: Warning: Assigning value of type 'Node' to a variable of type 'E'.
 - 'Node' is from 'dart:html'.
  E operator [](int index) => _list[index];
                              ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40348:44: Warning: Assigning value of type 'Node' to a variable of type 'E'.
 - 'Node' is from 'dart:html'.
    _list.sort((Node a, Node b) => compare(a, b));
                                           ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40348:47: Warning: Assigning value of type 'Node' to a variable of type 'E'.
 - 'Node' is from 'dart:html'.
    _list.sort((Node a, Node b) => compare(a, b));
                                              ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40348:43: Warning: Method 'call' is called on 'int Function(E, E)?' which is potentially null.
Try calling using ?. instead.
    _list.sort((Node a, Node b) => compare(a, b));
                                          ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40348:43: Warning: Expression of type 'int Function(E, E)?' is used as a function, but it's potentially null.
Try calling using ?.call instead.
    _list.sort((Node a, Node b) => compare(a, b));
                                          ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40351:65: Warning: Assigning value of type 'Object' to a variable of type 'Node'.
 - 'Object' is from 'dart:core'.
 - 'Node' is from 'dart:html'.
  int indexOf(Object element, [int start = 0]) => _list.indexOf(element, start);
                                                                ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40354:25: Warning: Assigning value of type 'Object' to a variable of type 'Node'.
 - 'Object' is from 'dart:core'.
 - 'Node' is from 'dart:html'.
      _list.lastIndexOf(element, start);
                        ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40358:28: Warning: Assigning value of type 'Node' to a variable of type 'E'.
 - 'Node' is from 'dart:html'.
  E removeAt(int index) => _list.removeAt(index);
                           ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40440:5: Warning: Assigning value of type 'Null?' to a variable of type 'T'.
    _current = null;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40465:5: Warning: Assigning value of type 'Null?' to a variable of type 'T'.
    _current = null;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40483:7: Warning: Assigning value of type 'MemoryInfo?' to a variable of type 'MemoryInfo'.
 - 'MemoryInfo' is from 'dart:html'.
      _isConsoleDefined ? JS('MemoryInfo', 'window.console.memory') : null;
      ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40563:20: Warning: Assigning value of type 'Null?' to a variable of type 'WindowBase'.
 - 'WindowBase' is from 'dart:html'.
  if (win == null) return null;
                   ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40569:5: Warning: Assigning value of type 'Null?' to a variable of type 'EventTarget'.
 - 'EventTarget' is from 'dart:html'.
    return null;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:40580:5: Warning: Assigning value of type 'Null?' to a variable of type 'EventTarget'.
 - 'EventTarget' is from 'dart:html'.
    return null;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:41031:5: Warning: Assigning value of type 'EventTarget?' to a variable of type 'EventTarget'.
 - 'EventTarget' is from 'dart:html'.
    _currentTarget = _parent.currentTarget;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:41147:22: Warning: Assigning value of type 'WindowBase?' to a variable of type 'Window'.
 - 'WindowBase' is from 'dart:html'.
 - 'Window' is from 'dart:html'.
  Window get view => _parent.view;
                     ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:41224:36: Warning: Assigning value of type 'EventTarget?' to a variable of type 'EventTarget'.
 - 'EventTarget' is from 'dart:html'.
  EventTarget get currentTarget => wrapped.currentTarget;
                                   ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:41232:29: Warning: Assigning value of type 'EventTarget?' to a variable of type 'EventTarget'.
 - 'EventTarget' is from 'dart:html'.
  EventTarget get target => wrapped.target;
                            ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:41234:27: Warning: Assigning value of type 'num' to a variable of type 'double'.
  double get timeStamp => wrapped.timeStamp;
                          ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:41266:13: Warning: Assigning value of type 'EventTarget' to a variable of type 'Element'.
 - 'EventTarget' is from 'dart:html'.
 - 'Element' is from 'dart:html'.
    Element currentTarget = this.currentTarget;
            ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:41267:13: Warning: Assigning value of type 'EventTarget' to a variable of type 'Element'.
 - 'EventTarget' is from 'dart:html'.
 - 'Element' is from 'dart:html'.
    Element target = this.target;
            ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:41271:7: Warning: Assigning value of type 'Element?' to a variable of type 'Element'.
 - 'Element' is from 'dart:html'.
      target = target.parent;
      ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:41286:26: Warning: Assigning value of type 'List<EventTarget>' to a variable of type 'List<Node>'.
 - 'List' is from 'dart:core'.
 - 'EventTarget' is from 'dart:html'.
 - 'Node' is from 'dart:html'.
  List<Node> get path => wrapped.path;
                         ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:41299:25: Warning: Assigning value of type 'Null?' to a variable of type 'void Function(T)'.
  if (callback == null) return null;
                        ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:41306:25: Warning: Assigning value of type 'Null?' to a variable of type 'void Function(T1, T2)'.
  if (callback == null) return null;
                        ^
org-dartlang-sdk:///sdk_nnbd/lib/html/dart2js/html_dart2js.dart:41538:16: Warning: Assigning value of type 'Null?' to a variable of type 'Node'.
 - 'Node' is from 'dart:html'.
    walk(node, null);
               ^
org-dartlang-sdk:///sdk_nnbd/lib/svg/dart2js/svg_dart2js.dart:33:5: Warning: Assigning value of type 'Element' to a variable of type 'SvgElement'.
 - 'Element' is from 'dart:html'.
 - 'SvgElement' is from 'dart:svg'.
    return temp;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/svg/dart2js/svg_dart2js.dart:3107:7: Warning: Assigning value of type 'Element' to a variable of type 'SvgElement'.
 - 'Element' is from 'dart:html'.
 - 'SvgElement' is from 'dart:svg'.
      document.createElementNS("http://www.w3.org/2000/svg", tag);
      ^
org-dartlang-sdk:///sdk_nnbd/lib/svg/dart2js/svg_dart2js.dart:3116:41: Warning: Method 'toLowerCase' is called on 'String?' which is potentially null.
Try calling using ?. instead.
    if (match != null && match.group(1).toLowerCase() == 'svg') {
                                        ^^^^^^^^^^^
org-dartlang-sdk:///sdk_nnbd/lib/svg/dart2js/svg_dart2js.dart:3138:22: Warning: Assigning value of type 'Node' to a variable of type 'SvgElement'.
 - 'Node' is from 'dart:html'.
 - 'SvgElement' is from 'dart:svg'.
    final SvgElement cloned = this.clone(true);
                     ^
org-dartlang-sdk:///sdk_nnbd/lib/svg/dart2js/svg_dart2js.dart:3145:22: Warning: Assigning value of type 'Node' to a variable of type 'SvgElement'.
 - 'Node' is from 'dart:html'.
 - 'SvgElement' is from 'dart:svg'.
    final SvgElement cloned = this.clone(true);
                     ^
org-dartlang-sdk:///sdk_nnbd/lib/svg/dart2js/svg_dart2js.dart:3172:31: Warning: Assigning value of type 'Node?' to a variable of type 'Node'.
 - 'Node' is from 'dart:html'.
      svgFragment.append(root.firstChild);
                              ^
org-dartlang-sdk:///sdk_nnbd/lib/svg/dart2js/svg_dart2js.dart:3557:5: Warning: Assigning value of type 'SvgElement' to a variable of type 'SvgSvgElement'.
 - 'SvgElement' is from 'dart:svg'.
 - 'SvgSvgElement' is from 'dart:svg'.
    return el;
    ^
org-dartlang-sdk:///sdk_nnbd/lib/web_audio/dart2js/web_audio_dart2js.dart:249:7: Warning: Assigning value of type 'Future<dynamic>' to a variable of type 'Future<AudioBuffer>'.
 - 'Future' is from 'dart:async'.
 - 'AudioBuffer' is from 'dart:web_audio'.
      return _decodeAudioData(audioData, successCallback, errorCallback);
      ^

NNBD P1 area-web type-bug

All 10 comments

@srujzs After you have cleaned up the analysis errors in dart:html we should use this feature to check that there are not any CFE failures left over.

Got it, I'll have the bot update this bug once dart:html is landed.

HTML errors are gone (on analyzer side), but still some others:

https://dart-review.googlesource.com/c/sdk/+/134860

I'm going to unblock this since it's not blocked by 37931 completely. It's only blocked by the analyzer errors, which have been resolved.

html is clean now. I tried turning this as part of: https://dart-review.googlesource.com/c/sdk/+/134562

I'm hitting the following incorrect errors / traces:

org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/patch/internal_patch.dart:16:44: Warning: Non-nullable variable 'name' is used before it's assigned.
  const Symbol(String name) : this._name = name;
                                           ^^^^
stream
dart.async::StreamView::_stream = stream
null
Unhandled exception:
Crash when compiling dart:_runtime/utils.dart,
at character offset null:
RangeError (offset): Invalid value: Not in range 0..4425, inclusive: 64801
#0      RangeError.checkValueInInterval (dart:core/errors.dart:283:7)
#1      Source.getLocation (package:kernel/ast.dart:7597:16)
#2      getLocation (package:front_end/src/fasta/messages.dart:16:52)
#3      ProcessedOptions.format (package:front_end/src/base/processed_options.dart:209:47)
#4      ProcessedOptions.report (package:front_end/src/base/processed_options.dart:232:29)
#5      CompilerContext.report (package:front_end/src/fasta/compiler_context.dart:69:13)
#6      Loader.addMessage (package:front_end/src/fasta/loader.dart:330:20)
#7      Loader.addProblem (package:front_end/src/fasta/loader.dart:292:12)
#8      LibraryBuilderImpl.addProblem (package:front_end/src/fasta/builder/library_builder.dart:284:19)
#9      SourceLibraryBuilder.addProblem (package:front_end/src/fasta/source/source_library_builder.dart:1402:47)
#10     InferenceVisitor.visitVariableGet (package:front_end/src/fasta/kernel/inference_visitor.dart:5498:30)

org-dartlang-sdk:///sdk_nnbd/lib/_internal/js_dev_runtime/patch/internal_patch.dart:16:44: Warning: Non-nullable variable 'name' is used before it's assigned.
  const Symbol(String name) : this._name = name;
                                           ^^^^

If I hack around that, I also see:

org-dartlang-sdk:///sdk_nnbd/lib/developer/developer.dart:52:52: Warning: Operand of null-aware operation '??' has type 'double' which excludes null.
/// - [level] (optional) is the severity level (a value between 0 and 2000); see
                                                   ^
Unhandled exception:
Crash when compiling org-dartlang-sdk:///sdk_nnbd/lib/io/secure_socket.dart,
at character offset 26993:
RangeError (offset): Invalid value: Not in range 0..8022, inclusive: 27543
#0      RangeError.checkValueInInterval (dart:core/errors.dart:283:7)
#1      Source.getLocation (package:kernel/ast.dart:7597:16)
#2      getLocation (package:front_end/src/fasta/messages.dart:16:52)
#3      ProcessedOptions.format (package:front_end/src/base/processed_options.dart:209:47)
#4      ProcessedOptions.report (package:front_end/src/base/processed_options.dart:232:29)
#5      CompilerContext.report (package:front_end/src/fasta/compiler_context.dart:69:13)
#6      Loader.addMessage (package:front_end/src/fasta/loader.dart:330:20)
#7      Loader.addProblem (package:front_end/src/fasta/loader.dart:292:12)
#8      LibraryBuilderImpl.addProblem (package:front_end/src/fasta/builder/library_builder.dart:284:19)
#9      SourceLibraryBuilder.addProblem (package:front_end/src/fasta/source/source_library_builder.dart:1402:47)
#10     InferenceVisitor.reportNonNullableInNullAwareWarningIfNeeded (package:front_end/src/fasta/kernel/inference_visitor.dart:5737:26)
#11     InferenceVisitor.visitIfNullSet (package:front_end/src/fasta/kernel/inference_visitor.dart:2662:5)

_EDIT: I accidentally sent the comment before I was done writing._

@johnniwinther @stefantsov I tried running the compile_platform script as you described above and we are getting a lot of warnings of the from the SDK and patch files but then it fails with an error:

Error: SDK summary not found: out/ReleaseX64NNBD/vm_outline_strong.dill.

I'm not sure about the status of the VM and what we should expect to be available yet has this changed?

Many of the warnings we see are of the following form and might be some low hanging fruit for cleanup:

test_05.dart:14:41: Warning: Non-nullable variable 'name' is used before it's assigned.
  const Foo(String name) : this._name = name;
                                        ^^^^

I played around a little and the warning goes away if you remove the const from the constructor.

Any update on this issue?

AFAIK we can safely close this issue because all CFE errors have been enabled and we can build without any errors. @johnniwinther can you confirm?

The DDC sdk is built without errors so I'll close this issue.

Was this page helpful?
0 / 5 - 0 ratings