All files log.js

0% Statements 0/3
0% Branches 0/2
0% Functions 0/1
0% Lines 0/2
1 2 3 4 5 6 7 8 9                 
// @flow
import printAST from 'ast-pretty-print';
import type {Node} from './types';
 
export default function log(node: Node) {
  if (node.node) throw new Error('Called log() with Path');
  console.log(printAST(node, true));
}