Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: pkg/analyzer/lib/src/summary/prelink.dart

Issue 1576173002: Handle setters properly in NameFilter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/prelink_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/prelink.dart
diff --git a/pkg/analyzer/lib/src/summary/prelink.dart b/pkg/analyzer/lib/src/summary/prelink.dart
index a4bfef3fd75be2518dc9f882a17a4d2ca9c104b5..5a1cc93d8880a486143c16c5b628fa46ac174a5e 100644
--- a/pkg/analyzer/lib/src/summary/prelink.dart
+++ b/pkg/analyzer/lib/src/summary/prelink.dart
@@ -92,6 +92,9 @@ class NameFilter {
* Determine if the given [name] is accepted by this [NameFilter].
*/
bool accepts(String name) {
+ if (name.endsWith('=')) {
+ name = name.substring(0, name.length - 1);
+ }
if (shownNames != null) {
return shownNames.contains(name);
} else {
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/prelink_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698