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

Issue 560553003: Avoid false positives when searching for uses of a constructor. (Closed)

Created:
6 years, 3 months ago by Paul Berry
Modified:
6 years, 3 months ago
Reviewers:
scheglov
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Avoid false positives when searching for uses of a constructor. Since constructor invocations are statically bound, there's never a reason to search for potential matches. Since potential matching is performed by name, this avoids an enormous number of false positives in the case where the constructor is unnamed. BUG=dartbug.com/20869 R=scheglov@google.com Committed: https://code.google.com/p/dart/source/detail?r=40058

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -2 lines) Patch
M pkg/analysis_server/lib/src/search/element_references.dart View 1 chunk +2 lines, -1 line 2 comments Download
M pkg/analysis_server/test/search/element_references_test.dart View 2 chunks +50 lines, -1 line 2 comments Download

Messages

Total messages: 5 (1 generated)
Paul Berry
6 years, 3 months ago (2014-09-09 20:12:35 UTC) #2
scheglov
lgtm w/comments https://codereview.chromium.org/560553003/diff/1/pkg/analysis_server/lib/src/search/element_references.dart File pkg/analysis_server/lib/src/search/element_references.dart (right): https://codereview.chromium.org/560553003/diff/1/pkg/analysis_server/lib/src/search/element_references.dart#newcode34 pkg/analysis_server/lib/src/search/element_references.dart:34: element is! ConstructorElement) { Push this into ...
6 years, 3 months ago (2014-09-09 20:45:17 UTC) #3
Paul Berry
https://codereview.chromium.org/560553003/diff/1/pkg/analysis_server/lib/src/search/element_references.dart File pkg/analysis_server/lib/src/search/element_references.dart (right): https://codereview.chromium.org/560553003/diff/1/pkg/analysis_server/lib/src/search/element_references.dart#newcode34 pkg/analysis_server/lib/src/search/element_references.dart:34: element is! ConstructorElement) { On 2014/09/09 20:45:17, scheglov wrote: ...
6 years, 3 months ago (2014-09-09 21:24:59 UTC) #4
Paul Berry
6 years, 3 months ago (2014-09-09 21:25:21 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 manually as 40058 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698