DescriptionAllow patch files to add top-level declarations to the patched library.
The patch library is loaded normally, and then non-patch methods and classes
are cloned and added to the patched library. To support methods from other
compilation units, all elements now has a scriptOverride field that lets
them report a different script than the one of their enclosing element.
(For top-level elements that's already possible, as that's what #source does,
but for fields inside a class, we can't easily wrap a compilation unit element
around them.)
TBR: floitsch
(to get in before vacation, with reversion rights).
Committed: https://code.google.com/p/dart/source/detail?r=9629
Patch Set 1 #Patch Set 2 : Updated min/max in unified/math library. #
Total comments: 4
Patch Set 3 : Fix errors caught by editor. #Messages
Total messages: 4 (0 generated)
|