Skip to content

Commit 305388a

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Migrate analyzer/test/util/id_testing_helper.dart
Change-Id: Ie92edb3e7fb084f2d46da79d7a52fff33553a539 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/406342 Reviewed-by: Phil Quitslund <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 13b3ee3 commit 305388a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pkg/analyzer/test/util/id_testing_helper.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
// ignore_for_file: analyzer_use_new_elements
6-
75
// TODO(johnniwinther): .
86
// TODO(paulberry): Use the code for extraction of test data from
97
// annotated code from CFE.
@@ -270,12 +268,6 @@ class AnalyzerCompiledData<T> extends CompiledData<T> {
270268
}
271269
}
272270
return 0;
273-
} else if (id is LibraryId) {
274-
var unit =
275-
parseString(content: code[uri]!.sourceCode, throwIfDiagnostics: false)
276-
.unit;
277-
var offset = unit.declaredElement?.library.nameOffset ?? -1;
278-
return offset >= 0 ? offset : 0;
279271
} else {
280272
throw StateError('Unexpected id ${id.runtimeType}');
281273
}

0 commit comments

Comments
 (0)