Skip to content
Discussion options

You must be logged in to vote

@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.

(in langium 1x we can do somthing like import type { AbstractElement, CrossReference, ParserRule } from "langium/lib/grammar/generated/ast")

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cdietrich
Comment options

cdietrich Sep 21, 2023
Collaborator Author

@msujew
Comment options

Answer selected by cdietrich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants