Don't let missing .loc trigger reprinting unless .loc will be used.
Don't let missing .loc trigger reprinting unless .loc will be used.

We nullify .loc information for nodes like the FunctionExpression values
of method properties, because the original source is not reusable as a
valid FunctionExpression (it's missing the `function` keyword, for one
thing). Unless we actually need to use the original source for reprinting
purposes, we should tolerate missing .loc information and continue
traversing the AST.

kyldvs/recast,kassens/recast,cpojer/recast,ersengultepe/recast,shumov/recast,benjamn/recast,ipeychev/recast,benjamn/recast,marcioj/recast,benjamn/recast