currently, if a class is the first thing in a file, and it has annotations, then those annotations will get applied to it's namespace.
my only recourse currently is to add dummy functions at the top of all class files which are subject to this.
it.only('does not apply a classes annotations to the generated namespace', async () => {
manager.modules = createProjects(hostDir, hostDir, {
name: 'host',
dependencies: [{
name: 'logger',
_files: {
'source/lib.d.bs': trim`
@doNotMoveMeBro
class Person
end class
`
}
}]
});
await process();
fsEqual(`${hostDir}/source/roku_modules/logger/lib.d.bs`, trim`
namespace logger
@doNotMoveMeBro
class Person
end class
end namespace
`);
});
currently, if a class is the first thing in a file, and it has annotations, then those annotations will get applied to it's namespace.
my only recourse currently is to add dummy functions at the top of all class files which are subject to this.