-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
define Namespace as module ? #3
Comments
so Module do exist in typescript and they are not the same thing. |
Correct. https://www.typescriptlang.org/docs/handbook/namespaces-and-modules.html explains a lot. Some big differences:
Note that the AST Viewer will show function isModule(sourceFile) {
// Check if the file has any exports or imports to be considered a module.
if (sourceFile.getExportedDeclarations().size > 0
|| sourceFile.getImportDeclarations().size > 0) {
return true;
}
}
I think modules and namespaces would be identical in regards to what they can contain. |
The importer has support for nested module/namespace (internal module) but the MM still doesn't have it. I commented out the property in scoping_entity.ts to reduce the number of |
it seems a good idea to say that FamixTypeScriptNamespace use FamixTModule and all FamixNamedEntities use FamixTDefinedInModule ...
The text was updated successfully, but these errors were encountered: