Merge branch 'experimental' of github.com:babel/babel into experimental
# Conflicts: # src/babel/transformation/transformers/playground/object-getter-memoization.js # src/babel/traversal/path/index.js # src/babel/traversal/scope.js
This commit is contained in:
commit
d4d18f4230
@ -71,6 +71,13 @@ export default class Scope {
|
||||
*/
|
||||
|
||||
constructor(path: TraversalPath, parent?: Scope, file?: File) {
|
||||
var cached = path.getData("scope");
|
||||
if (cached) {
|
||||
return cached;
|
||||
} else {
|
||||
//path.setData("scope", this);
|
||||
}
|
||||
|
||||
this.parent = parent;
|
||||
this.file = parent ? parent.file : file;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user