Skip to content

Commit

Permalink
Remove the workaround for a stale issue.
Browse files Browse the repository at this point in the history
R=brianwilkerson@google.com

Bug: #25884
Change-Id: I87741664f00200170990e9a13d2f639c41671bda
Reviewed-on: https://dart-review.googlesource.com/71924
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
  • Loading branch information
scheglov authored and commit-bot@chromium.org committed Aug 29, 2018
1 parent 1f52372 commit e81c1c5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/analysis_server/lib/src/computer/computer_overrides.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,6 @@ class _OverriddenElementsFinder {
_OverriddenElementsFinder(Element seed) {
_seed = seed;
_class = seed.enclosingElement;
if (_class == null) {
// TODO(brianwilkerson) Remove this code when the issue has been fixed
// (https://github.com/dart-lang/sdk/issues/25884)
Type type = seed.runtimeType;
String name = seed.name;
throw new ArgumentError(
'The $type named $name does not have an enclosing element');
}
_library = _class.library;
_name = seed.displayName;
if (seed is MethodElement) {
Expand Down

0 comments on commit e81c1c5

Please sign in to comment.