Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend: propagate error as null instead of exit(1)
This patch propagates null when Module AST node can't be constructed correctly instead of doing fatal(), which terminates the program. This is useful if users use DMD frontend as a library. This patch also increases coverage on the affected lines. Fixes issue 22751. Signed-off-by: Luís Ferreira <contact@lsferreira.net>
- Loading branch information
Showing
3 changed files
with
73 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters