File tree 4 files changed +10
-23
lines changed
4 files changed +10
-23
lines changed Original file line number Diff line number Diff line change @@ -276,12 +276,20 @@ class PubPackageAnalysisServerTest extends ContextResolutionTest
276
276
);
277
277
}
278
278
279
+ /// Deletes the analysis options YAML file at [testPackageRootPath] .
279
280
void deleteTestPackageAnalysisOptionsFile () {
280
- deleteAnalysisOptionsYamlFile (testPackageRootPath);
281
+ var path = join (testPackageRootPath, file_paths.analysisOptionsYaml);
282
+ deleteFile (path);
281
283
}
282
284
285
+ /// Deletes the `package_config.json` file at [testPackageRootPath] .
283
286
void deleteTestPackageConfigJsonFile () {
284
- deletePackageConfigJsonFile (testPackageRootPath);
287
+ var filePath = join (
288
+ testPackageRootPath,
289
+ file_paths.dotDartTool,
290
+ file_paths.packageConfigJson,
291
+ );
292
+ deleteFile (filePath);
285
293
}
286
294
287
295
/// Returns the offset of [search] in [testFileContent] .
Original file line number Diff line number Diff line change @@ -29,10 +29,8 @@ package:analyzer_testing/resource_provider_mixin.dart:
29
29
pathContext (getter: Context)
30
30
resourceProvider (getter: ResourceProvider)
31
31
convertPath (method: String Function(String))
32
- deleteAnalysisOptionsYamlFile (method: void Function(String))
33
32
deleteFile (method: void Function(String))
34
33
deleteFolder (method: void Function(String))
35
- deletePackageConfigJsonFile (method: void Function(String))
36
34
fromUri (method: String Function(Uri))
37
35
getFile (method: File Function(String))
38
36
getFolder (method: Folder Function(String))
Original file line number Diff line number Diff line change @@ -35,12 +35,6 @@ mixin ResourceProviderMixin {
35
35
/// path context.
36
36
String convertPath (String filePath) => resourceProvider.convertPath (filePath);
37
37
38
- /// Deletes the analysis options YAML file at [directoryPath] .
39
- void deleteAnalysisOptionsYamlFile (String directoryPath) {
40
- var path = join (directoryPath, file_paths.analysisOptionsYaml);
41
- deleteFile (path);
42
- }
43
-
44
38
/// Deletes the file at [path] .
45
39
void deleteFile (String path) {
46
40
resourceProvider.getFile (convertPath (path)).delete ();
@@ -51,16 +45,6 @@ mixin ResourceProviderMixin {
51
45
resourceProvider.getFolder (convertPath (path)).delete ();
52
46
}
53
47
54
- /// Deletes the `package_config.json` file at [directoryPath] .
55
- void deletePackageConfigJsonFile (String directoryPath) {
56
- var path = join (
57
- directoryPath,
58
- file_paths.dotDartTool,
59
- file_paths.packageConfigJson,
60
- );
61
- deleteFile (path);
62
- }
63
-
64
48
/// Returns [uri] as a String.
65
49
String fromUri (Uri uri) {
66
50
return resourceProvider.pathContext.fromUri (uri);
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ class SwitchOnType extends LintRule {
22
22
@override
23
23
DiagnosticCode get diagnosticCode => LinterLintCode .switch_on_type;
24
24
25
- @override
26
- LintCode get lintCode => LinterLintCode .switch_on_type;
27
-
28
25
@override
29
26
void registerNodeProcessors (
30
27
NodeLintRegistry registry,
You can’t perform that action at this time.
0 commit comments