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

Issue 1243233003: Preliminary refactoring work on ContextManager. (Closed)

Created:
5 years, 5 months ago by Paul Berry
Modified:
5 years, 5 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Preliminary refactoring work on ContextManager. - There is now a single virtual ContextInfo representing the root of the context tree; this should allow us to reduce the need for traversing the _contexts map, and should reduce the number of corner cases that need to be handled when creating and destroying contexts, since tree roots will never be created nor destroyed. - We now build the contexts while recursing down the directory tree and populate them with files while unwinding the recursion; this is more consistent with the data flow (deciding which contexts to build depends only on the current directory and directories above it; deciding which files to include in a context depends only on the current directory and directories below it). R=brianwilkerson@google.com, scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/6f6410cd9fcf8a5d7382508b5c8db40a19eea32a

Patch Set 1 #

Patch Set 2 : Minor additions to comments. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -53 lines) Patch
M pkg/analysis_server/lib/src/context_manager.dart View 1 11 chunks +61 lines, -53 lines 5 comments Download

Messages

Total messages: 7 (2 generated)
Paul Berry
5 years, 5 months ago (2015-07-21 23:39:46 UTC) #2
scheglov
LGTM https://codereview.chromium.org/1243233003/diff/20001/pkg/analysis_server/lib/src/context_manager.dart File pkg/analysis_server/lib/src/context_manager.dart (right): https://codereview.chromium.org/1243233003/diff/20001/pkg/analysis_server/lib/src/context_manager.dart#newcode366 pkg/analysis_server/lib/src/context_manager.dart:366: ContextInfo _ancestorInfo = new ContextInfo._ancestor(); final?
5 years, 5 months ago (2015-07-22 00:05:51 UTC) #3
Brian Wilkerson
LGTM https://codereview.chromium.org/1243233003/diff/20001/pkg/analysis_server/lib/src/context_manager.dart File pkg/analysis_server/lib/src/context_manager.dart (right): https://codereview.chromium.org/1243233003/diff/20001/pkg/analysis_server/lib/src/context_manager.dart#newcode108 pkg/analysis_server/lib/src/context_manager.dart:108: ContextInfo._ancestor() Perhaps "ContextInfo._root"? https://codereview.chromium.org/1243233003/diff/20001/pkg/analysis_server/lib/src/context_manager.dart#newcode366 pkg/analysis_server/lib/src/context_manager.dart:366: ContextInfo _ancestorInfo = ...
5 years, 5 months ago (2015-07-22 13:52:24 UTC) #5
Paul Berry
https://codereview.chromium.org/1243233003/diff/20001/pkg/analysis_server/lib/src/context_manager.dart File pkg/analysis_server/lib/src/context_manager.dart (right): https://codereview.chromium.org/1243233003/diff/20001/pkg/analysis_server/lib/src/context_manager.dart#newcode108 pkg/analysis_server/lib/src/context_manager.dart:108: ContextInfo._ancestor() On 2015/07/22 13:52:24, Brian Wilkerson wrote: > Perhaps ...
5 years, 5 months ago (2015-07-22 17:31:49 UTC) #6
Paul Berry
5 years, 5 months ago (2015-07-22 17:34:47 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
6f6410cd9fcf8a5d7382508b5c8db40a19eea32a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698