From aa41135f21cd8eeaf8b76c69b643497d2d34da36 Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Sat, 8 Apr 2017 16:33:52 -0400 Subject: [PATCH] remove redundant addSourcemapLocations calls --- src/generators/dom/visitors/EachBlock.js | 2 -- src/generators/dom/visitors/IfBlock.js | 1 - 2 files changed, 3 deletions(-) diff --git a/src/generators/dom/visitors/EachBlock.js b/src/generators/dom/visitors/EachBlock.js index 77d1014294..aab0d8e3ee 100644 --- a/src/generators/dom/visitors/EachBlock.js +++ b/src/generators/dom/visitors/EachBlock.js @@ -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` ); diff --git a/src/generators/dom/visitors/IfBlock.js b/src/generators/dom/visitors/IfBlock.js index ffdbef5eb7..d9ffbe57f9 100644 --- a/src/generators/dom/visitors/IfBlock.js +++ b/src/generators/dom/visitors/IfBlock.js @@ -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 = [{