diff --git a/dwds/CHANGELOG.md b/dwds/CHANGELOG.md index 18c2f37df..7b78c142e 100644 --- a/dwds/CHANGELOG.md +++ b/dwds/CHANGELOG.md @@ -1,4 +1,4 @@ -## 14.0.3-dev +## 14.0.3 - Make data types null safe. - Update `package:vm_service` to 8.3.0. - Convert JavaScript stack traces in uncaught exceptions to Dart stack traces. diff --git a/dwds/lib/data/build_result.g.dart b/dwds/lib/data/build_result.g.dart index 24bf341d6..33661bbf0 100644 --- a/dwds/lib/data/build_result.g.dart +++ b/dwds/lib/data/build_result.g.dart @@ -98,7 +98,7 @@ class _$BuildResult extends BuildResult { (new BuildResultBuilder()..update(updates))._build(); _$BuildResult._({required this.status}) : super._() { - BuiltValueNullFieldError.checkNotNull(status, 'BuildResult', 'status'); + BuiltValueNullFieldError.checkNotNull(status, r'BuildResult', 'status'); } @override @@ -121,7 +121,7 @@ class _$BuildResult extends BuildResult { @override String toString() { - return (newBuiltValueToStringHelper('BuildResult')..add('status', status)) + return (newBuiltValueToStringHelper(r'BuildResult')..add('status', status)) .toString(); } } @@ -162,10 +162,10 @@ class BuildResultBuilder implements Builder { final _$result = _$v ?? new _$BuildResult._( status: BuiltValueNullFieldError.checkNotNull( - status, 'BuildResult', 'status')); + status, r'BuildResult', 'status')); replace(_$result); return _$result; } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/dwds/lib/data/connect_request.g.dart b/dwds/lib/data/connect_request.g.dart index aa1076516..5e7a4c858 100644 --- a/dwds/lib/data/connect_request.g.dart +++ b/dwds/lib/data/connect_request.g.dart @@ -81,11 +81,11 @@ class _$ConnectRequest extends ConnectRequest { required this.instanceId, required this.entrypointPath}) : super._() { - BuiltValueNullFieldError.checkNotNull(appId, 'ConnectRequest', 'appId'); + BuiltValueNullFieldError.checkNotNull(appId, r'ConnectRequest', 'appId'); BuiltValueNullFieldError.checkNotNull( - instanceId, 'ConnectRequest', 'instanceId'); + instanceId, r'ConnectRequest', 'instanceId'); BuiltValueNullFieldError.checkNotNull( - entrypointPath, 'ConnectRequest', 'entrypointPath'); + entrypointPath, r'ConnectRequest', 'entrypointPath'); } @override @@ -113,7 +113,7 @@ class _$ConnectRequest extends ConnectRequest { @override String toString() { - return (newBuiltValueToStringHelper('ConnectRequest') + return (newBuiltValueToStringHelper(r'ConnectRequest') ..add('appId', appId) ..add('instanceId', instanceId) ..add('entrypointPath', entrypointPath)) @@ -169,14 +169,14 @@ class ConnectRequestBuilder final _$result = _$v ?? new _$ConnectRequest._( appId: BuiltValueNullFieldError.checkNotNull( - appId, 'ConnectRequest', 'appId'), + appId, r'ConnectRequest', 'appId'), instanceId: BuiltValueNullFieldError.checkNotNull( - instanceId, 'ConnectRequest', 'instanceId'), + instanceId, r'ConnectRequest', 'instanceId'), entrypointPath: BuiltValueNullFieldError.checkNotNull( - entrypointPath, 'ConnectRequest', 'entrypointPath')); + entrypointPath, r'ConnectRequest', 'entrypointPath')); replace(_$result); return _$result; } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/dwds/lib/data/debug_event.g.dart b/dwds/lib/data/debug_event.g.dart index b38ec2871..04d2467ec 100644 --- a/dwds/lib/data/debug_event.g.dart +++ b/dwds/lib/data/debug_event.g.dart @@ -123,9 +123,11 @@ class _$DebugEvent extends DebugEvent { _$DebugEvent._( {required this.kind, required this.eventData, required this.timestamp}) : super._() { - BuiltValueNullFieldError.checkNotNull(kind, 'DebugEvent', 'kind'); - BuiltValueNullFieldError.checkNotNull(eventData, 'DebugEvent', 'eventData'); - BuiltValueNullFieldError.checkNotNull(timestamp, 'DebugEvent', 'timestamp'); + BuiltValueNullFieldError.checkNotNull(kind, r'DebugEvent', 'kind'); + BuiltValueNullFieldError.checkNotNull( + eventData, r'DebugEvent', 'eventData'); + BuiltValueNullFieldError.checkNotNull( + timestamp, r'DebugEvent', 'timestamp'); } @override @@ -152,7 +154,7 @@ class _$DebugEvent extends DebugEvent { @override String toString() { - return (newBuiltValueToStringHelper('DebugEvent') + return (newBuiltValueToStringHelper(r'DebugEvent') ..add('kind', kind) ..add('eventData', eventData) ..add('timestamp', timestamp)) @@ -206,11 +208,11 @@ class DebugEventBuilder implements Builder { final _$result = _$v ?? new _$DebugEvent._( kind: BuiltValueNullFieldError.checkNotNull( - kind, 'DebugEvent', 'kind'), + kind, r'DebugEvent', 'kind'), eventData: BuiltValueNullFieldError.checkNotNull( - eventData, 'DebugEvent', 'eventData'), + eventData, r'DebugEvent', 'eventData'), timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, 'DebugEvent', 'timestamp')); + timestamp, r'DebugEvent', 'timestamp')); replace(_$result); return _$result; } @@ -226,7 +228,7 @@ class _$BatchedDebugEvents extends BatchedDebugEvents { _$BatchedDebugEvents._({required this.events}) : super._() { BuiltValueNullFieldError.checkNotNull( - events, 'BatchedDebugEvents', 'events'); + events, r'BatchedDebugEvents', 'events'); } @override @@ -251,7 +253,7 @@ class _$BatchedDebugEvents extends BatchedDebugEvents { @override String toString() { - return (newBuiltValueToStringHelper('BatchedDebugEvents') + return (newBuiltValueToStringHelper(r'BatchedDebugEvents') ..add('events', events)) .toString(); } @@ -302,7 +304,7 @@ class BatchedDebugEventsBuilder events.build(); } catch (e) { throw new BuiltValueNestedFieldError( - 'BatchedDebugEvents', _$failedField, e.toString()); + r'BatchedDebugEvents', _$failedField, e.toString()); } rethrow; } @@ -311,4 +313,4 @@ class BatchedDebugEventsBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/dwds/lib/data/devtools_request.g.dart b/dwds/lib/data/devtools_request.g.dart index f6e3d3aac..626030979 100644 --- a/dwds/lib/data/devtools_request.g.dart +++ b/dwds/lib/data/devtools_request.g.dart @@ -174,9 +174,9 @@ class _$DevToolsRequest extends DevToolsRequest { this.tabUrl, this.uriOnly}) : super._() { - BuiltValueNullFieldError.checkNotNull(appId, 'DevToolsRequest', 'appId'); + BuiltValueNullFieldError.checkNotNull(appId, r'DevToolsRequest', 'appId'); BuiltValueNullFieldError.checkNotNull( - instanceId, 'DevToolsRequest', 'instanceId'); + instanceId, r'DevToolsRequest', 'instanceId'); } @override @@ -210,7 +210,7 @@ class _$DevToolsRequest extends DevToolsRequest { @override String toString() { - return (newBuiltValueToStringHelper('DevToolsRequest') + return (newBuiltValueToStringHelper(r'DevToolsRequest') ..add('appId', appId) ..add('instanceId', instanceId) ..add('contextId', contextId) @@ -277,9 +277,9 @@ class DevToolsRequestBuilder final _$result = _$v ?? new _$DevToolsRequest._( appId: BuiltValueNullFieldError.checkNotNull( - appId, 'DevToolsRequest', 'appId'), + appId, r'DevToolsRequest', 'appId'), instanceId: BuiltValueNullFieldError.checkNotNull( - instanceId, 'DevToolsRequest', 'instanceId'), + instanceId, r'DevToolsRequest', 'instanceId'), contextId: contextId, tabUrl: tabUrl, uriOnly: uriOnly); @@ -304,9 +304,9 @@ class _$DevToolsResponse extends DevToolsResponse { {required this.success, required this.promptExtension, this.error}) : super._() { BuiltValueNullFieldError.checkNotNull( - success, 'DevToolsResponse', 'success'); + success, r'DevToolsResponse', 'success'); BuiltValueNullFieldError.checkNotNull( - promptExtension, 'DevToolsResponse', 'promptExtension'); + promptExtension, r'DevToolsResponse', 'promptExtension'); } @override @@ -334,7 +334,7 @@ class _$DevToolsResponse extends DevToolsResponse { @override String toString() { - return (newBuiltValueToStringHelper('DevToolsResponse') + return (newBuiltValueToStringHelper(r'DevToolsResponse') ..add('success', success) ..add('promptExtension', promptExtension) ..add('error', error)) @@ -390,13 +390,13 @@ class DevToolsResponseBuilder final _$result = _$v ?? new _$DevToolsResponse._( success: BuiltValueNullFieldError.checkNotNull( - success, 'DevToolsResponse', 'success'), + success, r'DevToolsResponse', 'success'), promptExtension: BuiltValueNullFieldError.checkNotNull( - promptExtension, 'DevToolsResponse', 'promptExtension'), + promptExtension, r'DevToolsResponse', 'promptExtension'), error: error); replace(_$result); return _$result; } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/dwds/lib/data/error_response.g.dart b/dwds/lib/data/error_response.g.dart index 734ee2c36..0ac1b7dbc 100644 --- a/dwds/lib/data/error_response.g.dart +++ b/dwds/lib/data/error_response.g.dart @@ -68,9 +68,9 @@ class _$ErrorResponse extends ErrorResponse { _$ErrorResponse._({required this.error, required this.stackTrace}) : super._() { - BuiltValueNullFieldError.checkNotNull(error, 'ErrorResponse', 'error'); + BuiltValueNullFieldError.checkNotNull(error, r'ErrorResponse', 'error'); BuiltValueNullFieldError.checkNotNull( - stackTrace, 'ErrorResponse', 'stackTrace'); + stackTrace, r'ErrorResponse', 'stackTrace'); } @override @@ -95,7 +95,7 @@ class _$ErrorResponse extends ErrorResponse { @override String toString() { - return (newBuiltValueToStringHelper('ErrorResponse') + return (newBuiltValueToStringHelper(r'ErrorResponse') ..add('error', error) ..add('stackTrace', stackTrace)) .toString(); @@ -144,12 +144,12 @@ class ErrorResponseBuilder final _$result = _$v ?? new _$ErrorResponse._( error: BuiltValueNullFieldError.checkNotNull( - error, 'ErrorResponse', 'error'), + error, r'ErrorResponse', 'error'), stackTrace: BuiltValueNullFieldError.checkNotNull( - stackTrace, 'ErrorResponse', 'stackTrace')); + stackTrace, r'ErrorResponse', 'stackTrace')); replace(_$result); return _$result; } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/dwds/lib/data/extension_request.g.dart b/dwds/lib/data/extension_request.g.dart index f40c4a2f3..12e8b82fe 100644 --- a/dwds/lib/data/extension_request.g.dart +++ b/dwds/lib/data/extension_request.g.dart @@ -248,9 +248,9 @@ class _$ExtensionRequest extends ExtensionRequest { _$ExtensionRequest._( {required this.id, required this.command, this.commandParams}) : super._() { - BuiltValueNullFieldError.checkNotNull(id, 'ExtensionRequest', 'id'); + BuiltValueNullFieldError.checkNotNull(id, r'ExtensionRequest', 'id'); BuiltValueNullFieldError.checkNotNull( - command, 'ExtensionRequest', 'command'); + command, r'ExtensionRequest', 'command'); } @override @@ -278,7 +278,7 @@ class _$ExtensionRequest extends ExtensionRequest { @override String toString() { - return (newBuiltValueToStringHelper('ExtensionRequest') + return (newBuiltValueToStringHelper(r'ExtensionRequest') ..add('id', id) ..add('command', command) ..add('commandParams', commandParams)) @@ -334,9 +334,9 @@ class ExtensionRequestBuilder final _$result = _$v ?? new _$ExtensionRequest._( id: BuiltValueNullFieldError.checkNotNull( - id, 'ExtensionRequest', 'id'), + id, r'ExtensionRequest', 'id'), command: BuiltValueNullFieldError.checkNotNull( - command, 'ExtensionRequest', 'command'), + command, r'ExtensionRequest', 'command'), commandParams: commandParams); replace(_$result); return _$result; @@ -363,11 +363,11 @@ class _$ExtensionResponse extends ExtensionResponse { required this.result, this.error}) : super._() { - BuiltValueNullFieldError.checkNotNull(id, 'ExtensionResponse', 'id'); + BuiltValueNullFieldError.checkNotNull(id, r'ExtensionResponse', 'id'); BuiltValueNullFieldError.checkNotNull( - success, 'ExtensionResponse', 'success'); + success, r'ExtensionResponse', 'success'); BuiltValueNullFieldError.checkNotNull( - result, 'ExtensionResponse', 'result'); + result, r'ExtensionResponse', 'result'); } @override @@ -397,7 +397,7 @@ class _$ExtensionResponse extends ExtensionResponse { @override String toString() { - return (newBuiltValueToStringHelper('ExtensionResponse') + return (newBuiltValueToStringHelper(r'ExtensionResponse') ..add('id', id) ..add('success', success) ..add('result', result) @@ -458,11 +458,11 @@ class ExtensionResponseBuilder final _$result = _$v ?? new _$ExtensionResponse._( id: BuiltValueNullFieldError.checkNotNull( - id, 'ExtensionResponse', 'id'), + id, r'ExtensionResponse', 'id'), success: BuiltValueNullFieldError.checkNotNull( - success, 'ExtensionResponse', 'success'), + success, r'ExtensionResponse', 'success'), result: BuiltValueNullFieldError.checkNotNull( - result, 'ExtensionResponse', 'result'), + result, r'ExtensionResponse', 'result'), error: error); replace(_$result); return _$result; @@ -479,8 +479,8 @@ class _$ExtensionEvent extends ExtensionEvent { (new ExtensionEventBuilder()..update(updates))._build(); _$ExtensionEvent._({required this.params, required this.method}) : super._() { - BuiltValueNullFieldError.checkNotNull(params, 'ExtensionEvent', 'params'); - BuiltValueNullFieldError.checkNotNull(method, 'ExtensionEvent', 'method'); + BuiltValueNullFieldError.checkNotNull(params, r'ExtensionEvent', 'params'); + BuiltValueNullFieldError.checkNotNull(method, r'ExtensionEvent', 'method'); } @override @@ -506,7 +506,7 @@ class _$ExtensionEvent extends ExtensionEvent { @override String toString() { - return (newBuiltValueToStringHelper('ExtensionEvent') + return (newBuiltValueToStringHelper(r'ExtensionEvent') ..add('params', params) ..add('method', method)) .toString(); @@ -555,9 +555,9 @@ class ExtensionEventBuilder final _$result = _$v ?? new _$ExtensionEvent._( params: BuiltValueNullFieldError.checkNotNull( - params, 'ExtensionEvent', 'params'), + params, r'ExtensionEvent', 'params'), method: BuiltValueNullFieldError.checkNotNull( - method, 'ExtensionEvent', 'method')); + method, r'ExtensionEvent', 'method')); replace(_$result); return _$result; } @@ -571,7 +571,7 @@ class _$BatchedEvents extends BatchedEvents { (new BatchedEventsBuilder()..update(updates))._build(); _$BatchedEvents._({required this.events}) : super._() { - BuiltValueNullFieldError.checkNotNull(events, 'BatchedEvents', 'events'); + BuiltValueNullFieldError.checkNotNull(events, r'BatchedEvents', 'events'); } @override @@ -594,7 +594,8 @@ class _$BatchedEvents extends BatchedEvents { @override String toString() { - return (newBuiltValueToStringHelper('BatchedEvents')..add('events', events)) + return (newBuiltValueToStringHelper(r'BatchedEvents') + ..add('events', events)) .toString(); } } @@ -644,7 +645,7 @@ class BatchedEventsBuilder events.build(); } catch (e) { throw new BuiltValueNestedFieldError( - 'BatchedEvents', _$failedField, e.toString()); + r'BatchedEvents', _$failedField, e.toString()); } rethrow; } @@ -653,4 +654,4 @@ class BatchedEventsBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/dwds/lib/data/isolate_events.g.dart b/dwds/lib/data/isolate_events.g.dart index be9c06159..d21be64a2 100644 --- a/dwds/lib/data/isolate_events.g.dart +++ b/dwds/lib/data/isolate_events.g.dart @@ -75,7 +75,7 @@ class _$IsolateExit extends IsolateExit { @override String toString() { - return newBuiltValueToStringHelper('IsolateExit').toString(); + return newBuiltValueToStringHelper(r'IsolateExit').toString(); } } @@ -131,7 +131,7 @@ class _$IsolateStart extends IsolateStart { @override String toString() { - return newBuiltValueToStringHelper('IsolateStart').toString(); + return newBuiltValueToStringHelper(r'IsolateStart').toString(); } } @@ -162,4 +162,4 @@ class IsolateStartBuilder } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/dwds/lib/data/register_event.g.dart b/dwds/lib/data/register_event.g.dart index c1fcfd705..fc428a834 100644 --- a/dwds/lib/data/register_event.g.dart +++ b/dwds/lib/data/register_event.g.dart @@ -69,9 +69,9 @@ class _$RegisterEvent extends RegisterEvent { _$RegisterEvent._({required this.eventData, required this.timestamp}) : super._() { BuiltValueNullFieldError.checkNotNull( - eventData, 'RegisterEvent', 'eventData'); + eventData, r'RegisterEvent', 'eventData'); BuiltValueNullFieldError.checkNotNull( - timestamp, 'RegisterEvent', 'timestamp'); + timestamp, r'RegisterEvent', 'timestamp'); } @override @@ -96,7 +96,7 @@ class _$RegisterEvent extends RegisterEvent { @override String toString() { - return (newBuiltValueToStringHelper('RegisterEvent') + return (newBuiltValueToStringHelper(r'RegisterEvent') ..add('eventData', eventData) ..add('timestamp', timestamp)) .toString(); @@ -145,12 +145,12 @@ class RegisterEventBuilder final _$result = _$v ?? new _$RegisterEvent._( eventData: BuiltValueNullFieldError.checkNotNull( - eventData, 'RegisterEvent', 'eventData'), + eventData, r'RegisterEvent', 'eventData'), timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, 'RegisterEvent', 'timestamp')); + timestamp, r'RegisterEvent', 'timestamp')); replace(_$result); return _$result; } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/dwds/lib/data/run_request.g.dart b/dwds/lib/data/run_request.g.dart index 3ec66f41b..4b051200c 100644 --- a/dwds/lib/data/run_request.g.dart +++ b/dwds/lib/data/run_request.g.dart @@ -53,7 +53,7 @@ class _$RunRequest extends RunRequest { @override String toString() { - return newBuiltValueToStringHelper('RunRequest').toString(); + return newBuiltValueToStringHelper(r'RunRequest').toString(); } } @@ -83,4 +83,4 @@ class RunRequestBuilder implements Builder { } } -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/dwds/lib/data/serializers.g.dart b/dwds/lib/data/serializers.g.dart index dcf85c6d1..da06e8a67 100644 --- a/dwds/lib/data/serializers.g.dart +++ b/dwds/lib/data/serializers.g.dart @@ -31,4 +31,4 @@ Serializers _$serializers = (new Serializers().toBuilder() () => new ListBuilder())) .build(); -// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new +// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas diff --git a/dwds/lib/src/injected/client.js b/dwds/lib/src/injected/client.js index c7c3faa0f..3bb8773af 100644 --- a/dwds/lib/src/injected/client.js +++ b/dwds/lib/src/injected/client.js @@ -1,4 +1,4 @@ -// Generated by dart2js (NullSafetyMode.unsound, csp), the Dart to JavaScript compiler version: 2.18.0-109.0.dev. +// Generated by dart2js (NullSafetyMode.unsound, csp), the Dart to JavaScript compiler version: 2.17.3. // The code supports the following hooks: // dartPrint(message): // if this function is defined it is called instead of the Dart [print] @@ -245,10 +245,7 @@ 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."); + return new A.LateError("Field '" + fieldName + "' has not been initialized."); }, ReachabilityError$(_message) { return new A.ReachabilityError(_message); @@ -1873,12 +1870,6 @@ _.__js_helper$_index = t2; _.__js_helper$_current = null; }, - 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)); }, @@ -1886,6 +1877,19 @@ var t1 = new A._Cell(_name); return t1.__late_helper$_value = t1; }, + _lateReadCheck(value, $name) { + if (value === $) + throw A.wrapException(A.LateError$fieldNI($name)); + return value; + }, + _lateWriteOnceCheck(value, $name) { + if (value !== $) + throw A.wrapException(new A.LateError("Field '" + $name + "' has already been initialized.")); + }, + _lateInitializeOnceCheck(value, $name) { + if (value !== $) + throw A.wrapException(A.LateError$fieldADI($name)); + }, _Cell: function _Cell(t0) { this.__late_helper$_name = t0; this.__late_helper$_value = null; @@ -4244,6 +4248,30 @@ this.$function = t1; this.$ti = t2; }, + _RunNullaryZoneFunction: function _RunNullaryZoneFunction(t0, t1) { + this.zone = t0; + this.$function = t1; + }, + _RunUnaryZoneFunction: function _RunUnaryZoneFunction(t0, t1) { + this.zone = t0; + this.$function = t1; + }, + _RunBinaryZoneFunction: function _RunBinaryZoneFunction(t0, t1) { + this.zone = t0; + this.$function = t1; + }, + _RegisterNullaryZoneFunction: function _RegisterNullaryZoneFunction(t0, t1) { + this.zone = t0; + this.$function = t1; + }, + _RegisterUnaryZoneFunction: function _RegisterUnaryZoneFunction(t0, t1) { + this.zone = t0; + this.$function = t1; + }, + _RegisterBinaryZoneFunction: function _RegisterBinaryZoneFunction(t0, t1) { + this.zone = t0; + this.$function = t1; + }, _ZoneSpecification: function _ZoneSpecification(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) { var _ = this; _.handleUncaughtError = t0; @@ -8290,6 +8318,17 @@ }, WebSocketClient_stream_closure: function WebSocketClient_stream_closure() { }, + BatchedStreamController: function BatchedStreamController(t0, t1, t2) { + var _ = this; + _._batchDelayMilliseconds = t0; + _._outputController = _._inputQueue = _._inputController = null; + _._completer = t1; + _.$ti = t2; + }, + BatchedStreamController__hasEventOrTimeOut_closure: function BatchedStreamController__hasEventOrTimeOut_closure() { + }, + BatchedStreamController__hasEventDuring_closure: function BatchedStreamController__hasEventDuring_closure() { + }, Int32__decodeDigit(c) { if (c >= 48 && c <= 57) return c - 48; @@ -8565,7 +8604,7 @@ Uuid: function Uuid() { }, HtmlWebSocketChannel$connect(url, protocols) { - var t2, t3, localToForeignController, foreignToLocalController, t4, t5, _null = null, + var t2, t3, localToForeignController, foreignToLocalController, t4, t5, t6, _null = null, t1 = A.WebSocket_WebSocket(url.toString$0(0), protocols); B.WebSocket_methods.set$binaryType(t1, "arraybuffer"); t2 = new A.StreamChannelController(type$.StreamChannelController_dynamic); @@ -8574,10 +8613,11 @@ foreignToLocalController = A.StreamController_StreamController(_null, _null, true, t3); t4 = A._instanceType(foreignToLocalController); t5 = A._instanceType(localToForeignController); - t2.set$__StreamChannelController__local(A.GuaranteeChannel$(new A._ControllerStream(foreignToLocalController, t4._eval$1("_ControllerStream<1>")), new A._StreamSinkWrapper(localToForeignController, t5._eval$1("_StreamSinkWrapper<1>")), true, t3)); + t6 = A.GuaranteeChannel$(new A._ControllerStream(foreignToLocalController, t4._eval$1("_ControllerStream<1>")), new A._StreamSinkWrapper(localToForeignController, t5._eval$1("_StreamSinkWrapper<1>")), true, t3); + A._lateWriteOnceCheck($, "_local"); + t2.set$__StreamChannelController__local(t6); t3 = A.GuaranteeChannel$(new A._ControllerStream(localToForeignController, t5._eval$1("_ControllerStream<1>")), new A._StreamSinkWrapper(foreignToLocalController, t4._eval$1("_StreamSinkWrapper<1>")), false, t3); - if (t2.__StreamChannelController__foreign !== $) - A.throwLateFieldAI("_foreign"); + A._lateWriteOnceCheck(t2.__StreamChannelController__foreign, "_foreign"); t2.set$__StreamChannelController__foreign(t3); t2 = new A.HtmlWebSocketChannel(t1, t2); t2.HtmlWebSocketChannel$1(t1); @@ -8615,17 +8655,6 @@ WebSocketChannelException: function WebSocketChannelException(t0) { this.message = t0; }, - BatchedStreamController: function BatchedStreamController(t0, t1, t2) { - var _ = this; - _._batchDelayMilliseconds = t0; - _._outputController = _._inputQueue = _._inputController = null; - _._completer = t1; - _.$ti = t2; - }, - BatchedStreamController__hasEventOrTimeOut_closure: function BatchedStreamController__hasEventOrTimeOut_closure() { - }, - BatchedStreamController__hasEventDuring_closure: function BatchedStreamController__hasEventDuring_closure() { - }, main() { return A.runZonedGuarded(new A.main_closure(), new A.main_closure0(), type$.legacy_Future_void); }, @@ -9084,6 +9113,9 @@ _removeEventListener$3$x(receiver, a0, a1, a2) { return J.getInterceptor$x(receiver)._removeEventListener$3(receiver, a0, a1, a2); }, + add$1$ax(receiver, a0) { + return J.getInterceptor$ax(receiver).add$1(receiver, a0); + }, addEventListener$3$x(receiver, a0, a1, a2) { return J.getInterceptor$x(receiver).addEventListener$3(receiver, a0, a1, a2); }, @@ -9147,6 +9179,9 @@ remove$0$x(receiver) { return J.getInterceptor$x(receiver).remove$0(receiver); }, + remove$1$x(receiver, a0) { + return J.getInterceptor$x(receiver).remove$1(receiver, a0); + }, skip$1$ax(receiver, a0) { return J.getInterceptor$ax(receiver).skip$1(receiver, a0); }, @@ -9354,11 +9389,6 @@ for (i = 0; i < len; ++i) receiver.push(array[i]); }, - clear$0(receiver) { - if (!!receiver.fixed$length) - A.throwExpression(A.UnsupportedError$("clear")); - receiver.length = 0; - }, forEach$1(receiver, f) { var end, i; A._arrayInstanceType(receiver)._eval$1("~(1)")._as(f); @@ -9512,6 +9542,13 @@ get$length(receiver) { return receiver.length; }, + set$length(receiver, newLength) { + if (!!receiver.fixed$length) + A.throwExpression(A.UnsupportedError$("set length")); + if (newLength < 0) + throw A.wrapException(A.RangeError$range(newLength, 0, null, "newLength", null)); + receiver.length = newLength; + }, $index(receiver, index) { if (!A._isInt(index)) throw A.wrapException(A.diagnoseIndexError(receiver, index)); @@ -11433,7 +11470,7 @@ t2 = this.span; t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2); }, - $signature: 62 + $signature: 60 }; A._AsyncRun__scheduleImmediateJsOverride_internalCallback.prototype = { call$0() { @@ -12832,6 +12869,12 @@ } }; A._ZoneFunction.prototype = {}; + A._RunNullaryZoneFunction.prototype = {}; + A._RunUnaryZoneFunction.prototype = {}; + A._RunBinaryZoneFunction.prototype = {}; + A._RegisterNullaryZoneFunction.prototype = {}; + A._RegisterUnaryZoneFunction.prototype = {}; + A._RegisterBinaryZoneFunction.prototype = {}; A._ZoneSpecification.prototype = {$isZoneSpecification: 1}; A._ZoneDelegate.prototype = {$isZoneDelegate: 1}; A._Zone.prototype = { @@ -13097,22 +13140,22 @@ }; A._RootZone.prototype = { get$_run() { - return B._ZoneFunction__RootZone__rootRun; + return B._RunNullaryZoneFunction__RootZone__rootRun; }, get$_runUnary() { - return B._ZoneFunction__RootZone__rootRunUnary; + return B._RunUnaryZoneFunction__RootZone__rootRunUnary; }, get$_runBinary() { - return B._ZoneFunction__RootZone__rootRunBinary; + return B._RunBinaryZoneFunction__RootZone__rootRunBinary; }, get$_registerCallback() { - return B._ZoneFunction__RootZone__rootRegisterCallback; + return B._RegisterNullaryZoneFunction__RootZone__rootRegisterCallback; }, get$_registerUnaryCallback() { - return B._ZoneFunction_Eeh; + return B._RegisterUnaryZoneFunction_Bqo; }, get$_registerBinaryCallback() { - return B._ZoneFunction_7G2; + return B._RegisterBinaryZoneFunction_kGu; }, get$_errorCallback() { return B._ZoneFunction__RootZone__rootErrorCallback; @@ -13313,7 +13356,7 @@ t3._processUncaughtError$3(zone, e, t1._as(s)); } }, - $signature: 66 + $signature: 64 }; A._HashMap.prototype = { get$length(_) { @@ -14618,7 +14661,7 @@ return false; if (_this._splayCount !== t2._splayCount) { t3 = _this.$ti._eval$1("_SplayTreeIterator.K")._as(B.JSArray_methods.get$last(t1).key); - B.JSArray_methods.clear$0(t1); + B.JSArray_methods.set$length(t1, 0); t2._splay$1(t3); t3 = t2._root; t3.toString; @@ -14825,7 +14868,7 @@ if (t1 === 0) B.JSArray_methods.add$1(keys, ""); else - B.JSArray_methods.clear$0(keys); + B.JSArray_methods.set$length(keys, 0); _this._original = _this._processed = null; return _this._data = result; }, @@ -15769,7 +15812,6 @@ toString$0(_) { var minutes, minutesPadding, seconds, secondsPadding, microseconds = this._duration, - sign = microseconds < 0 ? "-" : "", hours = B.JSInt_methods._tdivFast$1(microseconds, 3600000000); microseconds %= 3600000000; if (microseconds < 0) @@ -15779,7 +15821,7 @@ minutesPadding = minutes < 10 ? "0" : ""; seconds = B.JSInt_methods._tdivFast$1(microseconds, 1000000); secondsPadding = seconds < 10 ? "0" : ""; - return sign + Math.abs(hours) + ":" + minutesPadding + minutes + ":" + secondsPadding + seconds + "." + B.JSString_methods.padLeft$2(B.JSInt_methods.toString$0(microseconds % 1000000), 6, "0"); + return "" + hours + ":" + minutesPadding + minutes + ":" + secondsPadding + seconds + "." + B.JSString_methods.padLeft$2(B.JSInt_methods.toString$0(microseconds % 1000000), 6, "0"); }, $isComparable: 1 }; @@ -16195,8 +16237,7 @@ t2 = _this._fragment; if (t2 != null) t1 = t1 + "#" + t2; - if (value !== $) - A.throwLateFieldADI("_text"); + A._lateInitializeOnceCheck(value, "_text"); value = _this.___Uri__text = t1.charCodeAt(0) == 0 ? t1 : t1; } return value; @@ -16206,8 +16247,7 @@ value = _this.___Uri_hashCode; if (value === $) { result = B.JSString_methods.get$hashCode(_this.get$_text()); - if (_this.___Uri_hashCode !== $) - A.throwLateFieldADI("hashCode"); + A._lateInitializeOnceCheck(_this.___Uri_hashCode, "hashCode"); _this.___Uri_hashCode = result; value = result; } @@ -19308,9 +19348,7 @@ build$0() { var t1, t2, t3, _this = this; if (_this._listOwner == null) { - t1 = _this.__ListBuilder__list; - if (t1 === $) - A.throwLateFieldNI("_list"); + t1 = A._lateReadCheck(_this.__ListBuilder__list, "_list"); t2 = _this.$ti; t3 = t2._eval$1("_BuiltList<1>"); t3 = t3._as(new A._BuiltList(t1, t3)); @@ -19336,20 +19374,15 @@ } }, get$length(_) { - var t1 = this.__ListBuilder__list; - if (t1 === $) - A.throwLateFieldNI("_list"); - return t1.length; + return J.get$length$asx(A._lateReadCheck(this.__ListBuilder__list, "_list")); }, map$1(_, f) { var t2, t3, t4, t5, result, _this = this, t1 = _this.$ti; t1._eval$1("1(1)")._as(f); - t2 = _this.__ListBuilder__list; - if (t2 === $) - A.throwLateFieldNI("_list"); + t2 = A._lateReadCheck(_this.__ListBuilder__list, "_list"); t3 = t1._precomputed1; - t4 = A._arrayInstanceType(t2); + t4 = A.instanceType(t2); t5 = t4._eval$1("@<1>")._bind$1(t3)._eval$1("MappedListIterable<1,2>"); result = A.List_List$of(new A.MappedListIterable(t2, t4._bind$1(t3)._eval$1("1(2)")._as(f), t5), true, t5._eval$1("ListIterable.E")); _this._list$_maybeCheckElements$1(result); @@ -19469,20 +19502,11 @@ _s11_ = "_builderMap", _s9_ = "_builtMap"; if (_this._list_multimap$_builtMapOwner == null) { - t1 = _this.__ListMultimapBuilder__builderMap; - if (t1 === $) - A.throwLateFieldNI(_s11_); - t1 = A.LinkedHashMapKeyIterator$(t1, t1._modifications, A._instanceType(t1)._precomputed1); - for (; t1.moveNext$0();) { + for (t1 = A._lateReadCheck(_this.__ListMultimapBuilder__builderMap, _s11_), t1 = A.LinkedHashMapKeyIterator$(t1, t1._modifications, A.instanceType(t1)._precomputed1); t1.moveNext$0();) { key = t1.__js_helper$_current; - t2 = _this.__ListMultimapBuilder__builderMap; - if (t2 === $) - A.throwLateFieldNI(_s11_); - t2 = t2.$index(0, key); + t2 = J.$index$asx(A._lateReadCheck(_this.__ListMultimapBuilder__builderMap, _s11_), key); if (t2._listOwner == null) { - t3 = t2.__ListBuilder__list; - if (t3 === $) - A.throwLateFieldNI("_list"); + t3 = A._lateReadCheck(t2.__ListBuilder__list, "_list"); t4 = A._instanceType(t2); t5 = t4._eval$1("_BuiltList<1>"); t5 = t5._as(new A._BuiltList(t3, t5)); @@ -19492,22 +19516,14 @@ builtList = t2._listOwner; t2 = builtList._list.length; t3 = _this.__ListMultimapBuilder__builtMap; - if (t2 === 0) { - if (t3 === $) - A.throwLateFieldNI(_s9_); - t3.remove$1(0, key); - } else { - if (t3 === $) - A.throwLateFieldNI(_s9_); - t3.$indexSet(0, key, builtList); - } + if (t2 === 0) + J.remove$1$x(A._lateReadCheck(t3, _s9_), key); + else + J.$indexSet$ax(A._lateReadCheck(t3, _s9_), key, builtList); } - t1 = _this.__ListMultimapBuilder__builtMap; - if (t1 === $) - A.throwLateFieldNI(_s9_); - t2 = _this.$ti; - t3 = t2._rest[1]; - _this.set$_list_multimap$_builtMapOwner(new A._BuiltListMultimap(t1, A.BuiltList_BuiltList$from(B.List_empty0, t3), t2._eval$1("@<1>")._bind$1(t3)._eval$1("_BuiltListMultimap<1,2>"))); + t1 = _this.$ti; + t2 = t1._rest[1]; + _this.set$_list_multimap$_builtMapOwner(new A._BuiltListMultimap(A._lateReadCheck(_this.__ListMultimapBuilder__builtMap, _s9_), A.BuiltList_BuiltList$from(B.List_empty0, t2), t1._eval$1("@<1>")._bind$1(t2)._eval$1("_BuiltListMultimap<1,2>"))); } t1 = _this._list_multimap$_builtMapOwner; t1.toString; @@ -19517,29 +19533,20 @@ this._list_multimap$_setWithCopyAndCheck$2(multimap.get$keys(multimap), new A.ListMultimapBuilder_replace_closure(multimap)); }, _list_multimap$_getValuesBuilder$1(key) { - var t2, result, builtValues, _this = this, + var result, builtValues, _this = this, _s11_ = "_builderMap", t1 = _this.$ti; t1._precomputed1._as(key); - t2 = _this.__ListMultimapBuilder__builderMap; - if (t2 === $) - A.throwLateFieldNI(_s11_); - result = t2.$index(0, key); + result = J.$index$asx(A._lateReadCheck(_this.__ListMultimapBuilder__builderMap, _s11_), key); if (result == null) { - t2 = _this.__ListMultimapBuilder__builtMap; - if (t2 === $) - A.throwLateFieldNI("_builtMap"); - builtValues = t2.$index(0, key); + builtValues = J.$index$asx(A._lateReadCheck(_this.__ListMultimapBuilder__builtMap, "_builtMap"), key); result = builtValues == null ? A.ListBuilder_ListBuilder(B.List_empty0, t1._rest[1]) : A.ListBuilder_ListBuilder(builtValues, builtValues.$ti._precomputed1); - t1 = _this.__ListMultimapBuilder__builderMap; - if (t1 === $) - A.throwLateFieldNI(_s11_); - t1.$indexSet(0, key, result); + J.$indexSet$ax(A._lateReadCheck(_this.__ListMultimapBuilder__builderMap, _s11_), key, result); } return result; }, _list_multimap$_setWithCopyAndCheck$2(keys, lookup) { - var t1, t2, t3, t4, t5, t6, key, t7, value, t8, t9, t10, t11, _this = this, _null = null; + var t1, t2, t3, t4, t5, t6, key, t7, value, t8, t9, t10, _this = this, _null = null; _this.set$_list_multimap$_builtMapOwner(_null); t1 = _this.$ti; t2 = t1._precomputed1; @@ -19556,10 +19563,7 @@ t2._as(key); t1._as(value); if (_this._list_multimap$_builtMapOwner != null) { - t8 = _this.__ListMultimapBuilder__builtMap; - if (t8 === $) - A.throwLateFieldNI("_builtMap"); - _this.set$__ListMultimapBuilder__builtMap(t4._as(A.LinkedHashMap_LinkedHashMap$from(t8, t2, t3))); + _this.set$__ListMultimapBuilder__builtMap(t4._as(A.LinkedHashMap_LinkedHashMap$from(A._lateReadCheck(_this.__ListMultimapBuilder__builtMap, "_builtMap"), t2, t3))); _this.set$_list_multimap$_builtMapOwner(_null); } _this._list_multimap$_checkKey$1(key); @@ -19572,16 +19576,10 @@ if (value == null) A.throwExpression(A.ArgumentError$("null element", _null)); if (t8._listOwner != null) { - t11 = t8.__ListBuilder__list; - if (t11 === $) - A.throwLateFieldNI("_list"); - t8.set$__ListBuilder__list(t9._eval$1("List<1>")._as(A.List_List$from(t11, true, t10))); + t8.set$__ListBuilder__list(t9._eval$1("List<1>")._as(A.List_List$from(A._lateReadCheck(t8.__ListBuilder__list, "_list"), true, t10))); t8.set$_listOwner(_null); } - t8 = t8.__ListBuilder__list; - if (t8 === $) - A.throwLateFieldNI("_list"); - B.JSArray_methods.add$1(t8, value); + J.add$1$ax(A._lateReadCheck(t8.__ListBuilder__list, "_list"), value); } else throw A.wrapException(A.ArgumentError$("map contained invalid value: " + A.S(value) + ", for key " + A.S(key), _null)); } @@ -19728,13 +19726,10 @@ }; A.MapBuilder.prototype = { build$0() { - var t1, t2, _this = this; + var t1, _this = this; if (_this._mapOwner == null) { - t1 = _this.__MapBuilder__map; - if (t1 === $) - A.throwLateFieldNI("_map"); - t2 = _this.$ti; - _this.set$_mapOwner(new A._BuiltMap(_this._mapFactory, t1, t2._eval$1("@<1>")._bind$1(t2._rest[1])._eval$1("_BuiltMap<1,2>"))); + t1 = _this.$ti; + _this.set$_mapOwner(new A._BuiltMap(_this._mapFactory, A._lateReadCheck(_this.__MapBuilder__map, "_map"), t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("_BuiltMap<1,2>"))); } t1 = _this._mapOwner; t1.toString; @@ -19749,7 +19744,7 @@ _this.set$__MapBuilder__map(replacement); }, $indexSet(_, key, value) { - var t2, t3, _this = this, + var t2, _this = this, t1 = _this.$ti; t1._precomputed1._as(key); t1._rest[1]._as(value); @@ -19757,39 +19752,24 @@ _this._checkValue$1(value); if (_this._mapOwner != null) { t2 = _this._createMap$0(); - t3 = _this.__MapBuilder__map; - if (t3 === $) - A.throwLateFieldNI("_map"); - t2.addAll$1(0, t3); + t2.addAll$1(0, A._lateReadCheck(_this.__MapBuilder__map, "_map")); _this.set$__MapBuilder__map(t1._eval$1("Map<1,2>")._as(t2)); _this.set$_mapOwner(null); } - t1 = _this.__MapBuilder__map; - if (t1 === $) - A.throwLateFieldNI("_map"); - t1.$indexSet(0, key, value); + J.$indexSet$ax(A._lateReadCheck(_this.__MapBuilder__map, "_map"), key, value); }, get$length(_) { - var t1 = this.__MapBuilder__map; - if (t1 === $) - A.throwLateFieldNI("_map"); - return t1._length; + return A._lateReadCheck(this.__MapBuilder__map, "_map")._length; }, get$_safeMap() { - var t1, t2, _this = this; + var t1, _this = this; if (_this._mapOwner != null) { t1 = _this._createMap$0(); - t2 = _this.__MapBuilder__map; - if (t2 === $) - A.throwLateFieldNI("_map"); - t1.addAll$1(0, t2); + t1.addAll$1(0, A._lateReadCheck(_this.__MapBuilder__map, "_map")); _this.set$__MapBuilder__map(_this.$ti._eval$1("Map<1,2>")._as(t1)); _this.set$_mapOwner(null); } - t1 = _this.__MapBuilder__map; - if (t1 === $) - A.throwLateFieldNI("_map"); - return t1; + return A._lateReadCheck(_this.__MapBuilder__map, "_map"); }, _createMap$0() { var t1 = this.$ti; @@ -19929,12 +19909,8 @@ A.SetBuilder.prototype = { build$0() { var t1, _this = this; - if (_this._setOwner == null) { - t1 = _this.__SetBuilder__set; - if (t1 === $) - A.throwLateFieldNI("_set"); - _this.set$_setOwner(new A._BuiltSet(_this._setFactory, t1, _this.$ti._eval$1("_BuiltSet<1>"))); - } + if (_this._setOwner == null) + _this.set$_setOwner(new A._BuiltSet(_this._setFactory, A._lateReadCheck(_this.__SetBuilder__set, "_set"), _this.$ti._eval$1("_BuiltSet<1>"))); t1 = _this._setOwner; t1.toString; return t1; @@ -19954,19 +19930,14 @@ _this.set$__SetBuilder__set(set); }, get$length(_) { - var t1 = this.__SetBuilder__set; - if (t1 === $) - A.throwLateFieldNI("_set"); - return t1._collection$_length; + return A._lateReadCheck(this.__SetBuilder__set, "_set")._collection$_length; }, map$1(_, f) { var result, t2, t3, t4, _this = this, t1 = _this.$ti; t1._eval$1("1(1)")._as(f); result = _this._createSet$0(); - t2 = _this.__SetBuilder__set; - if (t2 === $) - A.throwLateFieldNI("_set"); + t2 = A._lateReadCheck(_this.__SetBuilder__set, "_set"); t3 = t1._precomputed1; t4 = A._instanceType(t2); result.addAll$1(0, new A.EfficientLengthMappedIterable(t2, t4._bind$1(t3)._eval$1("1(2)")._as(f), t4._eval$1("@<1>")._bind$1(t3)._eval$1("EfficientLengthMappedIterable<1,2>"))); @@ -19976,20 +19947,14 @@ _this.set$__SetBuilder__set(result); }, get$_safeSet() { - var t1, t2, _this = this; + var t1, _this = this; if (_this._setOwner != null) { t1 = _this._createSet$0(); - t2 = _this.__SetBuilder__set; - if (t2 === $) - A.throwLateFieldNI("_set"); - t1.addAll$1(0, t2); + t1.addAll$1(0, A._lateReadCheck(_this.__SetBuilder__set, "_set")); _this.set$__SetBuilder__set(_this.$ti._eval$1("Set<1>")._as(t1)); _this.set$_setOwner(null); } - t1 = _this.__SetBuilder__set; - if (t1 === $) - A.throwLateFieldNI("_set"); - return t1; + return A._lateReadCheck(_this.__SetBuilder__set, "_set"); }, _createSet$0() { return A.LinkedHashSet_LinkedHashSet$_empty(this.$ti._precomputed1); @@ -20086,46 +20051,26 @@ A._BuiltSetMultimap.prototype = {}; A.SetMultimapBuilder.prototype = { build$0() { - var t1, key, t2, t3, t4, builtSet, _this = this, + var t1, key, t2, builtSet, t3, _this = this, _s11_ = "_builderMap", _s9_ = "_builtMap"; if (_this._builtMapOwner == null) { - t1 = _this.__SetMultimapBuilder__builderMap; - if (t1 === $) - A.throwLateFieldNI(_s11_); - t1 = A.LinkedHashMapKeyIterator$(t1, t1._modifications, A._instanceType(t1)._precomputed1); - for (; t1.moveNext$0();) { + for (t1 = A._lateReadCheck(_this.__SetMultimapBuilder__builderMap, _s11_), t1 = A.LinkedHashMapKeyIterator$(t1, t1._modifications, A.instanceType(t1)._precomputed1); t1.moveNext$0();) { key = t1.__js_helper$_current; - t2 = _this.__SetMultimapBuilder__builderMap; - if (t2 === $) - A.throwLateFieldNI(_s11_); - t2 = t2.$index(0, key); - if (t2._setOwner == null) { - t3 = t2._setFactory; - t4 = t2.__SetBuilder__set; - if (t4 === $) - A.throwLateFieldNI("_set"); - t2.set$_setOwner(new A._BuiltSet(t3, t4, A._instanceType(t2)._eval$1("_BuiltSet<1>"))); - } + t2 = J.$index$asx(A._lateReadCheck(_this.__SetMultimapBuilder__builderMap, _s11_), key); + if (t2._setOwner == null) + t2.set$_setOwner(new A._BuiltSet(t2._setFactory, A._lateReadCheck(t2.__SetBuilder__set, "_set"), A._instanceType(t2)._eval$1("_BuiltSet<1>"))); builtSet = t2._setOwner; t2 = builtSet._set$_set._collection$_length; t3 = _this.__SetMultimapBuilder__builtMap; - if (t2 === 0) { - if (t3 === $) - A.throwLateFieldNI(_s9_); - t3.remove$1(0, key); - } else { - if (t3 === $) - A.throwLateFieldNI(_s9_); - t3.$indexSet(0, key, builtSet); - } + if (t2 === 0) + J.remove$1$x(A._lateReadCheck(t3, _s9_), key); + else + J.$indexSet$ax(A._lateReadCheck(t3, _s9_), key, builtSet); } - t1 = _this.__SetMultimapBuilder__builtMap; - if (t1 === $) - A.throwLateFieldNI(_s9_); - t2 = _this.$ti; - t3 = t2._rest[1]; - _this.set$_builtMapOwner(new A._BuiltSetMultimap(t1, A.BuiltSet_BuiltSet$from(B.List_empty0, t3), t2._eval$1("@<1>")._bind$1(t3)._eval$1("_BuiltSetMultimap<1,2>"))); + t1 = _this.$ti; + t2 = t1._rest[1]; + _this.set$_builtMapOwner(new A._BuiltSetMultimap(A._lateReadCheck(_this.__SetMultimapBuilder__builtMap, _s9_), A.BuiltSet_BuiltSet$from(B.List_empty0, t2), t1._eval$1("@<1>")._bind$1(t2)._eval$1("_BuiltSetMultimap<1,2>"))); } t1 = _this._builtMapOwner; t1.toString; @@ -20135,19 +20080,13 @@ this._setWithCopyAndCheck$2(multimap.get$keys(multimap), new A.SetMultimapBuilder_replace_closure(multimap)); }, _getValuesBuilder$1(key) { - var t2, result, builtValues, _this = this, + var result, builtValues, _this = this, _s11_ = "_builderMap", t1 = _this.$ti; t1._precomputed1._as(key); - t2 = _this.__SetMultimapBuilder__builderMap; - if (t2 === $) - A.throwLateFieldNI(_s11_); - result = t2.$index(0, key); + result = J.$index$asx(A._lateReadCheck(_this.__SetMultimapBuilder__builderMap, _s11_), key); if (result == null) { - t2 = _this.__SetMultimapBuilder__builtMap; - if (t2 === $) - A.throwLateFieldNI("_builtMap"); - builtValues = t2.$index(0, key); + builtValues = J.$index$asx(A._lateReadCheck(_this.__SetMultimapBuilder__builtMap, "_builtMap"), key); if (builtValues == null) result = A.SetBuilder_SetBuilder(t1._rest[1]); else { @@ -20155,10 +20094,7 @@ t1._eval$1("_BuiltSet<1>")._as(builtValues); result = new A.SetBuilder(builtValues._setFactory, builtValues._set$_set, builtValues, t1._eval$1("SetBuilder<1>")); } - t1 = _this.__SetMultimapBuilder__builderMap; - if (t1 === $) - A.throwLateFieldNI(_s11_); - t1.$indexSet(0, key, result); + J.$indexSet$ax(A._lateReadCheck(_this.__SetMultimapBuilder__builderMap, _s11_), key, result); } return result; }, @@ -20180,10 +20116,7 @@ t2._as(key); t1._as(value); if (_this._builtMapOwner != null) { - t8 = _this.__SetMultimapBuilder__builtMap; - if (t8 === $) - A.throwLateFieldNI("_builtMap"); - _this.set$__SetMultimapBuilder__builtMap(t4._as(A.LinkedHashMap_LinkedHashMap$from(t8, t2, t3))); + _this.set$__SetMultimapBuilder__builtMap(t4._as(A.LinkedHashMap_LinkedHashMap$from(A._lateReadCheck(_this.__SetMultimapBuilder__builtMap, "_builtMap"), t2, t3))); _this.set$_builtMapOwner(_null); } _this._set_multimap$_checkKey$1(key); @@ -20748,7 +20681,7 @@ return this.serialize$3$specifiedType(serializers, builtListMultimap, B.FullType_null_List_empty_false); }, deserialize$3$specifiedType(serializers, serialized, specifiedType) { - var isUnderspecified, t2, t3, t4, keyType, valueType, result, i, key, values, value, t5, t6, t7, t8, _null = null, + var isUnderspecified, t2, t3, t4, keyType, valueType, result, i, key, values, value, t5, t6, t7, _null = null, t1 = type$.Iterable_nullable_Object; t1._as(serialized); isUnderspecified = specifiedType.root == null || specifiedType.parameters.length === 0; @@ -20788,10 +20721,7 @@ t6._as(key); t5._rest[1]._as(value); if (result._list_multimap$_builtMapOwner != null) { - t7 = result.__ListMultimapBuilder__builtMap; - if (t7 === $) - A.throwLateFieldNI("_builtMap"); - result.set$__ListMultimapBuilder__builtMap(t5._eval$1("Map<1,BuiltList<2>>")._as(A.LinkedHashMap_LinkedHashMap$from(t7, t6, t5._eval$1("BuiltList<2>")))); + result.set$__ListMultimapBuilder__builtMap(t5._eval$1("Map<1,BuiltList<2>>")._as(A.LinkedHashMap_LinkedHashMap$from(A._lateReadCheck(result.__ListMultimapBuilder__builtMap, "_builtMap"), t6, t5._eval$1("BuiltList<2>")))); result.set$_list_multimap$_builtMapOwner(_null); } result._list_multimap$_checkKey$1(key); @@ -20804,16 +20734,10 @@ if (value == null) A.throwExpression(A.ArgumentError$("null element", _null)); if (t5._listOwner != null) { - t8 = t5.__ListBuilder__list; - if (t8 === $) - A.throwLateFieldNI("_list"); - t5.set$__ListBuilder__list(t6._eval$1("List<1>")._as(A.List_List$from(t8, true, t7))); + t5.set$__ListBuilder__list(t6._eval$1("List<1>")._as(A.List_List$from(A._lateReadCheck(t5.__ListBuilder__list, "_list"), true, t7))); t5.set$_listOwner(_null); } - t5 = t5.__ListBuilder__list; - if (t5 === $) - A.throwLateFieldNI("_list"); - B.JSArray_methods.add$1(t5, value); + J.add$1$ax(A._lateReadCheck(t5.__ListBuilder__list, "_list"), value); } } return result.build$0(); @@ -21034,7 +20958,7 @@ return this.serialize$3$specifiedType(serializers, builtSetMultimap, B.FullType_null_List_empty_false); }, deserialize$3$specifiedType(serializers, serialized, specifiedType) { - var isUnderspecified, t2, t3, t4, keyType, valueType, result, i, key, value, t5, t6, + var isUnderspecified, t2, t3, t4, keyType, valueType, result, i, key, value, t5, t1 = type$.Iterable_dynamic; t1._as(serialized); isUnderspecified = specifiedType.root == null || specifiedType.parameters.length === 0; @@ -21073,10 +20997,7 @@ t5._as(key); t4._rest[1]._as(value); if (result._builtMapOwner != null) { - t6 = result.__SetMultimapBuilder__builtMap; - if (t6 === $) - A.throwLateFieldNI("_builtMap"); - result.set$__SetMultimapBuilder__builtMap(t4._eval$1("Map<1,BuiltSet<2>>")._as(A.LinkedHashMap_LinkedHashMap$from(t6, t5, t4._eval$1("BuiltSet<2>")))); + result.set$__SetMultimapBuilder__builtMap(t4._eval$1("Map<1,BuiltSet<2>>")._as(A.LinkedHashMap_LinkedHashMap$from(A._lateReadCheck(result.__SetMultimapBuilder__builtMap, "_builtMap"), t5, t4._eval$1("BuiltSet<2>")))); result.set$_builtMapOwner(null); } result._set_multimap$_checkKey$1(key); @@ -23333,27 +23254,15 @@ t1 = this._channel, value = t1.__HtmlWebSocketChannel_sink; if (value === $) { - t2 = t1._html0$_controller.__StreamChannelController__foreign; - if (t2 === $) - A.throwLateFieldNI("_foreign"); - t2 = t2.__GuaranteeChannel__sink; - if (t2 === $) - A.throwLateFieldNI("_sink"); - if (value !== $) - A.throwLateFieldADI("sink"); + t2 = A._lateReadCheck(A._lateReadCheck(t1._html0$_controller.__StreamChannelController__foreign, "_foreign").__GuaranteeChannel__sink, "_sink"); + A._lateInitializeOnceCheck(t1.__HtmlWebSocketChannel_sink, "sink"); value = t1.__HtmlWebSocketChannel_sink = new A._HtmlWebSocketSink(t1, t2); } return value; }, get$stream(_) { - var t2, - t1 = this._channel._html0$_controller.__StreamChannelController__foreign; - if (t1 === $) - A.throwLateFieldNI("_foreign"); - t1 = t1.__GuaranteeChannel__streamController; - if (t1 === $) - A.throwLateFieldNI("_streamController"); - t2 = A._instanceType(t1)._eval$1("_ControllerStream<1>"); + var t1 = A._lateReadCheck(A._lateReadCheck(this._channel._html0$_controller.__StreamChannelController__foreign, "_foreign").__GuaranteeChannel__streamController, "_streamController"), + t2 = A._instanceType(t1)._eval$1("_ControllerStream<1>"); return new A._MapStream(t2._eval$1("String*(Stream.T)")._as(new A.WebSocketClient_stream_closure()), new A._ControllerStream(t1, t2), t2._eval$1("_MapStream")); } }; @@ -23363,6 +23272,126 @@ }, $signature: 59 }; + A.BatchedStreamController.prototype = { + _batchAndSendEvents$0() { + var $async$goto = 0, + $async$completer = A._makeAsyncAwaitCompleter(type$.void), + $async$self = this, t2, t3, t4, t5, lastSendTime0, t6, lastEvent, t1, buffer, lastSendTime, $async$temp1, $async$temp2; + var $async$_batchAndSendEvents$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { + if ($async$errorCode === 1) + return A._asyncRethrow($async$result, $async$completer); + while (true) + switch ($async$goto) { + case 0: + // Function start + t1 = $async$self.$ti; + buffer = A._setArrayType([], t1._eval$1("JSArray<1*>")); + lastSendTime = Date.now(); + t2 = $async$self._batchDelayMilliseconds, t1 = t1._eval$1("1*"); + case 2: + // for condition + $async$temp1 = A; + $async$goto = 4; + return A._asyncAwait($async$self._hasEventOrTimeOut$1(B.Duration_100000), $async$_batchAndSendEvents$0); + case 4: + // returning from await. + if (!$async$temp1.boolConversionCheck($async$result)) { + // goto after for + $async$goto = 3; + break; + } + $async$temp1 = A; + $async$goto = 7; + return A._asyncAwait($async$self._hasEventDuring$1(B.Duration_100000), $async$_batchAndSendEvents$0); + case 7: + // returning from await. + $async$goto = $async$temp1.boolConversionCheck($async$result) ? 5 : 6; + break; + case 5: + // then + t3 = $async$self._inputQueue; + t4 = t3.$ti; + t5 = new A._Future($.Zone__current, t4._eval$1("_Future<1>")); + t3._addRequest$1(new A._NextRequest(new A._AsyncCompleter(t5, t4._eval$1("_AsyncCompleter<1>")), t4._eval$1("_NextRequest<1>"))); + $async$temp1 = B.JSArray_methods; + $async$temp2 = buffer; + $async$goto = 8; + return A._asyncAwait(t5, $async$_batchAndSendEvents$0); + case 8: + // returning from await. + $async$temp1.add$1($async$temp2, $async$result); + case 6: + // join + lastSendTime0 = Date.now(); + if (lastSendTime0 > lastSendTime + t2) { + if (buffer.length !== 0) { + t3 = $async$self._outputController; + t4 = A._instanceType(t3); + t5 = t4._precomputed1._as(A.List_List$from(buffer, true, t1)); + t6 = t3._state; + if (t6 >= 4) + A.throwExpression(t3._badEventState$0()); + if ((t6 & 1) !== 0) + t3._sendData$1(t5); + else if ((t6 & 3) === 0) { + t3 = t3._ensurePendingEvents$0(); + t4 = new A._DelayedData(t5, t4._eval$1("_DelayedData<1>")); + lastEvent = t3.lastPendingEvent; + if (lastEvent == null) + t3.firstPendingEvent = t3.lastPendingEvent = t4; + else { + lastEvent.set$next(0, t4); + t3.lastPendingEvent = t4; + } + } + B.JSArray_methods.set$length(buffer, 0); + } + lastSendTime = lastSendTime0; + } + // goto for condition + $async$goto = 2; + break; + case 3: + // after for + if (buffer.length !== 0) { + t2 = $async$self._outputController; + t2.add$1(0, A._instanceType(t2)._precomputed1._as(A.List_List$from(buffer, true, t1))); + } + $async$self._completer.complete$1(0, true); + // implicit return + return A._asyncReturn(null, $async$completer); + } + }); + return A._asyncStartSync($async$_batchAndSendEvents$0, $async$completer); + }, + _hasEventOrTimeOut$1(duration) { + return this._inputQueue.get$hasNext().timeout$2$onTimeout(0, duration, new A.BatchedStreamController__hasEventOrTimeOut_closure()); + }, + _hasEventDuring$1(duration) { + return this._inputQueue.get$hasNext().timeout$2$onTimeout(0, duration, new A.BatchedStreamController__hasEventDuring_closure()); + }, + set$_inputController(_inputController) { + this._inputController = this.$ti._eval$1("StreamController<1*>*")._as(_inputController); + }, + set$_inputQueue(_inputQueue) { + this._inputQueue = this.$ti._eval$1("StreamQueue<1*>*")._as(_inputQueue); + }, + set$_outputController(_outputController) { + this._outputController = this.$ti._eval$1("StreamController*>*")._as(_outputController); + } + }; + A.BatchedStreamController__hasEventOrTimeOut_closure.prototype = { + call$0() { + return true; + }, + $signature: 29 + }; + A.BatchedStreamController__hasEventDuring_closure.prototype = { + call$0() { + return false; + }, + $signature: 29 + }; A.Int64.prototype = { $eq(_, other) { var o, _this = this; @@ -23594,7 +23623,7 @@ $parent._children.$indexSet(0, thisName, t1); return t1; }, - $signature: 60 + $signature: 61 }; A.Pool.prototype = { request$0(_) { @@ -23736,35 +23765,23 @@ t2 = A.EventSource__factoryEventSource(t1, A.LinkedHashMap_LinkedHashMap$_literal(["withCredentials", true], type$.String, type$.dynamic)); _this.__SseClient__eventSource = t2; _this.__SseClient__serverUrl = t1; - t2 = new A._EventStream(t2, "open", false, type$._EventStream_legacy_Event); + t2 = new A._EventStream(A._lateReadCheck(t2, _s12_), "open", false, type$._EventStream_legacy_Event); t2.get$first(t2).whenComplete$1(new A.SseClient_closure(_this)); - t2 = _this.__SseClient__eventSource; - if (t2 === $) - A.throwLateFieldNI(_s12_); - B.EventSource_methods.addEventListener$2(t2, "message", _this.get$_onIncomingMessage()); - t2 = _this.__SseClient__eventSource; - if (t2 === $) - A.throwLateFieldNI(_s12_); - B.EventSource_methods.addEventListener$2(t2, "control", _this.get$_onIncomingControlMessage()); - t2 = _this.__SseClient__eventSource; - if (t2 === $) - A.throwLateFieldNI(_s12_); + t2 = A._lateReadCheck(_this.__SseClient__eventSource, _s12_); + (t2 && B.EventSource_methods).addEventListener$2(t2, "message", _this.get$_onIncomingMessage()); + t2 = A._lateReadCheck(_this.__SseClient__eventSource, _s12_); + (t2 && B.EventSource_methods).addEventListener$2(t2, "control", _this.get$_onIncomingControlMessage()); + t2 = A._lateReadCheck(_this.__SseClient__eventSource, _s12_); t1 = type$.nullable_void_Function_legacy_Event; t3 = t1._as(new A.SseClient_closure0(_this)); type$.nullable_void_Function._as(null); t4 = type$.legacy_Event; A._EventStreamSubscription$(t2, "open", t3, false, t4); - t3 = _this.__SseClient__eventSource; - if (t3 === $) - A.throwLateFieldNI(_s12_); - A._EventStreamSubscription$(t3, "error", t1._as(new A.SseClient_closure1(_this)), false, t4); + A._EventStreamSubscription$(A._lateReadCheck(_this.__SseClient__eventSource, _s12_), "error", t1._as(new A.SseClient_closure1(_this)), false, t4); }, close$0(_) { - var _this = this, - t1 = _this.__SseClient__eventSource; - if (t1 === $) - A.throwLateFieldNI("_eventSource"); - t1.close(); + var t1, _this = this; + A._lateReadCheck(_this.__SseClient__eventSource, "_eventSource").close(); if ((_this._onConnected.future._state & 30) === 0) { t1 = _this._outgoingController; new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$2$cancelOnError(null, true).asFuture$1$1(null, type$.dynamic); @@ -23856,7 +23873,7 @@ call$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Null), - $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, e, e0, e1, exception, t1, t2, $async$exception; + $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, e, e0, e1, exception, t1, $async$exception; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$currentError = $async$result; @@ -23881,11 +23898,8 @@ } $async$handler = 3; t1 = $async$self.$this; - t2 = t1.__SseClient__serverUrl; - if (t2 === $) - A.throwLateFieldNI("_serverUrl"); $async$goto = 6; - return A._asyncAwait(A.HttpRequest_request(t2 + "&messageId=" + ++t1._lastMessageId, "POST", null, $async$self._box_0.encodedMessage, true), $async$call$0); + return A._asyncAwait(A.HttpRequest_request(A.S(A._lateReadCheck(t1.__SseClient__serverUrl, "_serverUrl")) + "&messageId=" + ++t1._lastMessageId, "POST", null, $async$self._box_0.encodedMessage, true), $async$call$0); case 6: // returning from await. $async$handler = 1; @@ -23931,37 +23945,31 @@ call$2(value, count) { return B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1(value, 16), count, "0"); }, - $signature: 29 + $signature: 26 }; A.generateUuidV4__bitsDigits.prototype = { call$2(bitCount, digitCount) { return this._printDigits.call$2(this._generateBits.call$1(bitCount), digitCount); }, - $signature: 29 + $signature: 26 }; A.GuaranteeChannel.prototype = { GuaranteeChannel$3$allowSinkErrors(innerSink, allowSinkErrors, _box_0, $T) { var _this = this, t1 = _this.$ti, t2 = t1._eval$1("_GuaranteeSink<1>")._as(new A._GuaranteeSink(innerSink, _this, new A._AsyncCompleter(new A._Future($.Zone__current, type$._Future_dynamic), type$._AsyncCompleter_dynamic), allowSinkErrors, $T._eval$1("_GuaranteeSink<0>"))); - if (_this.__GuaranteeChannel__sink !== $) - A.throwLateFieldAI("_sink"); + A._lateWriteOnceCheck(_this.__GuaranteeChannel__sink, "_sink"); _this.set$__GuaranteeChannel__sink(t2); t1 = t1._eval$1("StreamController<1>")._as(A.StreamController_StreamController(null, new A.GuaranteeChannel_closure(_box_0, _this, $T), true, $T)); - if (_this.__GuaranteeChannel__streamController !== $) - A.throwLateFieldAI("_streamController"); + A._lateWriteOnceCheck(_this.__GuaranteeChannel__streamController, "_streamController"); _this.set$__GuaranteeChannel__streamController(t1); }, _onSinkDisconnected$0() { - var subscription, t1; this._disconnected = true; - subscription = this._guarantee_channel$_subscription; + var subscription = this._guarantee_channel$_subscription; if (subscription != null) subscription.cancel$0(0); - t1 = this.__GuaranteeChannel__streamController; - if (t1 === $) - A.throwLateFieldNI("_streamController"); - t1.close$0(0); + A._lateReadCheck(this.__GuaranteeChannel__streamController, "_streamController").close$0(0); }, set$__GuaranteeChannel__sink(__GuaranteeChannel__sink) { this.__GuaranteeChannel__sink = this.$ti._eval$1("_GuaranteeSink<1>")._as(__GuaranteeChannel__sink); @@ -23976,28 +23984,21 @@ A.GuaranteeChannel_closure.prototype = { call$0() { var t2, t3, + _s17_ = "_streamController", t1 = this.$this; if (t1._disconnected) return; t2 = this._box_0.innerStream; - t3 = t1.__GuaranteeChannel__streamController; - if (t3 === $) - A.throwLateFieldNI("_streamController"); - t1.set$_guarantee_channel$_subscription(t2.listen$3$onDone$onError(this.T._eval$1("~(0)")._as(t3.get$add(t3)), new A.GuaranteeChannel__closure(t1), t3.get$addError())); + t3 = A._lateReadCheck(t1.__GuaranteeChannel__streamController, _s17_); + t1.set$_guarantee_channel$_subscription(t2.listen$3$onDone$onError(this.T._eval$1("~(0)")._as(t3.get$add(t3)), new A.GuaranteeChannel__closure(t1), A._lateReadCheck(t1.__GuaranteeChannel__streamController, _s17_).get$addError())); }, $signature: 0 }; A.GuaranteeChannel__closure.prototype = { call$0() { - var t1 = this.$this, - t2 = t1.__GuaranteeChannel__sink; - if (t2 === $) - A.throwLateFieldNI("_sink"); - t2._onStreamDisconnected$0(); - t1 = t1.__GuaranteeChannel__streamController; - if (t1 === $) - A.throwLateFieldNI("_streamController"); - t1.close$0(0); + var t1 = this.$this; + A._lateReadCheck(t1.__GuaranteeChannel__sink, "_sink")._onStreamDisconnected$0(); + A._lateReadCheck(t1.__GuaranteeChannel__streamController, "_streamController").close$0(0); }, $signature: 0 }; @@ -24265,12 +24266,7 @@ t1.get$first(t1).then$1$1(0, new A.HtmlWebSocketChannel_closure2(_this), t3); }, _listen$0() { - var t1 = this._html0$_controller.__StreamChannelController__local; - if (t1 === $) - A.throwLateFieldNI("_local"); - t1 = t1.__GuaranteeChannel__streamController; - if (t1 === $) - A.throwLateFieldNI("_streamController"); + var t1 = A._lateReadCheck(A._lateReadCheck(this._html0$_controller.__StreamChannelController__local, "_local").__GuaranteeChannel__streamController, "_streamController"); new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$2$onDone(B.WebSocket_methods.get$send(this.innerWebSocket), new A.HtmlWebSocketChannel__listen_closure(this)); }, $isWebSocketChannel: 1 @@ -24280,61 +24276,35 @@ type$.Event._as(_); this.$this._listen$0(); }, - $signature: 26 + $signature: 25 }; A.HtmlWebSocketChannel_closure0.prototype = { call$1(_) { - var t1, t2; + var t1; type$.Event._as(_); t1 = this.$this._html0$_controller; - t2 = t1.__StreamChannelController__local; - if (t2 === $) - A.throwLateFieldNI("_local"); - t2 = t2.__GuaranteeChannel__sink; - if (t2 === $) - A.throwLateFieldNI("_sink"); - t2.addError$1(new A.WebSocketChannelException("WebSocket connection failed.")); - t1 = t1.__StreamChannelController__local; - if (t1 === $) - A.throwLateFieldNI("_local"); - t1 = t1.__GuaranteeChannel__sink; - if (t1 === $) - A.throwLateFieldNI("_sink"); - t1.close$0(0); + A._lateReadCheck(A._lateReadCheck(t1.__StreamChannelController__local, "_local").__GuaranteeChannel__sink, "_sink").addError$1(new A.WebSocketChannelException("WebSocket connection failed.")); + A._lateReadCheck(A._lateReadCheck(t1.__StreamChannelController__local, "_local").__GuaranteeChannel__sink, "_sink").close$0(0); }, - $signature: 26 + $signature: 25 }; A.HtmlWebSocketChannel_closure1.prototype = { call$1($event) { - var t1, - data = new A._AcceptStructuredCloneDart2Js([], []).convertNativeToDart_AcceptStructuredClone$2$mustCopy(type$.MessageEvent._as($event).data, true); + var data = new A._AcceptStructuredCloneDart2Js([], []).convertNativeToDart_AcceptStructuredClone$2$mustCopy(type$.MessageEvent._as($event).data, true); if (type$.ByteBuffer._is(data)) data = A.NativeUint8List_NativeUint8List$view(data, 0, null); - t1 = this.$this._html0$_controller.__StreamChannelController__local; - if (t1 === $) - A.throwLateFieldNI("_local"); - t1 = t1.__GuaranteeChannel__sink; - if (t1 === $) - A.throwLateFieldNI("_sink"); - t1.add$1(0, data); + A._lateReadCheck(A._lateReadCheck(this.$this._html0$_controller.__StreamChannelController__local, "_local").__GuaranteeChannel__sink, "_sink").add$1(0, data); }, - $signature: 64 + $signature: 65 }; A.HtmlWebSocketChannel_closure2.prototype = { call$1($event) { - var t1; type$.CloseEvent._as($event); $event.code; $event.reason; - t1 = this.$this._html0$_controller.__StreamChannelController__local; - if (t1 === $) - A.throwLateFieldNI("_local"); - t1 = t1.__GuaranteeChannel__sink; - if (t1 === $) - A.throwLateFieldNI("_sink"); - t1.close$0(0); + A._lateReadCheck(A._lateReadCheck(this.$this._html0$_controller.__StreamChannelController__local, "_local").__GuaranteeChannel__sink, "_sink").close$0(0); }, - $signature: 65 + $signature: 66 }; A.HtmlWebSocketChannel__listen_closure.prototype = { call$0() { @@ -24349,126 +24319,6 @@ return "WebSocketChannelException: " + this.message; } }; - A.BatchedStreamController.prototype = { - _batchAndSendEvents$0() { - var $async$goto = 0, - $async$completer = A._makeAsyncAwaitCompleter(type$.void), - $async$self = this, t2, t3, t4, t5, lastSendTime0, t6, lastEvent, t1, buffer, lastSendTime, $async$temp1, $async$temp2; - var $async$_batchAndSendEvents$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { - if ($async$errorCode === 1) - return A._asyncRethrow($async$result, $async$completer); - while (true) - switch ($async$goto) { - case 0: - // Function start - t1 = $async$self.$ti; - buffer = A._setArrayType([], t1._eval$1("JSArray<1*>")); - lastSendTime = Date.now(); - t2 = $async$self._batchDelayMilliseconds, t1 = t1._eval$1("1*"); - case 2: - // for condition - $async$temp1 = A; - $async$goto = 4; - return A._asyncAwait($async$self._hasEventOrTimeOut$1(B.Duration_100000), $async$_batchAndSendEvents$0); - case 4: - // returning from await. - if (!$async$temp1.boolConversionCheck($async$result)) { - // goto after for - $async$goto = 3; - break; - } - $async$temp1 = A; - $async$goto = 7; - return A._asyncAwait($async$self._hasEventDuring$1(B.Duration_100000), $async$_batchAndSendEvents$0); - case 7: - // returning from await. - $async$goto = $async$temp1.boolConversionCheck($async$result) ? 5 : 6; - break; - case 5: - // then - t3 = $async$self._inputQueue; - t4 = t3.$ti; - t5 = new A._Future($.Zone__current, t4._eval$1("_Future<1>")); - t3._addRequest$1(new A._NextRequest(new A._AsyncCompleter(t5, t4._eval$1("_AsyncCompleter<1>")), t4._eval$1("_NextRequest<1>"))); - $async$temp1 = B.JSArray_methods; - $async$temp2 = buffer; - $async$goto = 8; - return A._asyncAwait(t5, $async$_batchAndSendEvents$0); - case 8: - // returning from await. - $async$temp1.add$1($async$temp2, $async$result); - case 6: - // join - lastSendTime0 = Date.now(); - if (lastSendTime0 > lastSendTime + t2) { - if (buffer.length !== 0) { - t3 = $async$self._outputController; - t4 = A._instanceType(t3); - t5 = t4._precomputed1._as(A.List_List$from(buffer, true, t1)); - t6 = t3._state; - if (t6 >= 4) - A.throwExpression(t3._badEventState$0()); - if ((t6 & 1) !== 0) - t3._sendData$1(t5); - else if ((t6 & 3) === 0) { - t3 = t3._ensurePendingEvents$0(); - t4 = new A._DelayedData(t5, t4._eval$1("_DelayedData<1>")); - lastEvent = t3.lastPendingEvent; - if (lastEvent == null) - t3.firstPendingEvent = t3.lastPendingEvent = t4; - else { - lastEvent.set$next(0, t4); - t3.lastPendingEvent = t4; - } - } - B.JSArray_methods.clear$0(buffer); - } - lastSendTime = lastSendTime0; - } - // goto for condition - $async$goto = 2; - break; - case 3: - // after for - if (buffer.length !== 0) { - t2 = $async$self._outputController; - t2.add$1(0, A._instanceType(t2)._precomputed1._as(A.List_List$from(buffer, true, t1))); - } - $async$self._completer.complete$1(0, true); - // implicit return - return A._asyncReturn(null, $async$completer); - } - }); - return A._asyncStartSync($async$_batchAndSendEvents$0, $async$completer); - }, - _hasEventOrTimeOut$1(duration) { - return this._inputQueue.get$hasNext().timeout$2$onTimeout(0, duration, new A.BatchedStreamController__hasEventOrTimeOut_closure()); - }, - _hasEventDuring$1(duration) { - return this._inputQueue.get$hasNext().timeout$2$onTimeout(0, duration, new A.BatchedStreamController__hasEventDuring_closure()); - }, - set$_inputController(_inputController) { - this._inputController = this.$ti._eval$1("StreamController<1*>*")._as(_inputController); - }, - set$_inputQueue(_inputQueue) { - this._inputQueue = this.$ti._eval$1("StreamQueue<1*>*")._as(_inputQueue); - }, - set$_outputController(_outputController) { - this._outputController = this.$ti._eval$1("StreamController*>*")._as(_outputController); - } - }; - A.BatchedStreamController__hasEventOrTimeOut_closure.prototype = { - call$0() { - return true; - }, - $signature: 25 - }; - A.BatchedStreamController__hasEventDuring_closure.prototype = { - call$0() { - return false; - }, - $signature: 25 - }; A.main_closure.prototype = { call$0() { var $async$goto = 0, @@ -25354,7 +25204,7 @@ _instance_1_u(_ = A.SseClient.prototype, "get$_onIncomingControlMessage", "_onIncomingControlMessage$1", 5); _instance_1_u(_, "get$_onIncomingMessage", "_onIncomingMessage$1", 5); _instance_0_u(_, "get$_onOutgoingDone", "_onOutgoingDone$0", 0); - _instance_1_u(_, "get$_onOutgoingMessage", "_onOutgoingMessage$1", 61); + _instance_1_u(_, "get$_onOutgoingMessage", "_onOutgoingMessage$1", 62); _instance_1_u(_ = A.RequireRestarter.prototype, "get$_moduleParents", "_moduleParents$1", 81); _instance_2_u(_, "get$_moduleTopologicalCompare", "_moduleTopologicalCompare$2", 82); })(); @@ -25364,7 +25214,7 @@ _inherit = hunkHelpers.inherit, _inheritMany = hunkHelpers.inheritMany; _inherit(A.Object, null); - _inheritMany(A.Object, [A.JS_CONST, J.Interceptor, J.ArrayIterator, A.Iterable, A.CastIterator, A.Closure, A.MapMixin, A.Error, A.SentinelValue, A.ListIterator, A.Iterator, A.EmptyIterator, A.FixedLengthListMixin, A.UnmodifiableListMixin, A._ListBase_Object_ListMixin, A.Symbol, A.MapView, A.ConstantMap, A.JSInvocationMirror, A.TypeErrorDecoder, A.NullThrownFromJavaScriptException, A.ExceptionAndStackTrace, A._StackTrace, A._Required, A.LinkedHashMapCell, A.LinkedHashMapKeyIterator, A.JSSyntaxRegExp, A._MatchImplementation, A._AllMatchesIterator, A.StringMatch, A._StringAllMatchesIterator, A._Cell, A.Rti, A._FunctionParameters, A._Type, A._TimerImpl, A._AsyncAwaitCompleter, A.AsyncError, A._Completer, A._FutureListener, A._Future, A._AsyncCallbackEntry, A.Stream, A.StreamSubscription, A.StreamTransformerBase, A._StreamController, A._SyncStreamControllerDispatch, A._AsyncStreamControllerDispatch, A._BufferingStreamSubscription, A._StreamSinkWrapper, A._DelayedEvent, A._DelayedDone, A._PendingEvents, A._StreamIterator, A._ZoneFunction, A._ZoneSpecification, A._ZoneDelegate, A._Zone, A._HashMapKeyIterator, A.__SetBase_Object_SetMixin, A._HashSetIterator, A._LinkedHashSetCell, A._LinkedHashSetIterator, A.IterableMixin, A.ListMixin, A._UnmodifiableMapMixin, A._ListQueueIterator, A.SetMixin, A._SplayTreeNode, A._SplayTree, A._SplayTreeIterator, A.Codec, A._JsonStringifier, A._Utf8Encoder, A._BigIntImpl, A.DateTime, A.Duration, A.OutOfMemoryError, A.StackOverflowError, A._Exception, A.FormatException, A.IntegerDivisionByZeroException, A.Null, A._StringStackTrace, A.StringBuffer, A._Uri, A.UriData, A._SimpleUri, A.Expando, A.CssStyleDeclarationBase, A.EventStreamProvider, A._Html5NodeValidator, A.ImmutableListMixin, A.NodeValidatorBuilder, A._SimpleNodeValidator, A._SvgNodeValidator, A.FixedSizeListIterator, A._DOMWindowCrossFrame, A._SameOriginUriPolicy, A._ValidatingTreeSanitizer, A._StructuredClone, A._AcceptStructuredClone, A.JsObject, A.NullRejectionException, A._JSRandom, A._Random, A.AsyncMemoizer, A.DelegatingStreamSink, A.ErrorResult, A.ValueResult, A.StreamQueue, A._NextRequest, A._HasNextRequest, A.CopyOnWriteList, A.BuiltList, A.ListBuilder, A.BuiltListMultimap, A.ListMultimapBuilder, A.BuiltMap, A.MapBuilder, A.BuiltSet, A.SetBuilder, A.BuiltSetMultimap, A.SetMultimapBuilder, A.EnumClass, A.IndentingBuiltValueToStringHelper, A.JsonObject, A.FullType, A.BigIntSerializer, A.BoolSerializer, A.BuiltJsonSerializers, A.BuiltJsonSerializersBuilder, A.BuiltListMultimapSerializer, A.BuiltListSerializer, A.BuiltMapSerializer, A.BuiltSetMultimapSerializer, A.BuiltSetSerializer, A.DateTimeSerializer, A.DoubleSerializer, A.DurationSerializer, A.Int64Serializer, A.IntSerializer, A.JsonObjectSerializer, A.NullSerializer, A.NumSerializer, A.RegExpSerializer, A.StringSerializer, A.UriSerializer, A.DefaultEquality, A.IterableEquality, A.ListEquality, A._UnorderedEquality, A._MapEntry, A.MapEquality, A.DeepCollectionEquality, A._QueueList_Object_ListMixin, A.BuildResult, A._$BuildStatusSerializer, A._$BuildResultSerializer, A.BuildResultBuilder, A.ConnectRequest, A._$ConnectRequestSerializer, A.ConnectRequestBuilder, A.DebugEvent, A.BatchedDebugEvents, A._$DebugEventSerializer, A._$BatchedDebugEventsSerializer, A.DebugEventBuilder, A.BatchedDebugEventsBuilder, A.DevToolsRequest, A.DevToolsResponse, A._$DevToolsRequestSerializer, A._$DevToolsResponseSerializer, A.DevToolsRequestBuilder, A.DevToolsResponseBuilder, A.ErrorResponse, A._$ErrorResponseSerializer, A.ErrorResponseBuilder, A.ExtensionRequest, A.ExtensionResponse, A.ExtensionEvent, A.BatchedEvents, A._$ExtensionRequestSerializer, A._$ExtensionResponseSerializer, A._$ExtensionEventSerializer, A._$BatchedEventsSerializer, A.ExtensionRequestBuilder, A.ExtensionResponseBuilder, A.ExtensionEventBuilder, A.BatchedEventsBuilder, A.IsolateExit, A.IsolateStart, A._$IsolateExitSerializer, A._$IsolateStartSerializer, A.IsolateExitBuilder, A.IsolateStartBuilder, A.RegisterEvent, A._$RegisterEventSerializer, A.RegisterEventBuilder, A.RunRequest, A._$RunRequestSerializer, A.SocketClient, A.Int64, A.Level, A.LogRecord, A.Logger, A.Pool, A.PoolResource, A.StreamChannelMixin, A._GuaranteeSink, A.StreamChannelController, A.Uuid, A.WebSocketChannelException, A.BatchedStreamController, A.LegacyRestarter, A.ReloadingManager, A.HotReloadFailedException, A.RequireRestarter]); + _inheritMany(A.Object, [A.JS_CONST, J.Interceptor, J.ArrayIterator, A.Iterable, A.CastIterator, A.Closure, A.MapMixin, A.Error, A.SentinelValue, A.ListIterator, A.Iterator, A.EmptyIterator, A.FixedLengthListMixin, A.UnmodifiableListMixin, A._ListBase_Object_ListMixin, A.Symbol, A.MapView, A.ConstantMap, A.JSInvocationMirror, A.TypeErrorDecoder, A.NullThrownFromJavaScriptException, A.ExceptionAndStackTrace, A._StackTrace, A._Required, A.LinkedHashMapCell, A.LinkedHashMapKeyIterator, A.JSSyntaxRegExp, A._MatchImplementation, A._AllMatchesIterator, A.StringMatch, A._StringAllMatchesIterator, A._Cell, A.Rti, A._FunctionParameters, A._Type, A._TimerImpl, A._AsyncAwaitCompleter, A.AsyncError, A._Completer, A._FutureListener, A._Future, A._AsyncCallbackEntry, A.Stream, A.StreamSubscription, A.StreamTransformerBase, A._StreamController, A._SyncStreamControllerDispatch, A._AsyncStreamControllerDispatch, A._BufferingStreamSubscription, A._StreamSinkWrapper, A._DelayedEvent, A._DelayedDone, A._PendingEvents, A._StreamIterator, A._ZoneFunction, A._RunNullaryZoneFunction, A._RunUnaryZoneFunction, A._RunBinaryZoneFunction, A._RegisterNullaryZoneFunction, A._RegisterUnaryZoneFunction, A._RegisterBinaryZoneFunction, A._ZoneSpecification, A._ZoneDelegate, A._Zone, A._HashMapKeyIterator, A.__SetBase_Object_SetMixin, A._HashSetIterator, A._LinkedHashSetCell, A._LinkedHashSetIterator, A.IterableMixin, A.ListMixin, A._UnmodifiableMapMixin, A._ListQueueIterator, A.SetMixin, A._SplayTreeNode, A._SplayTree, A._SplayTreeIterator, A.Codec, A._JsonStringifier, A._Utf8Encoder, A._BigIntImpl, A.DateTime, A.Duration, A.OutOfMemoryError, A.StackOverflowError, A._Exception, A.FormatException, A.IntegerDivisionByZeroException, A.Null, A._StringStackTrace, A.StringBuffer, A._Uri, A.UriData, A._SimpleUri, A.Expando, A.CssStyleDeclarationBase, A.EventStreamProvider, A._Html5NodeValidator, A.ImmutableListMixin, A.NodeValidatorBuilder, A._SimpleNodeValidator, A._SvgNodeValidator, A.FixedSizeListIterator, A._DOMWindowCrossFrame, A._SameOriginUriPolicy, A._ValidatingTreeSanitizer, A._StructuredClone, A._AcceptStructuredClone, A.JsObject, A.NullRejectionException, A._JSRandom, A._Random, A.AsyncMemoizer, A.DelegatingStreamSink, A.ErrorResult, A.ValueResult, A.StreamQueue, A._NextRequest, A._HasNextRequest, A.CopyOnWriteList, A.BuiltList, A.ListBuilder, A.BuiltListMultimap, A.ListMultimapBuilder, A.BuiltMap, A.MapBuilder, A.BuiltSet, A.SetBuilder, A.BuiltSetMultimap, A.SetMultimapBuilder, A.EnumClass, A.IndentingBuiltValueToStringHelper, A.JsonObject, A.FullType, A.BigIntSerializer, A.BoolSerializer, A.BuiltJsonSerializers, A.BuiltJsonSerializersBuilder, A.BuiltListMultimapSerializer, A.BuiltListSerializer, A.BuiltMapSerializer, A.BuiltSetMultimapSerializer, A.BuiltSetSerializer, A.DateTimeSerializer, A.DoubleSerializer, A.DurationSerializer, A.Int64Serializer, A.IntSerializer, A.JsonObjectSerializer, A.NullSerializer, A.NumSerializer, A.RegExpSerializer, A.StringSerializer, A.UriSerializer, A.DefaultEquality, A.IterableEquality, A.ListEquality, A._UnorderedEquality, A._MapEntry, A.MapEquality, A.DeepCollectionEquality, A._QueueList_Object_ListMixin, A.BuildResult, A._$BuildStatusSerializer, A._$BuildResultSerializer, A.BuildResultBuilder, A.ConnectRequest, A._$ConnectRequestSerializer, A.ConnectRequestBuilder, A.DebugEvent, A.BatchedDebugEvents, A._$DebugEventSerializer, A._$BatchedDebugEventsSerializer, A.DebugEventBuilder, A.BatchedDebugEventsBuilder, A.DevToolsRequest, A.DevToolsResponse, A._$DevToolsRequestSerializer, A._$DevToolsResponseSerializer, A.DevToolsRequestBuilder, A.DevToolsResponseBuilder, A.ErrorResponse, A._$ErrorResponseSerializer, A.ErrorResponseBuilder, A.ExtensionRequest, A.ExtensionResponse, A.ExtensionEvent, A.BatchedEvents, A._$ExtensionRequestSerializer, A._$ExtensionResponseSerializer, A._$ExtensionEventSerializer, A._$BatchedEventsSerializer, A.ExtensionRequestBuilder, A.ExtensionResponseBuilder, A.ExtensionEventBuilder, A.BatchedEventsBuilder, A.IsolateExit, A.IsolateStart, A._$IsolateExitSerializer, A._$IsolateStartSerializer, A.IsolateExitBuilder, A.IsolateStartBuilder, A.RegisterEvent, A._$RegisterEventSerializer, A.RegisterEventBuilder, A.RunRequest, A._$RunRequestSerializer, A.SocketClient, A.BatchedStreamController, A.Int64, A.Level, A.LogRecord, A.Logger, A.Pool, A.PoolResource, A.StreamChannelMixin, A._GuaranteeSink, A.StreamChannelController, A.Uuid, A.WebSocketChannelException, A.LegacyRestarter, A.ReloadingManager, A.HotReloadFailedException, A.RequireRestarter]); _inheritMany(J.Interceptor, [J.JSBool, J.JSNull, J.JavaScriptObject, J.JSArray, J.JSNumber, J.JSString, A.NativeByteBuffer, A.NativeTypedData]); _inheritMany(J.JavaScriptObject, [J.LegacyJavaScriptObject, A.EventTarget, A.AccessibleNodeList, A.Blob, A.Event, A.CssTransformComponent, A.CssRule, A._CssStyleDeclaration_JavaScriptObject_CssStyleDeclarationBase, A.CssStyleValue, A.DataTransferItemList, A.DomException, A.DomImplementation, A._DomRectList_JavaScriptObject_ListMixin, A.DomRectReadOnly, A._DomStringList_JavaScriptObject_ListMixin, A.DomTokenList, A._FileList_JavaScriptObject_ListMixin, A.Gamepad, A.History, A._HtmlCollection_JavaScriptObject_ListMixin, A.ImageData, A.Location, A.MediaList, A._MidiInputMap_JavaScriptObject_MapMixin, A._MidiOutputMap_JavaScriptObject_MapMixin, A.MimeType, A._MimeTypeArray_JavaScriptObject_ListMixin, A._NodeList_JavaScriptObject_ListMixin, A.Plugin, A._PluginArray_JavaScriptObject_ListMixin, A._RtcStatsReport_JavaScriptObject_MapMixin, A.SpeechGrammar, A._SpeechGrammarList_JavaScriptObject_ListMixin, A.SpeechRecognitionResult, A._Storage_JavaScriptObject_MapMixin, A.StyleSheet, A._TextTrackCueList_JavaScriptObject_ListMixin, A.TimeRanges, A.Touch, A._TouchList_JavaScriptObject_ListMixin, A.TrackDefaultList, A.Url, A.__CssRuleList_JavaScriptObject_ListMixin, A.__GamepadList_JavaScriptObject_ListMixin, A.__NamedNodeMap_JavaScriptObject_ListMixin, A.__SpeechRecognitionResultList_JavaScriptObject_ListMixin, A.__StyleSheetList_JavaScriptObject_ListMixin, A.KeyRange, A.Length, A._LengthList_JavaScriptObject_ListMixin, A.Number, A._NumberList_JavaScriptObject_ListMixin, A.PointList, A._StringList_JavaScriptObject_ListMixin, A.Transform, A._TransformList_JavaScriptObject_ListMixin, A.AudioBuffer, A._AudioParamMap_JavaScriptObject_MapMixin]); _inheritMany(J.LegacyJavaScriptObject, [J.PlainJavaScriptObject, J.UnknownJavaScriptObject, J.JavaScriptFunction, A.Promise, A.RequireLoader, A.JsError, A.JsMap]); @@ -25380,7 +25230,7 @@ _inherit(A.MapBase, A.MapMixin); _inheritMany(A.MapBase, [A.CastMap, A.JsLinkedHashMap, A._HashMap, A._JsonMap, A._AttributeMap]); _inheritMany(A.Error, [A.LateError, A.ReachabilityError, A.NotNullableError, A.TypeError, A.JsNoSuchMethodError, A.UnknownJsTypeError, A.RuntimeError, A.AssertionError, A._Error, A.JsonUnsupportedObjectError, A.NullThrownError, A.ArgumentError, A.NoSuchMethodError, A.UnsupportedError, A.UnimplementedError, A.StateError, A.ConcurrentModificationError, A.CyclicInitializationError, A.BuiltValueNullFieldError, A.BuiltValueNestedFieldError, A.DeserializationError]); - _inheritMany(A.Closure0Args, [A.nullFuture_closure, A._AsyncRun__scheduleImmediateJsOverride_internalCallback, A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback, A._TimerImpl_internalCallback, A._TimerImpl$periodic_closure, A.Future_Future$microtask_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._Future_timeout_closure, A.Stream_length_closure0, A.Stream_first_closure, A._StreamController__subscribe_closure, A._StreamController__recordCancel_complete, A._BufferingStreamSubscription_asFuture_closure, A._BufferingStreamSubscription_asFuture__closure, A._BufferingStreamSubscription__sendError_sendError, A._BufferingStreamSubscription__sendDone_sendDone, A._PendingEvents_schedule_closure, A._cancelAndValue_closure, A._CustomZone_bindCallback_closure, A._CustomZone_bindCallbackGuarded_closure, A._rootHandleError_closure, A._RootZone_bindCallback_closure, A._RootZone_bindCallbackGuarded_closure, A.StreamQueue__ensureListening_closure0, A.Serializers_Serializers_closure, A.Serializers_Serializers_closure0, A.Serializers_Serializers_closure1, A.Serializers_Serializers_closure2, A.Serializers_Serializers_closure3, A._$serializers_closure, A._$serializers_closure0, A.Logger_Logger_closure, A.SseClient_closure, A.SseClient__closure, A.SseClient__onOutgoingMessage_closure, A.GuaranteeChannel_closure, A.GuaranteeChannel__closure, A.HtmlWebSocketChannel__listen_closure, A.BatchedStreamController__hasEventOrTimeOut_closure, A.BatchedStreamController__hasEventDuring_closure, A.main_closure, A.main__closure3, A.RequireRestarter__reload_closure, A.RequireRestarter__reloadModule_closure, A._createScript_closure, A._createScript__closure, A._createScript__closure0]); + _inheritMany(A.Closure0Args, [A.nullFuture_closure, A._AsyncRun__scheduleImmediateJsOverride_internalCallback, A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback, A._TimerImpl_internalCallback, A._TimerImpl$periodic_closure, A.Future_Future$microtask_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._Future_timeout_closure, A.Stream_length_closure0, A.Stream_first_closure, A._StreamController__subscribe_closure, A._StreamController__recordCancel_complete, A._BufferingStreamSubscription_asFuture_closure, A._BufferingStreamSubscription_asFuture__closure, A._BufferingStreamSubscription__sendError_sendError, A._BufferingStreamSubscription__sendDone_sendDone, A._PendingEvents_schedule_closure, A._cancelAndValue_closure, A._CustomZone_bindCallback_closure, A._CustomZone_bindCallbackGuarded_closure, A._rootHandleError_closure, A._RootZone_bindCallback_closure, A._RootZone_bindCallbackGuarded_closure, A.StreamQueue__ensureListening_closure0, A.Serializers_Serializers_closure, A.Serializers_Serializers_closure0, A.Serializers_Serializers_closure1, A.Serializers_Serializers_closure2, A.Serializers_Serializers_closure3, A._$serializers_closure, A._$serializers_closure0, A.BatchedStreamController__hasEventOrTimeOut_closure, A.BatchedStreamController__hasEventDuring_closure, A.Logger_Logger_closure, A.SseClient_closure, A.SseClient__closure, A.SseClient__onOutgoingMessage_closure, A.GuaranteeChannel_closure, A.GuaranteeChannel__closure, A.HtmlWebSocketChannel__listen_closure, A.main_closure, A.main__closure3, A.RequireRestarter__reload_closure, A.RequireRestarter__reloadModule_closure, A._createScript_closure, A._createScript__closure, A._createScript__closure0]); _inheritMany(A.EfficientLengthIterable, [A.ListIterable, A.EmptyIterable, A.LinkedHashMapKeyIterable, A._HashMapKeyIterable]); _inheritMany(A.ListIterable, [A.SubListIterable, A.MappedListIterable, A.ReversedListIterable, A.ListQueue, A._JsonMapKeyIterable]); _inherit(A.EfficientLengthMappedIterable, A.MappedIterable); @@ -25597,7 +25447,7 @@ 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: ["~()", "@(@)", "Null()", "Object?(@)", "~(@)", "~(Event)", "~(String,@)", "Null(@)", "Null(Object,StackTrace)", "~(@,@)", "~(~())", "bool(@)", "Set<0^>()", "bool(Object?,Object?)", "int(Object?)", "int(@,@)", "~(Object?)", "~(Object?,Object?)", "~(Symbol0,@)", "int(int,int)", "int(int)", "String(String)", "~(Uint8List,String,int)", "bool(Element,String,String,_Html5NodeValidator)", "ScriptElement*()", "bool*()", "Null(Event)", "Object?(Object?)", "~(Object[StackTrace?])", "String(int,int)", "bool(String)", "~(Object,StackTrace)", "bool(NodeValidator)", "Future()", "~(ProgressEvent)", "~(int,@)", "bool(Node)", "Uint8List(@,@)", "~(Node,Node?)", "Null(@,@)", "@(@,@)", "@(Object?)", "JsFunction(@)", "JsArray<@>(@)", "JsObject(@)", "int(int,@)", "IndentingBuiltValueToStringHelper(String)", "ListBuilder()", "ListMultimapBuilder()", "MapBuilder()", "SetBuilder()", "~(String,String)", "~(String,int?)", "~(String,int)", "~([Object?])", "Null(@,StackTrace)", "bool(Object?)", "ListBuilder()", "ListBuilder()", "String*(@)", "Logger()", "~(String?)", "Null(~())", "@(@,String)", "~(MessageEvent)", "Null(CloseEvent)", "~(Zone,ZoneDelegate,Zone,Object,StackTrace)", "Future*()", "bool(Object,Object)", "Null(List*)", "ListBuilder*(BatchedDebugEventsBuilder*)", "Null(String*,String*)", "DebugEventBuilder*(DebugEventBuilder*)", "Null(String*)", "RegisterEventBuilder*(RegisterEventBuilder*)", "DevToolsRequestBuilder*(DevToolsRequestBuilder*)", "Future*(String*)", "Null(Event*)", "ConnectRequestBuilder*(ConnectRequestBuilder*)", "Null(Object*,StackTrace*)", "Null(MessageEvent*)", "List*(String*)", "int*(String*,String*)", "~(JsError*)", "ScriptElement*()*()", "~(@,StackTrace)", "Promise<1&>*(String*)", "@(String)", "~(Zone?,ZoneDelegate?,Zone,Object,StackTrace)", "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,Duration,~(Timer))", "~(Zone,ZoneDelegate,Zone,String)", "~(String)", "Zone(Zone?,ZoneDelegate?,Zone,ZoneSpecification?,Map?)", "_Future<@>(@)", "SetMultimapBuilder()"], + types: ["~()", "@(@)", "Null()", "Object?(@)", "~(@)", "~(Event)", "~(String,@)", "Null(@)", "Null(Object,StackTrace)", "~(@,@)", "~(~())", "bool(@)", "Set<0^>()", "bool(Object?,Object?)", "int(Object?)", "int(@,@)", "~(Object?)", "~(Object?,Object?)", "~(Symbol0,@)", "int(int,int)", "int(int)", "String(String)", "~(Uint8List,String,int)", "bool(Element,String,String,_Html5NodeValidator)", "ScriptElement*()", "Null(Event)", "String(int,int)", "Object?(Object?)", "~(Object[StackTrace?])", "bool*()", "bool(String)", "~(Object,StackTrace)", "bool(NodeValidator)", "Future()", "~(ProgressEvent)", "~(int,@)", "bool(Node)", "Uint8List(@,@)", "~(Node,Node?)", "Null(@,@)", "@(@,@)", "@(Object?)", "JsFunction(@)", "JsArray<@>(@)", "JsObject(@)", "int(int,@)", "IndentingBuiltValueToStringHelper(String)", "ListBuilder()", "ListMultimapBuilder()", "MapBuilder()", "SetBuilder()", "~(String,String)", "~(String,int?)", "~(String,int)", "~([Object?])", "Null(@,StackTrace)", "bool(Object?)", "ListBuilder()", "ListBuilder()", "String*(@)", "Null(~())", "Logger()", "~(String?)", "@(@,String)", "~(Zone,ZoneDelegate,Zone,Object,StackTrace)", "~(MessageEvent)", "Null(CloseEvent)", "Future*()", "bool(Object,Object)", "Null(List*)", "ListBuilder*(BatchedDebugEventsBuilder*)", "Null(String*,String*)", "DebugEventBuilder*(DebugEventBuilder*)", "Null(String*)", "RegisterEventBuilder*(RegisterEventBuilder*)", "DevToolsRequestBuilder*(DevToolsRequestBuilder*)", "Future*(String*)", "Null(Event*)", "ConnectRequestBuilder*(ConnectRequestBuilder*)", "Null(Object*,StackTrace*)", "Null(MessageEvent*)", "List*(String*)", "int*(String*,String*)", "~(JsError*)", "ScriptElement*()*()", "~(@,StackTrace)", "Promise<1&>*(String*)", "@(String)", "~(Zone?,ZoneDelegate?,Zone,Object,StackTrace)", "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,Duration,~(Timer))", "~(Zone,ZoneDelegate,Zone,String)", "~(String)", "Zone(Zone?,ZoneDelegate?,Zone,ZoneSpecification?,Map?)", "_Future<@>(@)", "SetMultimapBuilder()"], interceptorsByTag: null, leafTags: null, arrayRti: Symbol("$ti") @@ -26160,19 +26010,19 @@ B.Type_Uri_EFX = A.typeLiteral("Uri"); B.Type_double_K1J = A.typeLiteral("double"); B.Type_num_cv7 = A.typeLiteral("num"); + B._RegisterBinaryZoneFunction_kGu = new A._RegisterBinaryZoneFunction(B.C__RootZone, A.async___rootRegisterBinaryCallback$closure()); + B._RegisterNullaryZoneFunction__RootZone__rootRegisterCallback = new A._RegisterNullaryZoneFunction(B.C__RootZone, A.async___rootRegisterCallback$closure()); + B._RegisterUnaryZoneFunction_Bqo = new A._RegisterUnaryZoneFunction(B.C__RootZone, A.async___rootRegisterUnaryCallback$closure()); + B._RunBinaryZoneFunction__RootZone__rootRunBinary = new A._RunBinaryZoneFunction(B.C__RootZone, A.async___rootRunBinary$closure()); + B._RunNullaryZoneFunction__RootZone__rootRun = new A._RunNullaryZoneFunction(B.C__RootZone, A.async___rootRun$closure()); + B._RunUnaryZoneFunction__RootZone__rootRunUnary = new A._RunUnaryZoneFunction(B.C__RootZone, A.async___rootRunUnary$closure()); B._StringStackTrace_3uE = new A._StringStackTrace(""); 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); })(); diff --git a/dwds/lib/src/version.dart b/dwds/lib/src/version.dart index 45b0b4513..4eaa47d98 100644 --- a/dwds/lib/src/version.dart +++ b/dwds/lib/src/version.dart @@ -1,2 +1,2 @@ // Generated code. Do not modify. -const packageVersion = '14.0.3-dev'; +const packageVersion = '14.0.3'; diff --git a/dwds/pubspec.yaml b/dwds/pubspec.yaml index 4c333e582..471750663 100644 --- a/dwds/pubspec.yaml +++ b/dwds/pubspec.yaml @@ -1,6 +1,6 @@ name: dwds # Every time this changes you need to run `dart run build_runner build`. -version: 14.0.3-dev +version: 14.0.3 description: >- A service that proxies between the Chrome debug protocol and the Dart VM service protocol.