Skip to content

Commit

Permalink
Dart 3.2 requirement.
Browse files Browse the repository at this point in the history
  • Loading branch information
renggli committed Nov 17, 2023
1 parent 726d4c6 commit 2340db0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 21 deletions.
18 changes: 1 addition & 17 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ linter:
- camel_case_types
- combinators_ordering
- comment_references
- dangling_library_doc_comments
- implicit_call_tearoffs
- invalid_case_patterns
- no_self_assignments
- no_wildcard_variable_uses
Expand All @@ -24,29 +22,15 @@ linter:
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
- prefer_expression_function_bodies
- prefer_final_fields
- prefer_final_in_for_each
- prefer_final_locals
- prefer_for_elements_to_map_fromIterable
- prefer_function_declarations_over_variables
- prefer_if_elements_to_conditional_expressions
- prefer_relative_imports
- type_literal_in_constant_pattern
- unnecessary_await_in_return
- unnecessary_brace_in_string_interps
- unnecessary_breaks
- unnecessary_const
- unnecessary_constructor_name
- unnecessary_getters_setters
# - unnecessary_lambdas
- unnecessary_late
- unnecessary_new
- unnecessary_null_aware_assignments
- unnecessary_null_aware_operator_on_extension_on_nullable
- unnecessary_null_checks
- unnecessary_null_in_if_null_operators
- unnecessary_parenthesis
- unnecessary_statements
- unnecessary_to_list_in_spreads
- unreachable_from_main
- use_super_parameters
- unreachable_from_main
4 changes: 2 additions & 2 deletions lib/src/lisp/environment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Environment {
if (_bindings.containsKey(key)) {
return _bindings[key];
} else if (_owner != null) {
return _owner![key];
return _owner[key];
} else {
_invalidBinding(key);
return null;
Expand All @@ -31,7 +31,7 @@ class Environment {
if (_bindings.containsKey(key)) {
_bindings[key] = value;
} else if (_owner != null) {
_owner![key] = value;
_owner[key] = value;
} else {
_invalidBinding(key);
}
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ topics:
- peg

environment:
sdk: ^3.0.0
sdk: ^3.2.0
dependencies:
collection: ^1.18.0
data: ^0.12.0
Expand All @@ -25,7 +25,7 @@ dependencies:
dev_dependencies:
build_runner: ^2.4.0
build_web_compilers: ^4.0.0
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.0
dependency_overrides:
xml:
Expand Down

0 comments on commit 2340db0

Please sign in to comment.