-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wasm] [debugger] Eval fixes for static class eval (#61660)
* Using current namespace as the default place to serach for the resolved class. * Add tests for static class, static fields and pausing in async method. * Added tests for class evaluation. * Fixing support to the current namespace and adding tests for it * Assuing that we search within the current assembly first. Removed tests that fail in Consol App. * Remove a test-duplicate that was not testing static class or static fields. * Fixing indentation. * Refixing indentation. * Refix indentations again. * Applied the advice about adding new blank lines. * Changed the current assembly check. * Extracting the check from the loop. One time check is enough. * Simplifying multiple test cases into one call. * Using local function as per review suggestion. * Added test that was skipped by mistake. * Added looking for the namespace in all assemblies because there is a chance it will be located out of the current assembly. * Extracting value based on the current frame, not the top of stack location. * Test for classes evaluated from different frames. * Tests for nested static classes. * Fix for nested static classes. * Fixed 9 tests from EvaluateOnCallFrame. * Fixing indentation and spaces. * Applied review comments for values evaluation. * Compressed two tests into one with MemberData. * Added test case of type without namespace (failing). * Addressed Ankit advices from the review. * Revert merged nested evaluation changes. * Incorporate Ankit's changes from d020d36. * Fix - when both valuesare null we should keep checking (e.g. for nested static classes). * Added nested tests. * Redo changes after reverting them in merge. * Fixed - works with and without namespace. * Fix merge. * Using current namespace as the default place to serach for the resolved class. * Add tests for static class, static fields and pausing in async method. * Added tests for class evaluation. * Fixing support to the current namespace and adding tests for it * Assuing that we search within the current assembly first. Removed tests that fail in Consol App. * Remove a test-duplicate that was not testing static class or static fields. * Fixing indentation. * Extracting the check from the loop. One time check is enough. * Simplifying multiple test cases into one call. * Added test that was skipped by mistake. * Test for classes evaluated from different frames. * Tests for nested static classes. * Fix for nested static classes. * Fixing indentation and spaces. * Applied review comments for values evaluation. * Compressed two tests into one with MemberData. * Addressed Ankit advices from the review. * Revert merged nested evaluation changes. * Incorporate Ankit's changes from d020d36. * Fix - when both valuesare null we should keep checking (e.g. for nested static classes). * Fix merge. * Cleanup after rebase. * Added nested tests. * Fixed - works with and without namespace. * Clean-up after rebasing with fix-static-attribute-support. * Fixed 9 tests from EvaluateOnCallFrame. * Fixed 18 test types. * Fix test cases with spaces in the names, e.g. " this" evaluation. * Update src/mono/wasm/debugger/BrowserDebugProxy/MemberReferenceResolver.cs Co-authored-by: Larry Ewing <[email protected]> * Avoid resolving fields of a null value. * Fix for 4 failing tests of Count evaluation. * Update src/mono/wasm/debugger/BrowserDebugProxy/MemberReferenceResolver.cs Co-authored-by: Ankit Jain <[email protected]> * Update src/mono/wasm/debugger/BrowserDebugProxy/MemberReferenceResolver.cs Co-authored-by: Ankit Jain <[email protected]> * Add null safety. * Exchanged multiple trims for one. * Undo nested static changes that will be sumbitted in another PR. * Revert "Undo nested static changes that will be sumbitted in another PR." This reverts commit 6a1b7ad. * Hiding test that has to be fixed in the future. * Applying Ankit's suggestion about code simplification. Co-authored-by: DESKTOP-GEPIA6N\Thays <[email protected]> Co-authored-by: Larry Ewing <[email protected]> Co-authored-by: Ankit Jain <[email protected]>
- Loading branch information
1 parent
a46358c
commit 35815de
Showing
5 changed files
with
243 additions
and
118 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
Oops, something went wrong.