DescriptionFix #28740 demangle constructors in stack traces (A.A becomes new A) REDO
Regular constructors and unnamed factory constructors:
- Were A.A, now are new A
Named constructors (including factory constructors):
- Were A.A.name, now are new A.name
Previous attempt (a84b6b7f) didn't update vm/cc tests, which broke the
build, was reverted, and also revealed an important case:
Functions within constructors:
- Were A.A.x, now are new A.x
Doing this was cleanest by switching the loop out for recursion, which
provides a nice guarantee that any anonymous function within some other
function will always have the correct prefix, and the class name (which
may or may not be prepended at the end) is only applied once, and its
existence is only checked in one place.
R=asiva@google.com
Committed: https://github.com/dart-lang/sdk/commit/a48e0ef493796f032aa0427124800917d6a1d75d
Patch Set 1 #Patch Set 2 : Fix #28740 demangle constructors in stack traces (A.A becomes new A) REDO #
Total comments: 2
Patch Set 3 : Don't recurse in QualifiedName, just check the ending function kind for ctor #
Messages
Total messages: 8 (2 generated)
|