Skip to content
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

Add support for multi declarations in the reflection #200

Open
petermasking opened this issue Mar 8, 2023 · 0 comments
Open

Add support for multi declarations in the reflection #200

petermasking opened this issue Mar 8, 2023 · 0 comments
Labels
feature New feature or request

Comments

@petermasking
Copy link
Member

petermasking commented Mar 8, 2023

Currently we register only the first declaration in a multi declaration statement as module member:

import { Reflector } from 'jitar-reflection';

const module = Reflector.parse(`const a = 1, b = 2, c = 3;`);
module.hasMember('a'); // true
module.hasMember('b'); // false
module.hasMember('c'); // false

The next step is register the other declarations as well.

@petermasking petermasking added feature New feature or request reflection labels Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants