Chromium Code Reviews
DescriptionPropertly tree shake factory constructors.
An invocation of a factory constructor on class A does not necessarily
cause class A to be instantiated--it may redirect to a related or
unrelated class, or instantiate nothing at all.
We handle this by treating constructors similar to static function
calls--when a constructor invocation is found, the constructor element
is added to the queue; later, when the constructor element is
analyzed, we determine whether it instantiates the class or not based
on what kind of constructor it is.
R=brianwilkerson@google.com
Committed: https://code.google.com/p/dart/source/detail?r=40899
Patch Set 1 #
Total comments: 2
Messages
Total messages: 7 (1 generated)
|
||||||||||||||||||||||||||||