fix legacy ast

pull/12043/head
baseballyama 2 years ago
parent fc3ee2fc16
commit 16d839ca54

@ -357,7 +357,7 @@ export function convert(source, ast) {
return { return {
type: 'IfBlock', type: 'IfBlock',
start: node.start, start: node.elseif ? node.consequent.nodes[0].start : node.start,
end: node.end, end: node.end,
expression: node.test, expression: node.test,
children: node.consequent.nodes.map( children: node.consequent.nodes.map(

Loading…
Cancel
Save