Skip to content

Conversation

@ginsbach
Copy link
Contributor

@ginsbach ginsbach commented May 19, 2023

This is part of https://github.com/github/codeql-core/issues/2452

I have taken inspiration from the section about modules for the basic structure.

Adding this grammar is a bit tricky, because it is quite far removed from how we actually do things in practice (see e.g. https://github.com/github/semmle-code/pull/46155). Similar to alias definitions, in reality, we folded the grammar rules for type signatures into class declarations, the grammar rules for predicate signatures into predicate declarations, and the grammar rules for module signatures into module declarations. We then disentangle them in AntlrToQL. However, we don't want to expose this to the users.

Therefore, the review should take into account that this grammar is essentially "made up" for the QL specification.

@ginsbach ginsbach requested a review from a team as a code owner May 19, 2023 13:36
@ginsbach ginsbach force-pushed the ginsbach/SignatureSyntax branch from d48c803 to 6957857 Compare May 19, 2023 13:44
@ginsbach ginsbach requested a review from cklin May 19, 2023 15:12
@ginsbach ginsbach merged commit 999e7f9 into main May 19, 2023
@ginsbach ginsbach deleted the ginsbach/SignatureSyntax branch May 19, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants