Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(typescript-estree): fix handling of range/loc removal (#2028)
  • Loading branch information
DevXiaolan committed May 17, 2020
1 parent f42a5b0 commit ce344d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typescript-estree/src/ast-converter.ts
Expand Up @@ -36,7 +36,7 @@ export function astConverter(
/**
* Optionally remove range and loc if specified
*/
if (extra.range || extra.loc) {
if (!extra.range || !extra.loc) {
simpleTraverse(estree, {
enter: node => {
if (!extra.range) {
Expand Down

0 comments on commit ce344d9

Please sign in to comment.