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

Issue 479683005: Make more use of generated code in analysis server. (Closed)

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

Description

Make more use of generated code in analysis server. The following generated classes are now used: - Element - Location - Occurrences - Outline - OverriddenMember - Override - Position - SearchResult - SearchResultKind - SourceFileEdit - TypeHierarchyItem Generated code is used to produce the responses to these requests: - completion.getSuggestions - search.findElementReferences - search.findMemberDeclarations - search.findMemberReferences - search.findTopLevelDeclarations - search.getTypeHierarchy Generated code is used to handle these notifications in unit testing: - analysis.navigation - analysis.occurrences - analysis.outline - analysis.overrides - search.results In addition, we no longer bother to test the JSON conversion code on AnalysisError, since it is code generated. R=scheglov@google.com Committed: https://code.google.com/p/dart/source/detail?r=39470

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+612 lines, -1117 lines) Patch
M pkg/analysis_server/lib/src/computer/computer_navigation.dart View 2 chunks +2 lines, -3 lines 0 comments Download
M pkg/analysis_server/lib/src/computer/computer_occurrences.dart View 3 chunks +5 lines, -34 lines 0 comments Download
M pkg/analysis_server/lib/src/computer/computer_outline.dart View 10 chunks +79 lines, -125 lines 2 comments Download
M pkg/analysis_server/lib/src/computer/computer_overrides.dart View 3 chunks +7 lines, -87 lines 0 comments Download
M pkg/analysis_server/lib/src/computer/element.dart View 2 chunks +72 lines, -262 lines 0 comments Download
M pkg/analysis_server/lib/src/domain_completion.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M pkg/analysis_server/lib/src/generated_protocol.dart View 21 chunks +107 lines, -0 lines 0 comments Download
M pkg/analysis_server/lib/src/protocol.dart View 9 chunks +17 lines, -16 lines 0 comments Download
M pkg/analysis_server/lib/src/protocol2.dart View 4 chunks +107 lines, -0 lines 0 comments Download
M pkg/analysis_server/lib/src/search/element_references.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/lib/src/search/search_domain.dart View 9 chunks +24 lines, -31 lines 0 comments Download
M pkg/analysis_server/lib/src/search/search_result.dart View 1 chunk +16 lines, -143 lines 0 comments Download
M pkg/analysis_server/lib/src/search/type_hierarchy.dart View 8 chunks +31 lines, -57 lines 0 comments Download
M pkg/analysis_server/lib/src/services/correction/assist_internal.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M pkg/analysis_server/lib/src/services/correction/change.dart View 6 chunks +6 lines, -91 lines 2 comments Download
M pkg/analysis_server/lib/src/services/correction/fix_internal.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M pkg/analysis_server/lib/src/services/correction/source_buffer.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analysis_server/lib/src/socket_server.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/analysis_server/test/analysis_notification_navigation_test.dart View 3 chunks +4 lines, -33 lines 1 comment Download
M pkg/analysis_server/test/analysis_notification_occurrences_test.dart View 2 chunks +4 lines, -11 lines 0 comments Download
M pkg/analysis_server/test/analysis_notification_outline_test.dart View 2 chunks +4 lines, -8 lines 0 comments Download
M pkg/analysis_server/test/analysis_notification_overrides_test.dart View 2 chunks +4 lines, -7 lines 0 comments Download
M pkg/analysis_server/test/computer/element_test.dart View 2 chunks +1 line, -63 lines 0 comments Download
M pkg/analysis_server/test/computer/error_test.dart View 1 chunk +0 lines, -30 lines 0 comments Download
M pkg/analysis_server/test/edit/assists_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/analysis_server/test/search/abstract_search_domain.dart View 2 chunks +5 lines, -8 lines 0 comments Download
M pkg/analysis_server/test/search/element_references_test.dart View 1 chunk +1 line, -4 lines 0 comments Download
M pkg/analysis_server/test/search/member_declarations_test.dart View 1 chunk +1 line, -5 lines 0 comments Download
M pkg/analysis_server/test/search/member_references_test.dart View 1 chunk +1 line, -3 lines 0 comments Download
M pkg/analysis_server/test/search/search_result_test.dart View 3 chunks +12 lines, -56 lines 0 comments Download
M pkg/analysis_server/test/search/top_level_declarations_test.dart View 1 chunk +1 line, -5 lines 0 comments Download
M pkg/analysis_server/test/services/correction/assist_test.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M pkg/analysis_server/test/services/correction/change_test.dart View 9 chunks +16 lines, -15 lines 0 comments Download
M pkg/analysis_server/test/services/correction/fix_test.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/test/services/refactoring/abstract_rename.dart View 4 chunks +5 lines, -4 lines 0 comments Download
M pkg/analysis_server/tool/spec/codegen_dart_protocol.dart View 5 chunks +58 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Paul Berry
6 years, 4 months ago (2014-08-21 17:48:00 UTC) #1
scheglov
LGTM https://codereview.chromium.org/479683005/diff/1/pkg/analysis_server/lib/src/computer/computer_outline.dart File pkg/analysis_server/lib/src/computer/computer_outline.dart (right): https://codereview.chromium.org/479683005/diff/1/pkg/analysis_server/lib/src/computer/computer_outline.dart#newcode168 pkg/analysis_server/lib/src/computer/computer_outline.dart:168: children: classContents.isNotEmpty ? classContents : null); Do we ...
6 years, 4 months ago (2014-08-21 18:03:23 UTC) #2
Paul Berry
https://codereview.chromium.org/479683005/diff/1/pkg/analysis_server/lib/src/computer/computer_outline.dart File pkg/analysis_server/lib/src/computer/computer_outline.dart (right): https://codereview.chromium.org/479683005/diff/1/pkg/analysis_server/lib/src/computer/computer_outline.dart#newcode168 pkg/analysis_server/lib/src/computer/computer_outline.dart:168: children: classContents.isNotEmpty ? classContents : null); On 2014/08/21 18:03:22, ...
6 years, 4 months ago (2014-08-21 20:00:44 UTC) #3
Paul Berry
6 years, 4 months ago (2014-08-21 20:04:25 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 manually as 39470 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698