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

Issue 23625002: Support loading transformer plugins from pub. (Closed)

Created:
7 years, 3 months ago by nweiz
Modified:
7 years, 3 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Support loading transformer plugins from pub. This is still missing some functionality, most notably the ability for a transformer to import transformed code. R=rnystrom@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=27085

Patch Set 1 #

Total comments: 86

Patch Set 2 : Code review changes and additional fixes #

Patch Set 3 : Re-upload #

Total comments: 2

Patch Set 4 : Code review changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1637 lines, -335 lines) Patch
M pkg/barback/lib/src/phase_input.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/barback/test/package_graph/add_remove_transform_test.dart View 1 1 chunk +18 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/lib/src/barback.dart View 1 1 chunk +106 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart View 1 2 3 1 chunk +398 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/lib/src/barback/pub_package_provider.dart View 1 1 chunk +27 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/lib/src/barback/rewrite_import_transformer.dart View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/lib/src/barback/server.dart View 1 1 chunk +227 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/lib/src/barback/watch_sources.dart View 1 chunk +73 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/command.dart View 2 chunks +4 lines, -16 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/command/serve.dart View 4 chunks +53 lines, -217 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/dart.dart View 1 2 chunks +83 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/entrypoint.dart View 2 chunks +18 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/lib/src/package_graph.dart View 1 chunk +21 lines, -0 lines 0 comments Download
D sdk/lib/_internal/pub/lib/src/pub_package_provider.dart View 1 chunk +0 lines, -53 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/pubspec.dart View 1 6 chunks +44 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/utils.dart View 1 2 3 6 chunks +62 lines, -9 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/does_not_run_a_transform_on_an_input_in_another_package_test.dart View 1 1 chunk +43 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/fails_to_load_a_file_that_defines_no_transforms_test.dart View 1 1 chunk +36 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/fails_to_load_a_non_existent_transform_test.dart View 1 1 chunk +27 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/fails_to_load_a_transform_from_a_non_dependency_test.dart View 1 1 chunk +29 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/fails_to_load_a_transform_with_a_syntax_error_test.dart View 1 1 chunk +36 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/fails_to_load_a_transform_with_an_import_error_test.dart View 1 1 chunk +35 lines, -0 lines 0 comments Download
A + sdk/lib/_internal/pub/test/serve/invalid_method_test.dart View 1 2 3 1 chunk +3 lines, -8 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/prints_a_transform_error_in_apply_test.dart View 1 1 chunk +52 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/prints_a_transform_interface_error_test.dart View 1 1 chunk +50 lines, -0 lines 0 comments Download
A + sdk/lib/_internal/pub/test/serve/runs_a_local_transform_on_the_application_package_test.dart View 1 1 chunk +12 lines, -13 lines 0 comments Download
A + sdk/lib/_internal/pub/test/serve/runs_a_third_party_transform_on_the_application_package_test.dart View 1 2 3 1 chunk +16 lines, -14 lines 0 comments Download
A sdk/lib/_internal/pub/test/serve/runs_a_transform_on_a_dependency_test.dart View 1 1 chunk +40 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/serve/utils.dart View 1 2 3 3 chunks +35 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/test_pub.dart View 1 2 3 3 chunks +42 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/version_solver_test.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
nweiz
7 years, 3 months ago (2013-08-27 18:33:13 UTC) #1
Bob Nystrom
I'm uncomfortably excited about this! :) https://codereview.chromium.org/23625002/diff/1/sdk/lib/_internal/pub/lib/src/barback.dart File sdk/lib/_internal/pub/lib/src/barback.dart (right): https://codereview.chromium.org/23625002/diff/1/sdk/lib/_internal/pub/lib/src/barback.dart#newcode26 sdk/lib/_internal/pub/lib/src/barback.dart:26: watchSources(graph, barback); I ...
7 years, 3 months ago (2013-08-27 22:12:30 UTC) #2
nweiz
I realized while responding that a number of my tests weren't actually being run, so ...
7 years, 3 months ago (2013-08-28 20:45:23 UTC) #3
Bob Nystrom
A few more suggestions, otherwise LGTM! https://codereview.chromium.org/23625002/diff/1/sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart File sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart (right): https://codereview.chromium.org/23625002/diff/1/sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart#newcode105 sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart:105: /// Returns whether ...
7 years, 3 months ago (2013-08-29 00:12:01 UTC) #4
nweiz
https://codereview.chromium.org/23625002/diff/1/sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart File sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart (right): https://codereview.chromium.org/23625002/diff/1/sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart#newcode105 sdk/lib/_internal/pub/lib/src/barback/load_transformers.dart:105: /// Returns whether or not [superclass] is a superclass ...
7 years, 3 months ago (2013-09-04 00:21:57 UTC) #5
nweiz
7 years, 3 months ago (2013-09-04 00:43:34 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 manually as r27085 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698