remove redundant addSourcemapLocations calls

pull/453/head
Rich-Harris 8 years ago
parent 552820cd7f
commit aa41135f21

@ -14,8 +14,6 @@ export default function visitEachBlock ( generator, block, state, node ) {
const isToplevel = !state.parentNode;
generator.addSourcemapLocations( node.expression );
const { dependencies, snippet } = generator.contextualise( block, node.expression );
const anchor = block.getUniqueName( `${name}_anchor` );

@ -2,7 +2,6 @@ import deindent from '../../../utils/deindent.js';
import visit from '../visit.js';
function getConditionsAndBlocks ( generator, block, state, node, _name, i = 0 ) {
generator.addSourcemapLocations( node.expression );
const name = generator.getUniqueName( `${_name}_${i}` );
const conditionsAndBlocks = [{

Loading…
Cancel
Save