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

Issue 1710093002: Avoid duplicate effort in _getElementReferenceId (Closed)

Created:
4 years, 10 months ago by Paul Berry
Modified:
4 years, 10 months ago
Reviewers:
scheglov
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Avoid duplicate effort in _getElementReferenceId We were going to extra effort to find the compilation unit containing [element], but it was always the immediately enclosing element. This CL rearranges the code so that there's no duplicate effort and so that it's clear from the flow control that the immediately enclosing element is the compilation unit. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/371cd6efcf7924b75d6ca1cd5287f43aa0136ae7

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -11 lines) Patch
M pkg/analyzer/lib/src/summary/summarize_elements.dart View 1 chunk +4 lines, -11 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
Paul Berry
4 years, 10 months ago (2016-02-18 18:26:07 UTC) #2
scheglov
LGTM
4 years, 10 months ago (2016-02-18 18:27:05 UTC) #3
Paul Berry
4 years, 10 months ago (2016-02-18 18:37:32 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
371cd6efcf7924b75d6ca1cd5287f43aa0136ae7 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698