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

Commit b040cc3

Browse files
author
Dart CI
committed
Version 2.18.0-34.0.dev
Merge commit '20b560226e654f8885acd607b94f23b63bd9806b' into 'dev'
2 parents 8f109f0 + 20b5602 commit b040cc3

File tree

337 files changed

+2826
-2826
lines changed

Some content is hidden

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

337 files changed

+2826
-2826
lines changed

pkg/analysis_server/test/abstract_context.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class AbstractContextTest with ResourceProviderMixin {
8181
String get workspaceRootPath => '/home';
8282

8383
void addSource(String path, String content) {
84-
newFile2(path, content);
84+
newFile(path, content);
8585
}
8686

8787
Future<void> analyzeTestPackageFiles() async {
@@ -134,7 +134,7 @@ class AbstractContextTest with ResourceProviderMixin {
134134
}
135135
}
136136

137-
newFile2(analysisOptionsPath, buffer.toString());
137+
newFile(analysisOptionsPath, buffer.toString());
138138
}
139139

140140
AnalysisDriver driverFor(String path) {
@@ -158,14 +158,14 @@ class AbstractContextTest with ResourceProviderMixin {
158158
}
159159

160160
@override
161-
File newFile2(String path, String content) {
161+
File newFile(String path, String content) {
162162
if (_analysisContextCollection != null && !path.endsWith('.dart')) {
163163
throw StateError('Only dart files can be changed after analysis.');
164164
}
165165

166166
path = convertPath(path);
167167
_addAnalyzedFileToDrivers(path);
168-
return super.newFile2(path, content);
168+
return super.newFile(path, content);
169169
}
170170

171171
Future<ResolvedUnitResult> resolveFile(String path) async {
@@ -209,13 +209,13 @@ class AbstractContextTest with ResourceProviderMixin {
209209

210210
/// Update `pubspec.yaml` and create the driver.
211211
void updateTestPubspecFile(String content) {
212-
newFile2(testPubspecPath, content);
212+
newFile(testPubspecPath, content);
213213
}
214214

215215
void verifyCreatedCollection() {}
216216

217217
void writePackageConfig(String path, PackageConfigFileBuilder config) {
218-
newFile2(path, config.toContent(toUriStr: toUriStr));
218+
newFile(path, config.toContent(toUriStr: toUriStr));
219219
}
220220

221221
void writeTestPackageConfig({

pkg/analysis_server/test/abstract_single_unit.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ class AbstractSingleUnitTest extends AbstractContextTest {
5757
}
5858

5959
@override
60-
File newFile2(String path, String content) {
60+
File newFile(String path, String content) {
6161
if (useLineEndingsForPlatform) {
6262
content = normalizeNewlinesForPlatform(content);
6363
}
64-
return super.newFile2(path, content);
64+
return super.newFile(path, content);
6565
}
6666

6767
Future<void> resolveFile2(String path) async {

pkg/analysis_server/test/analysis/get_errors_test.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class GetErrorsTest extends PubPackageAnalysisServerTest {
2727
}
2828

2929
Future<void> test_afterAnalysisComplete() async {
30-
newFile2(testFilePath, '''
30+
newFile(testFilePath, '''
3131
main() {
3232
print(42)
3333
}
@@ -40,12 +40,12 @@ main() {
4040
}
4141

4242
Future<void> test_errorInPart() async {
43-
var libraryFile = newFile2('$testPackageLibPath/a.dart', r'''
43+
var libraryFile = newFile('$testPackageLibPath/a.dart', r'''
4444
part 'b.dart';
4545
class A {}
4646
''');
4747

48-
var partFile = newFile2('$testPackageLibPath/b.dart', r'''
48+
var partFile = newFile('$testPackageLibPath/b.dart', r'''
4949
part of 'a.dart';
5050
class A {}
5151
''');
@@ -73,7 +73,7 @@ class A {}
7373
}
7474

7575
Future<void> test_hasErrors() async {
76-
newFile2(testFilePath, '''
76+
newFile(testFilePath, '''
7777
main() {
7878
print(42)
7979
}
@@ -111,7 +111,7 @@ main() {
111111
}
112112

113113
Future<void> test_noErrors() async {
114-
newFile2(testFilePath, '''
114+
newFile(testFilePath, '''
115115
main() {
116116
print(42);
117117
}

0 commit comments

Comments
 (0)