Closed NhatMinh0208 closed 6 months ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/errors/moduleErrors.ts | 1 | 2 | 50.0% | ||
src/modules/errors.ts | 1 | 2 | 50.0% | ||
src/name-extractor/index.ts | 2 | 3 | 66.67% | ||
src/stdlib/parser.ts | 1 | 2 | 50.0% | ||
src/typeChecker/internalTypeErrors.ts | 0 | 1 | 0.0% | ||
src/errors/errors.ts | 7 | 10 | 70.0% | ||
src/cse-machine/utils.ts | 25 | 30 | 83.33% | ||
src/errors/typeErrors.ts | 0 | 6 | 0.0% | ||
src/utils/statementSeqTransform.ts | 18 | 145 | 12.41% | ||
<!-- | Total: | 152 | 298 | 51.01% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
src/utils/astCreator.ts | 1 | 82.52% | ||
src/cse-machine/utils.ts | 1 | 86.19% | ||
<!-- | Total: | 2 | --> |
Totals | |
---|---|
Change from base Build 8337328960: | -0.7% |
Covered Lines: | 10402 |
Relevant Lines: | 12398 |
wow that somehow caused zero regression
Barring any bugs that are not covered by tests, the CSE machine integration of StatementSequence
is now complete.
Description
This PR implements statement sequences for the CSE machine, as described in #1580. It introduces a new node type,
StatementSequence
, an AST transformer that convertsBlockStatements
andPrograms
without declarations intoStatementSequences
and adds logic to the CSE machine interpreter to handle the new node type.Changes
StatementSequence
es.Node
with customNode
type that includesStatementSequence
BlockStatements
without declarations intoStatementSequences
StatementSequence
StatementSequence
(for frontend)