Closed NMSAzulX closed 2 months ago
The updates primarily focus on modifying the method GetUsingNodes()
to ToUsingNodes()
across various components, enhancing the processing of using directives. Additionally, constructors, methods, and caches in several classes are updated to improve handling and flexibility with NatashaUsingCache
.
File Path | Change Summary |
---|---|
src/Natasha.CSharp/Extension/HotExecutor/Natasha.CSharp.HotExecutor/... |
Updated UsingsHandler.cs to replace GetUsingNodes() with ToUsingNodes() in _usingCache . |
src/Natasha.CSharp/Natasha.CSharp.Compiler/CompileUnit/AssemblyCSharpBuilder.Syntax.cs |
Replaced GetUsingNodes() with ToUsingNodes() in the Add method for UsingRecorder instances. |
src/Natasha.CSharp/Natasha.CSharp.Compiler/Component/Cache/NatashaUsingCache.cs |
Added and modified fields and methods to handle UsingDirectiveSyntax , including ToUsingNodes() . |
src/Natasha.CSharp/Natasha.CSharp.Compiler/Component/Domain/DomainManagement.cs |
Added usingCache parameter to Random and Create methods in DomainManagement . |
src/Natasha.CSharp/Natasha.CSharp.Compiler/Component/Metadata/NatashaLoadContext.cs |
Modified constructors to accept an optional NatashaUsingCache parameter. |
src/Natasha.CSharp/Natasha.CSharp.Compiler/Extension/NatashaAssemblyBuilderExtension.cs |
Updated methods to accept an optional NatashaUsingCache parameter. |
In the land of code so bright,
ToUsingNodes()
takes its flight. Caches updated, flows refined, Flexibility now enshrined. Assemblies built with care and grace, In Natasha’s world, we’ve found our place.
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?
@coderabbitai review
未检测到合适的 ISSUE 推荐给您。感谢您的反馈!
该条自动推荐信息来自于 nms-bot.
1 tests 1 :white_check_mark: 0s :stopwatch: 1 suites 0 :zzz: 1 files 0 :x:
Results for commit 0820ffe2.
1 tests 1 :white_check_mark: 0s :stopwatch: 1 suites 0 :zzz: 1 files 0 :x:
Results for commit 0820ffe2.
Summary by CodeRabbit
New Features
NatashaUsingCache
parameter to various methods for enhanced flexibility in using management and initialization.Improvements
ToUsingNodes
method.NatashaLoadContext
constructors to acceptNatashaUsingCache
, providing better control over using directives.