-
- Downloads
[#1684] Rewrite statements recognition mechanism
Problem: the current statements recognition mechanism doesn't comply with statement locations recording mechanism. An example: ```ocaml let sum = List.fold (fun (acc, cur) -> acc + cur) [1; 2; 3] 0 ``` If we'll go inside aux function then statement locations cache would be cleaned up and we'll record some redundant locations (like `let sum = ...`). Solution: restrict the range of statements searching. For more information read comments in `getStatements` function in `Snapshots` module.
Showing
- tools/debugger/ligo-debugger/src/Language/LIGO/Debugger/Common.hs 50 additions, 15 deletions...bugger/ligo-debugger/src/Language/LIGO/Debugger/Common.hs
- tools/debugger/ligo-debugger/src/Language/LIGO/Debugger/Handlers/Helpers.hs 6 additions, 0 deletions...o-debugger/src/Language/LIGO/Debugger/Handlers/Helpers.hs
- tools/debugger/ligo-debugger/src/Language/LIGO/Debugger/Handlers/Impl.hs 6 additions, 1 deletion...ligo-debugger/src/Language/LIGO/Debugger/Handlers/Impl.hs
- tools/debugger/ligo-debugger/src/Language/LIGO/Debugger/Michelson.hs 15 additions, 8 deletions...ger/ligo-debugger/src/Language/LIGO/Debugger/Michelson.hs
- tools/debugger/ligo-debugger/src/Language/LIGO/Debugger/Snapshots.hs 77 additions, 13 deletions...ger/ligo-debugger/src/Language/LIGO/Debugger/Snapshots.hs
- tools/debugger/ligo-debugger/test/Test/DebugInfo.hs 5 additions, 5 deletionstools/debugger/ligo-debugger/test/Test/DebugInfo.hs
- tools/debugger/ligo-debugger/test/Test/Navigation.hs 0 additions, 1 deletiontools/debugger/ligo-debugger/test/Test/Navigation.hs
- tools/debugger/ligo-debugger/test/Test/Snapshots.hs 13 additions, 13 deletionstools/debugger/ligo-debugger/test/Test/Snapshots.hs
- tools/debugger/ligo-debugger/test/Test/Util.hs 2 additions, 1 deletiontools/debugger/ligo-debugger/test/Test/Util.hs
- tools/debugger/ligo-debugger/test/golden/StepIn/local-function-assignments-are-statements.golden 0 additions, 87 deletions...n/StepIn/local-function-assignments-are-statements.golden
- tools/debugger/ligo-debugger/test/golden/StepIn/seq-nodes-dont-have-expression-locations-in-snapshots.golden 1 addition, 1 deletion...-nodes-dont-have-expression-locations-in-snapshots.golden
Loading
Please register or sign in to comment