Commit a4dc873
authored
This PR adds another `Int64` implementation that is just a wrapper around
`int`, to be used in targets where `int` is 64 bits.
Because `dart doc` generates using the native class, all documentation comments
are moved to the native class.
The conditional import is implemented based on availability of the library
`dart:html`, which is only available on dart2js.
Improves #172. It could be further improved by having `Int64` as an extension
class when targeting native and Wasm, but that would be a breaking change, and
we would have to remove the `IntX` superclass as extensions cannot extend or
implement other classes.
1 parent 1aa58ef commit a4dc873
File tree
8 files changed
+1396
-1139
lines changed- pkgs/fixnum
- lib
- src
- test
8 files changed
+1396
-1139
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
325 | | - | |
326 | 324 | | |
327 | 325 | | |
328 | 326 | | |
| |||
437 | 435 | | |
438 | 436 | | |
439 | 437 | | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
444 | 442 | | |
445 | 443 | | |
446 | 444 | | |
| |||
0 commit comments