This repository has been archived by the owner on Oct 15, 2018. It is now read-only.
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.
Decorator Namespaces #220
Closed
Description
Great Project. It reminds me a little of Roslyn.
Found a possible issue if a decorator is accessed through a namespace. Reading and writing changes the declaration, eg.
import { DecoratorNamespace } from './my-decorators'
class Foo {
@DecoratorNamespace.DecoratorFactory('argument')
bar () { }
}
writes as
import { DecoratorNamespace } from './my-decorators'
class Foo {
@DecoratorNamespace('argument')
bar () {}
}
On an unrelated note. Is there a way to maintain the contents (code) of the file/classes methods when reading and writing? eg. Keeping the contents of bar
through the read/write operation.
Cheers!
Activity