-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dont anonymize Join nor default enums (#2847)
This pull request includes changes to enhance the handling of enums in the `StructuralPrint` class, update the list of known functions, and improve test coverage. Enhancements to `StructuralPrint`: * [`src/libraries/Microsoft.PowerFx.Core/Logging/StructuralPrint.cs`](diffhunk://#diff-4760f19aba839606fcde0849467658572c272afd030c115afae8263986234a6dR9): Added logic to handle default enums in the `Visit` method for `DottedNameNode`, and included the `Enums` namespace. [[1]](diffhunk://#diff-4760f19aba839606fcde0849467658572c272afd030c115afae8263986234a6dR9) [[2]](diffhunk://#diff-4760f19aba839606fcde0849467658572c272afd030c115afae8263986234a6dR126-R134) Updates to known functions: * [`src/libraries/Microsoft.PowerFx.Core/Texl/BuiltinFunctionsCore.cs`](diffhunk://#diff-5a3b8429b8a783e4a4f50cbc410c8c1d83eda1fc561760948b79fc8ce675a5baR20-R26): Updated the `OtherKnownFunctions` list to include the `Join` function. Improvements to test coverage: * [`src/tests/Microsoft.PowerFx.Core.Tests.Shared/FormatterTests.cs`](diffhunk://#diff-f6ab2187c7ce1b7dea3e0655fb70f738656098817671383d60e9233859294a34R8): Added new test cases for the `Join` and `WeekNum` functions in `TestStucturalPrintWithBinding`, and included the `Builtins` namespace. [[1]](diffhunk://#diff-f6ab2187c7ce1b7dea3e0655fb70f738656098817671383d60e9233859294a34R8) [[2]](diffhunk://#diff-f6ab2187c7ce1b7dea3e0655fb70f738656098817671383d60e9233859294a34R37-R46) [[3]](diffhunk://#diff-f6ab2187c7ce1b7dea3e0655fb70f738656098817671383d60e9233859294a34R72-R101)
- Loading branch information
1 parent
c5e5c9b
commit de2fbd0
Showing
3 changed files
with
35 additions
and
8 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