src/rules/namespace.js
function (namespace) {
        var declaration = importDeclaration(context)

        var imports = Exports.get(declaration.source.value, context)
        if (imports == null) return null

        if (imports.errors.length) {
          imports.reportErrors(context, declaration)
          return
        }

        if (!imports.size) {
          context.report(namespace,
            `No exported names found in module '${declaration.source.value}'.`)
        }
      }
function (namespace) {
        var declaration = importDeclaration(context)

        var imports = Exports.get(declaration.source.value, context)
        if (imports == null) return null

        if (imports.errors.length) {
          imports.reportErrors(context, declaration)
          return
        }

        if (!imports.size) {
          context.report(namespace,
            `No exported names found in module '${declaration.source.value}'.`)
        }
      }
function ( namespace ) { var declaration = importDeclaration ( context ) var imports = Exports . get ( declaration . source . value , context ) if ( imports == null ) return null if ( imports . errors . length ) { imports . reportErrors ( context , declaration ) return } if ( ! imports . size ) { context . report ( namespace , ` ${ declaration . source . value } ` ) } }
same as above, but does not add names to local map
same as above but does not add names to local map