ballerina-lang icon indicating copy to clipboard operation
ballerina-lang copied to clipboard

Provide APIs to identify syntaxKind's grouping (isExpression, isStatement etc.)

Open gayalkuruppu opened this issue 2 years ago • 0 comments

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.

  1. Expression
  2. Statement
  3. Action
  4. TypeDescriptor
  5. 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.

gayalkuruppu avatar Aug 19 '22 05:08 gayalkuruppu