Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6eafd18

Browse files
author
Dart CI
committed
Version 2.13.0-32.0.dev
Merge commit '2439c412f0df54c18992194056a3350a55f54085' into 'dev'
2 parents add1eac + 2439c41 commit 6eafd18

File tree

231 files changed

+1106
-955
lines changed

Some content is hidden

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

231 files changed

+1106
-955
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ vars = {
122122
"logging_rev": "e2f633b543ef89c54688554b15ca3d7e425b86a2",
123123
"markupsafe_rev": "8f45f5cfa0009d2a70589bcda0349b8cb2b72783",
124124
"markdown_rev": "9c4beaac96d8f008078e00b027915f81b665d2de",
125-
"matcher_rev": "43d5cac48fcd386643016e767164da87c5c25e29",
125+
"matcher_rev": "1f7b6f0cb15eb6659a1de0513571575a5c8a51d0",
126126
"mime_rev": "c931f4bed87221beaece356494b43731445ce7b8",
127127
"mockito_rev": "d39ac507483b9891165e422ec98d9fb480037c8b",
128128
"mustache_rev": "664737ecad027e6b96d0d1e627257efa0e46fcb1",

pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3766,32 +3766,6 @@ Message _withArgumentsFfiEmptyStruct(String name) {
37663766
arguments: {'name': name});
37673767
}
37683768

3769-
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3770-
const Template<
3771-
Message Function(
3772-
String
3773-
name)> templateFfiEmptyStructWarning = const Template<
3774-
Message Function(String name)>(
3775-
messageTemplate:
3776-
r"""Struct '#name' is empty. Support for empty structs is deprecated and will be removed in the next stable version of Dart. Use Opaque instead.""",
3777-
withArguments: _withArgumentsFfiEmptyStructWarning);
3778-
3779-
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3780-
const Code<Message Function(String name)> codeFfiEmptyStructWarning =
3781-
const Code<Message Function(String name)>("FfiEmptyStructWarning",
3782-
analyzerCodes: <String>["EMPTY_STRUCT_WARNING"],
3783-
severity: Severity.info);
3784-
3785-
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3786-
Message _withArgumentsFfiEmptyStructWarning(String name) {
3787-
if (name.isEmpty) throw 'No name provided';
3788-
name = demangleMixinApplicationName(name);
3789-
return new Message(codeFfiEmptyStructWarning,
3790-
message:
3791-
"""Struct '${name}' is empty. Support for empty structs is deprecated and will be removed in the next stable version of Dart. Use Opaque instead.""",
3792-
arguments: {'name': name});
3793-
}
3794-
37953769
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
37963770
const Code<Null> codeFfiExceptionalReturnNull = messageFfiExceptionalReturnNull;
37973771

pkg/analysis_server/lib/src/context_manager.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ class ContextManagerImpl implements ContextManager {
737737
List<protocol.AnalysisError> convertedErrors;
738738
try {
739739
var file = resourceProvider.getFile(path);
740-
var packageName = file.parent.parent.shortName;
740+
var packageName = file.parent2.parent2.shortName;
741741
var content = _readFile(path);
742742
var errorListener = RecordingErrorListener();
743743
var errorReporter = ErrorReporter(errorListener, file.createSource());
@@ -1119,7 +1119,7 @@ class ContextManagerImpl implements ContextManager {
11191119

11201120
/// Extract a new [packagespecFile]-based context from [oldInfo].
11211121
void _extractContext(ContextInfo oldInfo, File packagespecFile) {
1122-
var newFolder = packagespecFile.parent;
1122+
var newFolder = packagespecFile.parent2;
11231123
var newInfo =
11241124
_createContext(oldInfo, newFolder, excludedPaths, packagespecFile);
11251125
// prepare sources to extract

pkg/analysis_server/lib/src/edit/edit_dartfix.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,12 @@ class EditDartFix
147147
).toResponse(request.id);
148148
}
149149

150-
Folder findPkgFolder(Folder folder) {
151-
while (folder != null) {
150+
Folder findPkgFolder(Folder start) {
151+
for (var folder in start.withAncestors) {
152152
if (folder.getChild('analysis_options.yaml').exists ||
153153
folder.getChild('pubspec.yaml').exists) {
154154
return folder;
155155
}
156-
folder = folder.parent;
157156
}
158157
return null;
159158
}

pkg/analysis_server/lib/src/services/completion/dart/feature_computer.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ DartType impliedDartTypeWithName(TypeProvider typeProvider, String name) {
5353
} else if (numNames.contains(name)) {
5454
return typeProvider.numType;
5555
} else if (listNames.contains(name)) {
56-
return typeProvider.listType2(typeProvider.dynamicType);
56+
return typeProvider.listType(typeProvider.dynamicType);
5757
} else if (stringNames.contains(name)) {
5858
return typeProvider.stringType;
5959
} else if (name == 'iterator') {
6060
return typeProvider.iterableDynamicType;
6161
} else if (name == 'map') {
62-
return typeProvider.mapType2(
62+
return typeProvider.mapType(
6363
typeProvider.dynamicType, typeProvider.dynamicType);
6464
}
6565
return null;
@@ -890,7 +890,7 @@ class _ContextTypeVisitor extends SimpleAstVisitor<DartType> {
890890
if (currentNode.isSet) {
891891
return typeProvider.iterableDynamicType;
892892
}
893-
return typeProvider.mapType2(
893+
return typeProvider.mapType(
894894
typeProvider.dynamicType, typeProvider.dynamicType);
895895
}
896896
currentNode = currentNode.parent;

pkg/analysis_server/lib/src/services/correction/dart/add_null_check.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ class AddNullCheck extends CorrectionProducer {
4545
toType = parent.realTarget.staticType;
4646
} else if (parent is ForEachPartsWithDeclaration) {
4747
toType =
48-
typeProvider.iterableType2(parent.loopVariable.declaredElement.type);
48+
typeProvider.iterableType(parent.loopVariable.declaredElement.type);
4949
} else if (parent is ForEachPartsWithIdentifier) {
50-
toType = typeProvider.iterableType2(parent.identifier.staticType);
50+
toType = typeProvider.iterableType(parent.identifier.staticType);
5151
} else if (parent is SpreadElement) {
5252
var literal = parent.thisOrAncestorOfType<TypedLiteral>();
5353
if (literal is ListLiteral) {

pkg/analysis_server/lib/src/services/correction/dart/update_sdk_constraints.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class UpdateSdkConstraints extends CorrectionProducer {
3232
break;
3333
}
3434
pubspecFile = null;
35-
folder = folder.parent;
35+
folder = folder.parent2;
3636
}
3737
if (pubspecFile == null) {
3838
return;

0 commit comments

Comments
 (0)