import.meta.glob args parsing
Following require.context as an example, this parses the args to `import.meta.glob()` and passes them to the analyzer code. The parser checks for a string in the first slot, and an optional object in the second slot. If `eager` is provided, it must be a bool constant; if `import` is provided, it must be a string constant.
I added a new diagnostic error number ("TP1008") for errors related to parsing these args, too.
Showing
Please
register
or
sign in
to comment