b3ca203e8f
This updates `analyzer_use_new_elements` lint to stop reporting inside deprecated declarations. So, we can deprecated and prepare for removal. Apply deprecation dart/analysis/results.dart Deprecate `ElementDeclarationResult`, add `FragmentDeclarationResult` instead. Change `getFragmentDeclaration` (not yet published) return type to `FragmentDeclarationResult` to better correspond to the method name. Rename `getElementDeclaration` from `AnalysisSessionHelper` to `getFragmentDeclaration`, to better reflect on what it operates. Change-Id: I2839c9a7e21ed2e5b34035fc8c3ec88fd23df1b5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/412840 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>