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

Issue 2560323002: Simplify how patch files are specified to analyzer. (Closed)

Created:
4 years ago by Paul Berry
Modified:
4 years ago
Reviewers:
scheglov
CC:
reviews_dartlang.org, Kevin Millikin (Google), Siggi Cherem (dart-lang)
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Simplify how patch files are specified to analyzer. After discussion with kmillikin@, sigmund@, and scheglov@, we decided that specifying the patch files in libraries.dart is more complex (and less flexible) than we'd like. This CL changes things so that the patch files are specified in analysis options using a simple map from library name (e.g. "dart:core") to a list of patch file paths. Clients are now allowed to put patch files wherever they want; they don't need to be inside the sdk directory. Note that we no longer include the patch configuration in encodeCrossContextOptions. This should be ok, since we don't have any use case in which a single instance of analyzer needs to accommodate multiple patch configurations. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/02fe40c6f7ef4f96907ae8b49598cddfe2ce81a6

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -348 lines) Patch
M pkg/analysis_server/test/mock_sdk.dart View 1 chunk +0 lines, -3 lines 0 comments Download
M pkg/analyzer/lib/src/context/context.dart View 3 chunks +17 lines, -2 lines 0 comments Download
M pkg/analyzer/lib/src/dart/sdk/patch.dart View 3 chunks +6 lines, -19 lines 0 comments Download
M pkg/analyzer/lib/src/generated/engine.dart View 7 chunks +8 lines, -10 lines 0 comments Download
M pkg/analyzer/lib/src/generated/sdk.dart View 9 chunks +0 lines, -124 lines 0 comments Download
M pkg/analyzer/lib/src/task/dart.dart View 2 chunks +12 lines, -3 lines 2 comments Download
M pkg/analyzer/test/generated/engine_test.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M pkg/analyzer/test/src/context/mock_sdk.dart View 1 chunk +0 lines, -3 lines 0 comments Download
M pkg/analyzer/test/src/dart/sdk/patch_test.dart View 11 chunks +34 lines, -37 lines 0 comments Download
M pkg/analyzer/test/src/dart/sdk/sdk_test.dart View 2 chunks +0 lines, -145 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Paul Berry
4 years ago (2016-12-09 22:45:06 UTC) #2
scheglov
lgtm https://codereview.chromium.org/2560323002/diff/1/pkg/analyzer/lib/src/task/dart.dart File pkg/analyzer/lib/src/task/dart.dart (right): https://codereview.chromium.org/2560323002/diff/1/pkg/analyzer/lib/src/task/dart.dart#newcode4067 pkg/analyzer/lib/src/task/dart.dart:4067: (context.sourceFactory.dartSdk as FolderBasedDartSdk) Will this work for MockSdk(s)?
4 years ago (2016-12-09 22:54:07 UTC) #3
Paul Berry
https://codereview.chromium.org/2560323002/diff/1/pkg/analyzer/lib/src/task/dart.dart File pkg/analyzer/lib/src/task/dart.dart (right): https://codereview.chromium.org/2560323002/diff/1/pkg/analyzer/lib/src/task/dart.dart#newcode4067 pkg/analyzer/lib/src/task/dart.dart:4067: (context.sourceFactory.dartSdk as FolderBasedDartSdk) On 2016/12/09 22:54:06, scheglov wrote: > ...
4 years ago (2016-12-09 23:00:31 UTC) #4
Paul Berry
4 years ago (2016-12-12 18:15:24 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
02fe40c6f7ef4f96907ae8b49598cddfe2ce81a6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698