Skip to content

Transformers include annotations for each constructor stub #498

@mhevery

Description

@mhevery

Fill in the annotation information.

Given this source:

@Component(
  selector: 'my-component',
  ...
)
class MyComponent {
}

main() {
  bootstrap(MyComponent);
}

generate:

import 'package:path/to/above/file' as file1;
import 'package:reflection/reflection.dart' show reflector;

setupReflection() {
  reflector.registerType(
    file1.MyComponent, 
    factory: ...,
    paramaters: ...,
   "annotations" : [new Component(selector: 'my-component', ...)]
  );
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions