Skip to content

Commit 358ae88

Browse files
sigurdmCommit Queue
authored andcommitted
Move pkg/kernel to language version 3.6
This is in preparation for https://dart-review.googlesource.com/c/sdk/+/397164 as packages in a workspace need a recent language version. Change-Id: If1926192209353fab934efe702391ea10ed3573c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/404581 Reviewed-by: Johnni Winther <[email protected]> Commit-Queue: Sigurd Meldgaard <[email protected]>
1 parent 7f46b33 commit 358ae88

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pkg/kernel/lib/testing/type_parser_environment.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class TypeParserEnvironment {
217217
/* TreeNode | StructuralParameter */ Object lookupDeclaration(String name) {
218218
Object? result = _declarations[name];
219219
if (result == null && _parent != null) {
220-
return _parent!.lookupDeclaration(name);
220+
return _parent.lookupDeclaration(name);
221221
}
222222
if (result == null) throw "Not found: $name";
223223
return result;
@@ -266,7 +266,7 @@ class TypeParserEnvironment {
266266
/// Use this in subclasses to add support for additional predefined types.
267267
DartType? getPredefinedNamedType(String name) {
268268
if (_parent != null) {
269-
return _parent!.getPredefinedNamedType(name);
269+
return _parent.getPredefinedNamedType(name);
270270
}
271271
return null;
272272
}

pkg/kernel/lib/type_environment.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ class StaticTypeContextImpl implements StaticTypeContext {
953953
@override
954954
DartType getExpressionType(Expression node) {
955955
if (_cache != null) {
956-
return _cache!.getExpressionType(node, this);
956+
return _cache.getExpressionType(node, this);
957957
} else {
958958
return node.getStaticTypeInternal(this);
959959
}
@@ -962,7 +962,7 @@ class StaticTypeContextImpl implements StaticTypeContext {
962962
@override
963963
DartType getForInIteratorType(ForInStatement node) {
964964
if (_cache != null) {
965-
return _cache!.getForInIteratorType(node, this);
965+
return _cache.getForInIteratorType(node, this);
966966
} else {
967967
return node.getIteratorTypeInternal(this);
968968
}
@@ -971,7 +971,7 @@ class StaticTypeContextImpl implements StaticTypeContext {
971971
@override
972972
DartType getForInElementType(ForInStatement node) {
973973
if (_cache != null) {
974-
return _cache!.getForInElementType(node, this);
974+
return _cache.getForInElementType(node, this);
975975
} else {
976976
return node.getElementTypeInternal(this);
977977
}

pkg/kernel/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: kernel
66
publish_to: none
77

88
environment:
9-
sdk: ^3.0.0
9+
sdk: ^3.6.0
1010

1111
# Use 'any' constraints here; we get our versions from the DEPS file.
1212
dependencies:

0 commit comments

Comments
 (0)