Closed 0xF6 closed 1 month ago
[!NOTE] Currently processing new changes in this PR. This may take a few minutes, please wait...
Commits
Files that changed from the base of the PR and between de680fa14bd24ac90fd09ef90cea00d9bc18d84f and e69e5d5c903989a6f25583b808ca60a9cbbe604a.Files selected for processing (1)
* test/vc_test/generator_test.cs (4 hunks)______________________________ < torvalds@linux:~$ git review > ------------------------------ \ \ \ \ /\ ( ) .( o ).
The update introduces several key enhancements: environmental control for console output, refactoring for clarity and improved code readability, more robust project file error messaging, and refined array handling in method returns. Additionally, constructors in test files now accommodate new configuration requirements, and label definitions in code generation components are explicitly named for greater clarity. New configuration and utility functionalities are also added, such as the RawConsole
class for ANSI console support.
File | Change Summary |
---|---|
compiler/Program.cs | Added environment check for "NO_CONSOLE", refactored skipIntro , updated Windows OutputEncoding . |
compiler/RawConsole.cs | Introduced RawConsole class with Create method to configure ANSI console settings. |
compiler/cmd/CompileCommand.cs | Enhanced error messaging to include the full path of the missing project file. |
compiler/compilation/parts/props.cs | Refactored getArgList method's return statements to use efficient array literals and Array.Empty<VeinArgumentRef>() . |
test/vc_test/expression_test.cs | Updated GeneratorContext instantiation to use GeneratorContextConfig object with a true parameter. |
test/vc_test/generator_test.cs | Explicitly named labels in code generation for better clarity, updated GeneratorContext instantiation. |
test/vc_test/il_test.cs | Modified DefineLabel method calls to use explicit string labels in DeconstructOpcodes3 . |
In code and test, a dance we see,
Refactors flow with simple glee,
Labels named and functions clear,
An ANSI console now we cheer,
Settings bright, the path refined,
Errors shout the file we need to find.
So here we sing of updates neat,
A bunny’s work, a coder’s feat.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
NO_CONSOLE
environment variable to disable console output.Refactor
Bug Fixes
OutputEncoding
for Windows to ensure correct display of characters.Tests
GeneratorContext
configurations and named labels for clarity.