Change call to openDeclaration and pass an Identifier instead of an QualifiedIdentifier which is deprecated
Needs ReviewPublic

Authored by huguesmorisset on Jan 26 2018, 3:57 PM.

Details

Reviewers
ematirov
Summary

What the deprecated method does:

auto openDeclaration(QualifiedIdentifier x, ...) {
  Identifier i;
  if (!x.isEmpty()) {
    i = x.last();
  }
  return openDeclaration(i, ...);
}

This does remove a check to isEmpty().

Diff Detail

Repository
R59 KDevelop Go
Lint
Lint Skipped
Unit
Unit Tests Skipped
huguesmorisset created this revision.Jan 26 2018, 3:57 PM
Restricted Application added a subscriber: kdevelop-devel. ยท View Herald TranscriptJan 26 2018, 3:57 PM
huguesmorisset requested review of this revision.Jan 26 2018, 3:57 PM
huguesmorisset retitled this revision from Change call to openDeclaration to send an Identifier instead of an QualifiedIdentifier to Change call to openDeclaration and pass an Identifier instead of an QualifiedIdentifier which is deprecated.Jan 30 2018, 9:11 PM