ballerina-lang
ballerina-lang copied to clipboard
Provide APIs to identify syntaxKind's grouping (isExpression, isStatement etc.)
Description:
Describe your problem(s) For LS there are use cases where we need to identify a given syntaxKind is categorised under one of these categories.
- Expression
- Statement
- Action
- TypeDescriptor
- Module level declaration
Describe your solution(s)
It will be useful to have an API in SyntaxInfo.java
which can identify whether a syntaxKind is in one of those categories.