mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[serialization] Add a trivial Swift module loader.
Currently, the Swift module loader just looks for a .sm file, verifies the signature "SMod", and produces an empty DeclContext. Swift SVN r5126
This commit is contained in:
@@ -300,7 +300,7 @@ public:
|
||||
class LoadedModule : public Module {
|
||||
ModuleLoader &Owner;
|
||||
|
||||
public:
|
||||
protected:
|
||||
LoadedModule(DeclContextKind kind, Identifier name, Component *comp,
|
||||
ASTContext &ctx, ModuleLoader &owner)
|
||||
: Module(kind, name, comp, ctx), Owner(owner) {
|
||||
@@ -308,6 +308,7 @@ public:
|
||||
ASTStage = TypeChecked;
|
||||
}
|
||||
|
||||
public:
|
||||
// Inherited from Module.
|
||||
void lookupValue(AccessPathTy accessPath, Identifier name, NLKind lookupKind,
|
||||
SmallVectorImpl<ValueDecl*> &result);
|
||||
|
||||
Reference in New Issue
Block a user