Unique Name Validation #1750
Unanswered
kapishsingla
asked this question in
Q&A
Replies: 1 comment
-
Hi, You can use the IndexManager to retrieve all entities and cache the result in a multimap. I don't know if there is a more optimized approach. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm implementing validation to ensure each entity has a unique name across file boundaries. Each file corresponds to a Langium document, and each document contains a single entity.
For Instance,
file1 a.ext -> entity abc{}
file2 b.ext -> entity abc{}
We need to validate that Entity's name should not be same across the different file.
Request to help us with an optimized approach?
Beta Was this translation helpful? Give feedback.
All reactions