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

Issue 479043002: Code generate Dart classes representing the analysis server API. (Closed)

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

Description

Code generate Dart classes representing the analysis server API. These classes support: - Conversion to JSON - Conversion from JSON, with error handling via the Request object. - operator== and hashCode In addition, convenience functions are generated which extract and convert the variant contents of a Request, Response, Notification, EditGetRefactoringResult, or EditGetRefactoringParams once the type is known. The generated code is not yet used; it will be used by future CL's. R=brianwilkerson@google.com, danrubel@google.com, scheglov@google.com Committed: https://code.google.com/p/dart/source/detail?r=39361

Patch Set 1 #

Total comments: 15

Patch Set 2 : Address code review comments #

Patch Set 3 : Remove accidental comment change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9744 lines, -41 lines) Patch
A pkg/analysis_server/lib/src/generated_protocol.dart View 1 1 chunk +8552 lines, -0 lines 0 comments Download
A pkg/analysis_server/lib/src/protocol2.dart View 1 1 chunk +267 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/test_all.dart View 1 2 chunks +2 lines, -0 lines 0 comments Download
M pkg/analysis_server/tool/spec/api.dart View 2 chunks +18 lines, -1 line 0 comments Download
A pkg/analysis_server/tool/spec/codegen_dart_protocol.dart View 1 1 chunk +811 lines, -0 lines 0 comments Download
M pkg/analysis_server/tool/spec/codegen_matchers.dart View 3 chunks +11 lines, -37 lines 0 comments Download
M pkg/analysis_server/tool/spec/from_html.dart View 1 chunk +3 lines, -2 lines 0 comments Download
M pkg/analysis_server/tool/spec/generate_all.dart View 2 chunks +2 lines, -0 lines 0 comments Download
A pkg/analysis_server/tool/spec/implied_types.dart View 1 1 chunk +77 lines, -0 lines 0 comments Download
M pkg/analysis_server/tool/spec/spec_input.html View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Paul Berry
On Friday some folks asked me to look at what it would take to code ...
6 years, 4 months ago (2014-08-17 14:35:35 UTC) #1
danrubel
LGTM https://codereview.chromium.org/479043002/diff/1/pkg/analysis_server/lib/src/generated_protocol.dart File pkg/analysis_server/lib/src/generated_protocol.dart (right): https://codereview.chromium.org/479043002/diff/1/pkg/analysis_server/lib/src/generated_protocol.dart#newcode6801 pkg/analysis_server/lib/src/generated_protocol.dart:6801: if (json.containsKey("enableAsync")) { Is the containsKey check needed ...
6 years, 4 months ago (2014-08-17 17:10:21 UTC) #2
scheglov
https://codereview.chromium.org/479043002/diff/1/pkg/analysis_server/lib/src/generated_protocol.dart File pkg/analysis_server/lib/src/generated_protocol.dart (right): https://codereview.chromium.org/479043002/diff/1/pkg/analysis_server/lib/src/generated_protocol.dart#newcode4370 pkg/analysis_server/lib/src/generated_protocol.dart:4370: offsets == other.offsets && This code prints "false". main() ...
6 years, 4 months ago (2014-08-17 19:21:06 UTC) #3
Paul Berry
https://codereview.chromium.org/479043002/diff/1/pkg/analysis_server/lib/src/generated_protocol.dart File pkg/analysis_server/lib/src/generated_protocol.dart (right): https://codereview.chromium.org/479043002/diff/1/pkg/analysis_server/lib/src/generated_protocol.dart#newcode4370 pkg/analysis_server/lib/src/generated_protocol.dart:4370: offsets == other.offsets && On 2014/08/17 19:21:06, scheglov wrote: ...
6 years, 4 months ago (2014-08-17 23:47:07 UTC) #4
Brian Wilkerson
LGTM > One difficulty is that the generated code lives in analysis_server Another option is ...
6 years, 4 months ago (2014-08-18 14:10:16 UTC) #5
Paul Berry
PTAL https://codereview.chromium.org/479043002/diff/1/pkg/analysis_server/lib/src/generated_protocol.dart File pkg/analysis_server/lib/src/generated_protocol.dart (right): https://codereview.chromium.org/479043002/diff/1/pkg/analysis_server/lib/src/generated_protocol.dart#newcode32 pkg/analysis_server/lib/src/generated_protocol.dart:32: String toString() => JSON.encode(toJson()); On 2014/08/18 14:10:16, Brian ...
6 years, 4 months ago (2014-08-18 21:58:03 UTC) #6
scheglov
LGTM
6 years, 4 months ago (2014-08-18 22:15:42 UTC) #7
Brian Wilkerson
LGTM
6 years, 4 months ago (2014-08-18 23:41:49 UTC) #8
Paul Berry
6 years, 4 months ago (2014-08-18 23:44:13 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 manually as 39361 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698