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

Issue 2993123002: Eliminate dependencies on pkg/front_end. (Closed)

Created:
3 years, 4 months ago by Paul Berry
Modified:
3 years, 4 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Eliminate dependencies on pkg/front_end. The API for pkg/front_end is still in flux so we want to avoid having any packages depend directly on it (other than analyzer and back-ends). This CL re-exports some of the critical pieces of front_end needed by analyzer clients so that those clients can access them via analyzer, without having to directly depend on front_end. It also updates pkg/analyzer_plugin to make use of those re-exports. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/e2f77056a54f5c1ce07ce906fda95863eef70dcf

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -19 lines) Patch
M pkg/analyzer/lib/src/codegen/tools.dart View 1 chunk +1 line, -0 lines 2 comments Download
A pkg/analyzer/lib/src/dart/analysis/byte_store.dart View 1 chunk +9 lines, -0 lines 2 comments Download
A pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart View 1 chunk +9 lines, -0 lines 0 comments Download
A pkg/analyzer/lib/src/dart/analysis/performance_logger.dart View 1 chunk +8 lines, -0 lines 0 comments Download
A pkg/analyzer/lib/src/generated/timestamped_data.dart View 1 chunk +8 lines, -0 lines 0 comments Download
A pkg/analyzer/lib/src/summary/api_signature.dart View 1 chunk +8 lines, -0 lines 0 comments Download
A pkg/analyzer/lib/src/summary/flat_buffers.dart View 1 chunk +8 lines, -0 lines 0 comments Download
M pkg/analyzer/tool/summary/generate.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/analyzer_plugin/lib/plugin/plugin.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/analyzer_plugin/lib/src/utilities/completion/suggestion_builder.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/analyzer_plugin/lib/utilities/completion/suggestion_builder.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer_plugin/test/plugin/mocks.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer_plugin/test/support/abstract_context.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/analyzer_plugin/tool/spec/check_all_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer_plugin/tool/spec/codegen_dart_protocol.dart View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/analyzer_plugin/tool/spec/codegen_inttest_methods.dart View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/analyzer_plugin/tool/spec/codegen_matchers.dart View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/analyzer_plugin/tool/spec/codegen_protocol_common.dart View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/analyzer_plugin/tool/spec/codegen_protocol_constants.dart View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/analyzer_plugin/tool/spec/generate_all.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer_plugin/tool/spec/to_html.dart View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
Paul Berry
3 years, 4 months ago (2017-08-04 22:54:01 UTC) #2
scheglov
LGTM
3 years, 4 months ago (2017-08-04 22:56:55 UTC) #3
Paul Berry
Committed patchset #1 (id:1) manually as e2f77056a54f5c1ce07ce906fda95863eef70dcf (presubmit successful).
3 years, 4 months ago (2017-08-07 16:46:36 UTC) #5
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/2993123002/diff/1/pkg/analyzer/lib/src/codegen/tools.dart File pkg/analyzer/lib/src/codegen/tools.dart (right): https://codereview.chromium.org/2993123002/diff/1/pkg/analyzer/lib/src/codegen/tools.dart#newcode13 pkg/analyzer/lib/src/codegen/tools.dart:13: export 'package:front_end/src/codegen/tools.dart'; it seems like this file is ...
3 years, 4 months ago (2017-08-07 16:57:10 UTC) #6
Paul Berry
3 years, 4 months ago (2017-08-07 17:04:34 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/2993123002/diff/1/pkg/analyzer/lib/src/codege...
File pkg/analyzer/lib/src/codegen/tools.dart (right):

https://codereview.chromium.org/2993123002/diff/1/pkg/analyzer/lib/src/codege...
pkg/analyzer/lib/src/codegen/tools.dart:13: export
'package:front_end/src/codegen/tools.dart';
On 2017/08/07 16:57:10, Siggi Cherem (dart-lang) wrote:
> it seems like this file is not used anymore in pacakge:front_end, maybe it is
> worth moving that code back here?

Maybe.  I'd like to wait until we see how kernel's use of flatbuffers pans out
first.

https://codereview.chromium.org/2993123002/diff/1/pkg/analyzer/lib/src/dart/a...
File pkg/analyzer/lib/src/dart/analysis/byte_store.dart (right):

https://codereview.chromium.org/2993123002/diff/1/pkg/analyzer/lib/src/dart/a...
pkg/analyzer/lib/src/dart/analysis/byte_store.dart:9: show ByteStore,
MemoryByteStore, MemoryCachingByteStore;
On 2017/08/07 16:57:10, Siggi Cherem (dart-lang) wrote:
> not now, but would it make sense to eventually move these to a separate
package?
> 
> For now, should we move them to a different folder to make sure in our
> subpacakge_tests cover that we never import fasta from these files? (that way
we
> ensure we don't expose indirectly internal types that are in more flux)?

Sure, I'll do that as a follow-up CL.

Powered by Google App Engine
This is Rietveld 408576698