Skip to content

Commit 7a53d21

Browse files
committed
Add variadic arguments.
1 parent c2d5f63 commit 7a53d21

File tree

181 files changed

+531
-263
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+531
-263
lines changed

web/CHANGELOG.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
## 1.2.0-wip
22
- Added missing `FileReader` event getters: `onAbort`, `onError`, `onLoad`,
33
`onLoadStart`, `onProgress`.
4-
- Removed renames `UnderlyingSource` and `UnderlyingSourceBase` where the types
4+
- Removed renames `UnderlyingSource` and `UnderlyingSourceBase` where the types
55
don't exist.
6+
- Add variadic arguments.
67

78
## 1.1.0
89

9-
- Added `HttpStatus` class that declares http status codes. This is a copy of
10+
- Added `HttpStatus` class that declares http status codes. This is a copy of
1011
the `HttpStatus` from the `dart:_internal` library that's exposed only through
1112
`dart:io` and `dart:html`.
1213
- Added `JSImmutableListWrapper` which helps create a dart list from a JS list.

web/lib/src/dom.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

web/lib/src/dom/accelerometer.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/angle_instanced_arrays.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/attribution_reporting_api.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/background_sync.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/battery_status.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/clipboard_apis.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/compression.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/console.dart

+65-14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//
@@ -47,35 +47,86 @@ external $Console get console;
4747
@JS('console')
4848
extension type $Console._(JSObject _) implements JSObject {
4949
@JS('assert')
50-
external void assert_(
51-
JSAny? data, [
50+
external void assert_([
5251
bool condition,
52+
JSAny? data1,
53+
JSAny? data2,
54+
JSAny? data3,
55+
JSAny? data4,
5356
]);
5457
external void clear();
55-
external void debug(JSAny? data);
56-
external void error(JSAny? data);
57-
external void info(JSAny? data);
58-
external void log(JSAny? data);
58+
external void debug([
59+
JSAny? data1,
60+
JSAny? data2,
61+
JSAny? data3,
62+
JSAny? data4,
63+
]);
64+
external void error([
65+
JSAny? data1,
66+
JSAny? data2,
67+
JSAny? data3,
68+
JSAny? data4,
69+
]);
70+
external void info([
71+
JSAny? data1,
72+
JSAny? data2,
73+
JSAny? data3,
74+
JSAny? data4,
75+
]);
76+
external void log([
77+
JSAny? data1,
78+
JSAny? data2,
79+
JSAny? data3,
80+
JSAny? data4,
81+
]);
5982
external void table([
6083
JSAny? tabularData,
6184
JSArray<JSString> properties,
6285
]);
63-
external void trace(JSAny? data);
64-
external void warn(JSAny? data);
86+
external void trace([
87+
JSAny? data1,
88+
JSAny? data2,
89+
JSAny? data3,
90+
JSAny? data4,
91+
]);
92+
external void warn([
93+
JSAny? data1,
94+
JSAny? data2,
95+
JSAny? data3,
96+
JSAny? data4,
97+
]);
6598
external void dir([
6699
JSAny? item,
67100
JSObject? options,
68101
]);
69-
external void dirxml(JSAny? data);
102+
external void dirxml([
103+
JSAny? data1,
104+
JSAny? data2,
105+
JSAny? data3,
106+
JSAny? data4,
107+
]);
70108
external void count([String label]);
71109
external void countReset([String label]);
72-
external void group(JSAny? data);
73-
external void groupCollapsed(JSAny? data);
110+
external void group([
111+
JSAny? data1,
112+
JSAny? data2,
113+
JSAny? data3,
114+
JSAny? data4,
115+
]);
116+
external void groupCollapsed([
117+
JSAny? data1,
118+
JSAny? data2,
119+
JSAny? data3,
120+
JSAny? data4,
121+
]);
74122
external void groupEnd();
75123
external void time([String label]);
76-
external void timeLog(
77-
JSAny? data, [
124+
external void timeLog([
78125
String label,
126+
JSAny? data1,
127+
JSAny? data2,
128+
JSAny? data3,
129+
JSAny? data4,
79130
]);
80131
external void timeEnd([String label]);
81132
}

web/lib/src/dom/cookie_store.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/credential_management.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/csp.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/css_animations.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/css_animations_2.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/css_cascade.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/css_cascade_6.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/css_conditional.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/css_conditional_5.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/css_contain.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/css_counter_styles.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/css_font_loading.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/css_fonts.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/css_highlight_api.dart

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//
@@ -37,7 +37,12 @@ typedef HighlightType = String;
3737
/// API documentation sourced from
3838
/// [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/Highlight).
3939
extension type Highlight._(JSObject _) implements JSObject {
40-
external factory Highlight(AbstractRange initialRanges);
40+
external factory Highlight([
41+
AbstractRange initialRange1,
42+
AbstractRange initialRange2,
43+
AbstractRange initialRange3,
44+
AbstractRange initialRange4,
45+
]);
4146

4247
/// It is possible to create [Range] objects that overlap in a document.
4348
///

web/lib/src/dom/css_masking.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/css_paint_api.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/css_properties_values_api.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/css_transitions.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

web/lib/src/dom/css_transitions_2.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44
//

0 commit comments

Comments
 (0)