swift
d8b745db - Add a request to lazily parse function bodies.

Commit
5 years ago
Add a request to lazily parse function bodies. Rework the lazy function body parsing mechanism to use the request-evaluator, so that asking for the body of a function will initiate parsing. Clean up a number of callers to AbstractFunctionDecl::getBody() that don't actually need the body, so we don't perform unnecessary parsing. This change does not delay parsing of function bodies in the general case; rather, it sets up the infrastructure to always delay parsing of function bodies.
Author
Committer
Parents
  • include/swift
    • AST
      • File
        Decl.h
      • File
        ParseRequests.h
      • File
        ParseTypeIDZone.def
    • Parse
      • File
        Parser.h
      • File
        PersistentParserState.h
  • lib
    • AST
      • File
        ASTPrinter.cpp
      • File
        ASTScopeCreation.cpp
      • File
        Decl.cpp
      • File
        UnqualifiedLookup.cpp
    • Parse
      • File
        ParseDecl.cpp
      • File
        ParseRequests.cpp
      • File
        Parser.cpp
      • File
        PersistentParserState.cpp
    • Sema
      • File
        LookupVisibleDecls.cpp
      • File
        SourceLoader.cpp
Loading