Skip to content
Snippets Groups Projects
  • Natalie Weizenbaum's avatar
    Refactor Source and SourceRegistry. · 3fb39388
    Natalie Weizenbaum authored
    This splits Source into two classes, Source and LiveSource. The former
    is completely independent of the system cache directory, and mostly
    contains source metadata and logic about manipulating descriptions.
    
    SourceRegistry now deals strictly in Sources, with LiveSources being
    handled by SystemCache. This means that classes like Pubspec and
    LockFile no longer have transitive references to the system cache
    directory.
    
    This will also make it possible to clean up PackageName equality logic
    by making PackageNames track their concrete Sources rather than just
    their source names.
    
    See #912
    
    R=rnystrom@google.com
    
    Review URL: https://codereview.chromium.org//2044253003 .
    3fb39388