Skip to content

Commit 7c22f94

Browse files
johnniwintherCommit Queue
authored andcommitted
[_fe_analyzer_shared] Remove macro tests and helpers
These are no longer used. TEST=removed Change-Id: Ibf5b2de9d1b550c21873b48111161366deb2ddc0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/407980 Reviewed-by: Martin Kustermann <[email protected]> Commit-Queue: Johnni Winther <[email protected]> Reviewed-by: Morgan :) <[email protected]>
1 parent ca16a42 commit 7c22f94

File tree

16 files changed

+4
-2379
lines changed

16 files changed

+4
-2379
lines changed

pkg/_fe_analyzer_shared/lib/src/macros/code_optimizer.dart

Lines changed: 0 additions & 458 deletions
This file was deleted.

pkg/_fe_analyzer_shared/lib/src/macros/uri.dart

Lines changed: 0 additions & 27 deletions
This file was deleted.

pkg/_fe_analyzer_shared/lib/src/testing/id_testing.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
import 'dart:io';
6-
import '../macros/uri.dart';
76
import 'annotated_code_helper.dart';
87
import 'id.dart';
98
import 'id_generation.dart';
@@ -929,9 +928,6 @@ Future<void> runTests<T>(Directory dataDir,
929928
actualData[marker] = {};
930929

931930
void addActualData(Uri uri, Map<Id, ActualData<T>> actualData) {
932-
if (isMacroLibraryUri(uri)) {
933-
uri = toOriginLibraryUri(uri);
934-
}
935931
assert(testData.code.containsKey(uri) || actualData.isEmpty,
936932
"Unexpected data ${actualData} for $uri");
937933
if (actualData.isEmpty) {

pkg/_fe_analyzer_shared/pubspec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ dependencies:
1616
dev_dependencies:
1717
checks: any
1818
collection: any
19-
macros: any
2019
test: any
2120

2221
dependency_overrides:

pkg/_fe_analyzer_shared/test/macros/api/api_test_data.dart

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)