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

Issue 402333006: Implementation of the 'edit.getFixes' API in server. (Closed)

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

Description

Implementation of the 'edit.getFixes' API in server. R=paulberry@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=38473

Patch Set 1 #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+643 lines, -500 lines) Patch
M pkg/analysis_server/lib/src/analysis_server.dart View 1 chunk +16 lines, -0 lines 6 comments Download
A pkg/analysis_server/lib/src/computer/error.dart View 1 chunk +84 lines, -0 lines 0 comments Download
D pkg/analysis_server/lib/src/domain_edit.dart View 1 chunk +0 lines, -136 lines 0 comments Download
A + pkg/analysis_server/lib/src/edit/edit_domain.dart View 4 chunks +64 lines, -39 lines 6 comments Download
A pkg/analysis_server/lib/src/edit/fix.dart View 1 chunk +44 lines, -0 lines 0 comments Download
M pkg/analysis_server/lib/src/socket_server.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/test/analysis_abstract.dart View 1 chunk +0 lines, -18 lines 0 comments Download
A pkg/analysis_server/test/computer/error_test.dart View 1 chunk +111 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/computer/test_all.dart View 2 chunks +3 lines, -1 line 0 comments Download
M pkg/analysis_server/test/domain_analysis_test.dart View 5 chunks +3 lines, -30 lines 0 comments Download
D pkg/analysis_server/test/domain_edit_test.dart View 1 chunk +0 lines, -99 lines 0 comments Download
A + pkg/analysis_server/test/edit/edit_domain_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
A pkg/analysis_server/test/edit/fix_test.dart View 1 chunk +154 lines, -0 lines 0 comments Download
A pkg/analysis_server/test/edit/fixes_test.dart View 1 chunk +86 lines, -0 lines 0 comments Download
A + pkg/analysis_server/test/edit/test_all.dart View 1 chunk +6 lines, -5 lines 0 comments Download
M pkg/analysis_server/test/test_all.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/analysis_services/lib/constants.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analysis_services/test/correction/fix_test.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/analysis_services/test/correction/name_suggestion_test.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/analysis_services/test/correction/source_range_test.dart View 4 chunks +18 lines, -19 lines 0 comments Download
D pkg/analysis_services/test/index/abstract_single_unit.dart View 1 chunk +0 lines, -94 lines 0 comments Download
M pkg/analysis_services/test/index/dart_index_contributor_test.dart View 4 chunks +21 lines, -22 lines 0 comments Download
M pkg/analysis_services/test/index/store/codec_test.dart View 3 chunks +24 lines, -25 lines 0 comments Download
M pkg/analysis_services/test/search/hierarchy_test.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/analysis_services/test/search/search_engine_test.dart View 2 chunks +1 line, -2 lines 0 comments Download
A + pkg/analysis_testing/lib/abstract_single_unit.dart View 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
scheglov
6 years, 5 months ago (2014-07-22 18:17:08 UTC) #1
Paul Berry
This CL includes a huge amount of code motion, which makes it really hard to ...
6 years, 5 months ago (2014-07-22 20:22:06 UTC) #2
scheglov
https://codereview.chromium.org/402333006/diff/1/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/402333006/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#newcode566 pkg/analysis_server/lib/src/analysis_server.dart:566: return null; On 2014/07/22 20:22:06, Paul Berry wrote: > ...
6 years, 5 months ago (2014-07-22 20:31:31 UTC) #3
Paul Berry
lgtm https://codereview.chromium.org/402333006/diff/1/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/402333006/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#newcode566 pkg/analysis_server/lib/src/analysis_server.dart:566: return null; On 2014/07/22 20:31:31, scheglov wrote: > ...
6 years, 5 months ago (2014-07-22 20:41:43 UTC) #4
scheglov
Committed patchset #1 manually as r38473 (presubmit successful).
6 years, 5 months ago (2014-07-22 20:46:04 UTC) #5
scheglov
6 years, 5 months ago (2014-07-22 20:53:09 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/402333006/diff/1/pkg/analysis_server/lib/src/...
File pkg/analysis_server/lib/src/analysis_server.dart (right):

https://codereview.chromium.org/402333006/diff/1/pkg/analysis_server/lib/src/...
pkg/analysis_server/lib/src/analysis_server.dart:566: return null;
On 2014/07/22 20:41:43, Paul Berry wrote:
> On 2014/07/22 20:31:31, scheglov wrote:
> > On 2014/07/22 20:22:06, Paul Berry wrote:
> > > Does this mean that the result will be {..., "result": {"errors": null}}
in
> > the
> > > case where there was no analysis context?  That's not allowed according to
> the
> > > spec; probably we should report an error in this condition.
> > 
> > It is OK for "edit.getFixes" though.
> 
> Oh, ok.  I was confused because the method name sounds like it corresponds to
> the "analysis.getErrors" request.  Can you include a comment above the
function
> to clarify that it's intended for use by "getFixes", and hence doesn't have to
> wait for errors to be computed?

Done.

Powered by Google App Engine
This is Rietveld 408576698