forked from babel/babel
-
Notifications
You must be signed in to change notification settings - Fork 0
Internal Plugins
Henry Zhu edited this page Feb 16, 2016
·
4 revisions
-
node._blockHoist:node._blockHoist != nulltriggers the block-hoist transformer. Value should be true or an integer in the range 0..3. true is equivalent to 2. The value indicates whether the node should be hoisted and to what degree. See the source code for more detailed information. -
node.shadow: A truthy value on a function node triggers the shadow-functions transformer, which transforms the node so that it references (or inherits)argumentsand thethiscontext from the parent scope. It is invoked for arrow functions or when we want to create a function that is "invisible".-
trueis equivalent to{ arguments: true, this: true} -
falseis an noop.
-
-
node._paths: Stores a representation of a node's position in the tree and relationship to other nodes.