hasInvalidEOF(node) {
    const body = node.templateBody
    if (body == null || body.errors == null) {
      return false
    }
    return body.errors.some(
      (error) => typeof error.code === 'string' && error.code.startsWith('eof-')
    )
  }
Check whether the templateBody of the program has invalid EOF or not.
@param {Program} node The program node to check.
@returns {boolean} `true` if it has invalid EOF.