Skip to content
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
Closed
@calebboyd

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions