jitar icon indicating copy to clipboard operation
jitar copied to clipboard

Add support for multi declarations in the reflection

Open petermasking opened this issue 1 year ago • 0 comments

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 avatar Mar 08 '23 09:03 petermasking