add _paths in t.inherits

This commit is contained in:
Sebastian McKenzie 2015-06-06 03:32:35 +01:00
parent a4c70bb029
commit d0ac65a934

View File

@ -293,10 +293,12 @@ export function inherits(child: Object, parent: Object): Object {
if (!child || !parent) return child;
child._scopeInfo = parent._scopeInfo;
child.range = parent.range;
child.start = parent.start;
child.loc = parent.loc;
child.end = parent.end;
child._paths = parent._paths;
child.range = parent.range;
child.start = parent.start;
child.loc = parent.loc;
child.end = parent.end;
child.typeAnnotation = parent.typeAnnotation;
child.returnType = parent.returnType;