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

Issue 1932003002: If the expected 'returnType' is 'null', just do not check it. (Closed)

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

Description

If the expected 'returnType' is 'null', just do not check it. The completion tests are fragile and too sensitive to task model changes. I have a change that inserts a new analysis result between RESOLVED_UNIT3 and RESOLVED_UNIT4, and by doing this the next task to perform resolves types in imported libraries. But in CC test we continue performing analysis tasks and incidentally resolve something what the 'null' checks don't expect. So, I think we need to stop doing these checks. If needed, we can check something directly by asking the state of some analysis results from AnalysisContext. R=jwren@google.com, danrubel@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/470c5de12e54628305ad915f463383397b24e11e

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -8 lines) Patch
M pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart View 4 chunks +0 lines, -8 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
scheglov
4 years, 7 months ago (2016-04-28 20:12:17 UTC) #1
jwren
lgtm
4 years, 7 months ago (2016-04-28 20:13:55 UTC) #2
scheglov
4 years, 7 months ago (2016-04-28 20:15:39 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
470c5de12e54628305ad915f463383397b24e11e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698