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

Issue 2453773006: Clone SourceFactory to ensure that it does not bring a ContentAnalysis reference. (Closed)

Created:
4 years, 1 month ago by scheglov
Modified:
4 years, 1 month ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Clone SourceFactory to ensure that it does not bring a ContentAnalysis reference. TBR R=brianwilkerson@google.com, paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/5ad24d51851cd4967a787a455014f8f9744800b7

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M pkg/analyzer/lib/src/dart/analysis/driver.dart View 1 chunk +3 lines, -2 lines 1 comment Download

Messages

Total messages: 9 (1 generated)
scheglov
4 years, 1 month ago (2016-10-28 17:23:11 UTC) #1
scheglov
Committed patchset #1 (id:1) manually as 5ad24d51851cd4967a787a455014f8f9744800b7 (presubmit successful).
4 years, 1 month ago (2016-10-28 17:24:02 UTC) #3
Brian Wilkerson
https://codereview.chromium.org/2453773006/diff/1/pkg/analyzer/lib/src/dart/analysis/driver.dart File pkg/analyzer/lib/src/dart/analysis/driver.dart (right): https://codereview.chromium.org/2453773006/diff/1/pkg/analyzer/lib/src/dart/analysis/driver.dart#newcode181 pkg/analyzer/lib/src/dart/analysis/driver.dart:181: : _sourceFactory = sourceFactory.clone() { It seems to me ...
4 years, 1 month ago (2016-10-31 13:16:57 UTC) #4
Paul Berry
Regarding Brian's concern, I agree that this is a gray area. The tradeoff as I ...
4 years, 1 month ago (2016-10-31 18:08:59 UTC) #5
Brian Wilkerson
> (b) how expensive is it to clone the SourceFactory, and how often does the ...
4 years, 1 month ago (2016-10-31 18:19:35 UTC) #6
scheglov
On 2016/10/31 18:19:35, Brian Wilkerson wrote: > > (b) how expensive is it to clone ...
4 years, 1 month ago (2016-10-31 18:22:43 UTC) #7
Brian Wilkerson
Have you considered using the pieces of ContextBuilder that create the source factory and analysis ...
4 years, 1 month ago (2016-10-31 18:28:29 UTC) #8
scheglov
4 years, 1 month ago (2016-10-31 18:36:30 UTC) #9
Message was sent while issue was closed.
On 2016/10/31 18:28:29, Brian Wilkerson wrote:
> Have you considered using the pieces of ContextBuilder that create the source
> factory and analysis options without actually creating an analysis context? Or
> better yet, add a method like buildDriver that will build an AnalysisDriver?
> (We'll probably want to change the name eventually, but that's a longer term
> issue.)

That may be a bigger change than it seems.
AFAIK creating AnalysisOptions is done using AnalysisContext in ContextBuilder.

Adding ContextBuilder.buildDriver() seems fine, although I'm a little nervous
about making AnalysisDriver visible through ContextBuilder which some of our
clients may think of as an API.

Powered by Google App Engine
This is Rietveld 408576698