This repository was archived by the owner on Oct 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +15
-31
lines changed Expand file tree Collapse file tree 7 files changed +15
-31
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.1.1-wip
2
+
3
+ * Require Dart ` ^3.1.0 `
4
+
1
5
## 1.1.0
2
6
3
7
* Add ` tryParseRadix ` , ` tryParseInt ` and ` tryParseHex ` static methods
Original file line number Diff line number Diff line change 1
- include : package:lints/recommended .yaml
1
+ include : package:dart_flutter_team_lints/analysis_options .yaml
2
2
3
3
analyzer :
4
4
language :
5
5
strict-casts : true
6
6
7
7
linter :
8
8
rules :
9
- - avoid_catching_errors
10
- - avoid_dynamic_calls
11
9
- avoid_private_typedef_functions
12
10
- avoid_returning_null
13
11
- avoid_unused_constructor_parameters
14
12
- cancel_subscriptions
15
13
- cascade_invocations
16
- - comment_references
17
- - directives_ordering
18
14
- join_return_with_assignment
19
- - lines_longer_than_80_chars
20
15
- missing_whitespace_between_adjacent_strings
21
16
- no_adjacent_strings_in_list
22
17
- no_runtimeType_toString
23
- - only_throw_errors
24
18
- package_api_docs
25
- - prefer_asserts_in_initializer_lists
26
- - prefer_const_constructors
27
19
- prefer_const_declarations
28
20
- prefer_expression_function_bodies
29
- - prefer_interpolation_to_compose_strings
30
- - prefer_relative_imports
31
- - sort_pub_dependencies
32
- - test_types_in_equals
33
- - throw_in_finally
34
- - type_annotate_public_apis
35
- - unnecessary_lambdas
36
- - unnecessary_null_aware_assignments
37
- - unnecessary_parenthesis
38
21
- unnecessary_raw_strings
39
- - unnecessary_statements
40
- - use_is_even_rather_than_modulo
41
22
- use_string_buffers
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ class Int64 implements IntX {
267
267
268
268
// Returns the [Int64] representation of the specified value. Throws
269
269
// [ArgumentError] for non-integer arguments.
270
- static Int64 _promote (value) {
270
+ static Int64 _promote (Object value) {
271
271
if (value is Int64 ) {
272
272
return value;
273
273
} else if (value is int ) {
@@ -968,7 +968,7 @@ class Int64 implements IntX {
968
968
969
969
// Implementation of '~/', '%' and 'remainder'.
970
970
971
- static Int64 _divide (Int64 a, other, int what) {
971
+ static Int64 _divide (Int64 a, Object other, int what) {
972
972
Int64 b = _promote (other);
973
973
if (b.isZero) {
974
974
throw UnsupportedError ('Division by zero' );
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ int validateRadix(int radix) =>
16
16
/// not a valid digit in any radix in the range 2 through 36.
17
17
int decodeDigit (int c) {
18
18
// Hex digit char codes
19
- const int c0 = 48 ; // '0'.codeUnitAt(0)
20
- const int ca = 97 ; // 'a'.codeUnitAt(0)
19
+ const c0 = 48 ; // '0'.codeUnitAt(0)
20
+ const ca = 97 ; // 'a'.codeUnitAt(0)
21
21
22
- int digit = c ^ c0;
22
+ var digit = c ^ c0;
23
23
if (digit < 10 ) return digit;
24
- int letter = (c | 0x20 ) - ca;
24
+ var letter = (c | 0x20 ) - ca;
25
25
if (letter >= 0 ) {
26
26
// Returns values above 36 for invalid digits.
27
27
// The value is checked against the actual radix where the return
Original file line number Diff line number Diff line change 1
1
name : fixnum
2
- version : 1.1.0
2
+ version : 1.1.1-wip
3
3
description : >-
4
4
Library for 32- and 64-bit signed fixed-width integers with consistent
5
5
behavior between native and JS runtimes.
6
6
repository : https://github.com/dart-lang/fixnum
7
7
8
8
environment :
9
- sdk : ' >=2.19.0 <3.0.0 '
9
+ sdk : ^3.1.0
10
10
11
11
dev_dependencies :
12
- lints : ^2.0.0
12
+ dart_flutter_team_lints : ^2.0.0
13
13
test : ^1.16.0
Original file line number Diff line number Diff line change 7
7
//
8
8
// ignore_for_file: omit_local_variable_types
9
9
10
- library int64test;
11
-
12
10
import 'package:fixnum/fixnum.dart' ;
13
11
import 'package:test/test.dart' ;
14
12
Original file line number Diff line number Diff line change 3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
5
@TestOn ('vm' )
6
+ library ;
6
7
7
8
import 'package:fixnum/fixnum.dart' ;
8
9
import 'package:test/test.dart' ;
You can’t perform that action at this time.
0 commit comments