Chromium Code Reviews
DescriptionPreliminary 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
Messages
Total messages: 7 (2 generated)
|