Arrange differently for coverage

This commit is contained in:
Iain Wilson 2019-04-25 16:09:55 +01:00
parent 260d69e995
commit eaf8be005f
1 changed files with 4 additions and 6 deletions

View File

@ -1954,6 +1954,9 @@ class Parser extends Tapable {
case "RestElement":
this.enterRestElement(pattern, onIdent);
break;
case "Property":
this.enterPattern(pattern.value, onIdent);
break;
}
}
@ -1968,12 +1971,7 @@ class Parser extends Tapable {
propIndex++
) {
const prop = pattern.properties[propIndex];
if (prop.type === "Property") {
this.enterPattern(prop.value, onIdent);
} else {
this.enterPattern(prop, onIdent);
}
this.enterPattern(prop, onIdent);
}
}