Files
sdk/runtime
Alexander Aprelev 024ff88ce8 [vm/debugger] Refactor reference to Function out of BreakpointLocation.
BreakpointLocation represents source code location, which can
correspond to multiple Functions(in case of some mixin method
mixed-in in several classes, for example).
BreakpointLocation is connected to a Function via CodeBreakpoint.
CodeBreakpoint represents some point in the generated Code in some
Function. BreakpointLocation connects to multiple
CodeBreakpoints - one per Function that source code location was
generated into.

This CL removes Function reference stored directly in BreakpointLocation
as it is misleading.

This CL also removes some source-code-related attributes(uri/token_pos)
stored in CodeBreakpoint. If CodeBreakpoint code needs that information
it can find it in BreakpointLocation it references.

This should help with further refactoring to support BreakpointLocation
that map to multiple scripts

TEST=ci

Change-Id: I41b82fddc5018ef7df61c9d3a3c4aee657cee528
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192946
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2021-03-25 17:57:04 +00:00
..
2021-03-09 20:37:20 +00:00