-
Hi, is there a reason the only exported AST type is langium/packages/langium/src/index.ts Line 26 in f3cf206 (in langium 1x we can do somthing like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@cdietrich To prevent pollution of the imports, all other internal ast types/methods are grouped in the
This was never recommended, but it's not possible in commonJS to prevent adopters from arbitrarily importing stuff from packages. ESM now enforces our exports. |
Beta Was this translation helpful? Give feedback.
@cdietrich To prevent pollution of the imports, all other internal ast types/methods are grouped in the
GrammarAST
object. You can access them from there.This was never recommended, but it's not possible in commonJS to prevent adopters from arbitrarily importing stuff from packages. ESM now enforces our exports.