[Chapel Merge] dyno tests: add parsing tests for EmptyStmt node

Branch: refs/heads/main
Revision: 2b41372
Author: arezaii
Link: dyno tests: add parsing tests for EmptyStmt node by arezaii · Pull Request #19580 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19580 from arezaii/empty-stmt-test

dyno tests: add parsing tests for EmptyStmt node

This PR adds a couple more tests for parsing an EmptyStmt node.

It captures behavior currently exhibited and adds tests for
some specific patterns found in our test suite. Specifically:

  • verify that an empty statement is captured in while true do ;
  • capture the behavior of a terminating semicolon in a proc definition:
    like proc foo();
  • verify statement count == 2 in cobegin { ; writeln['']; }

TESTING:

  • [x] test-dyno