Chromium Code Reviews
DescriptionHit breakpoints in single line closures.
Before this change, breakpoints on lines like the following were not hit:
var singleLineClosure = (int a, int b) => return a + b;
The reason was that breakpoints were only resolved if their start token
was contained within a function. Since that is not true for closure vars
like in the above example, the breakpoints were never getting resolved.
This change avoids such a problem by resolving breakpoints if the token
range of the breakpoint overlaps the token range of a function.
Fixes #29736
R=asiva@google.com
Committed: https://github.com/dart-lang/sdk/commit/ffeaa4a46d0e8ff6a99dfc443ada9b9abd1e51d8
Patch Set 1 #
Total comments: 2
Patch Set 2 : Include other kinds of implicit functions to filter out #Patch Set 3 : Enable a test with dartk which now passes #
Messages
Total messages: 8 (2 generated)
|
|||||||||||||||||||||||||||||||||||||