fix: ConstTag AST tweak (#11196)

VariableDeclaration should start at `const`, not at `@const`
As a side-effect, this will create less diff noise for language tools tests
pull/11192/head
Simon H 4 months ago committed by GitHub
parent 1c33ff0107
commit 1cc6a32069
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -565,7 +565,7 @@ function special(parser) {
type: 'VariableDeclaration',
kind: 'const',
declarations: [{ type: 'VariableDeclarator', id, init }],
start: start + 1,
start: start + 2, // start at const, not at @const
end: parser.index - 1
}
});

Loading…
Cancel
Save