import { Location , Range } from 'istanbul-lib-coverage' ; export function isValidPosition ( p ) { return ( p || false ) && p . line !== null && p . line >= 0 ; } export function isValidLocation ( l ) { return isValidPosition ( l . start ) && isValidPosition ( l . end ) ; }