All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.aya.concrete.resolve.module.EmptyModuleLoader Maven / Gradle / Ivy

There is a newer version: 0.33.0
Show newest version
// Copyright (c) 2020-2021 Yinsen (Tesla) Zhang.
// Use of this source code is governed by the MIT license that can be found in the LICENSE.md file.
package org.aya.concrete.resolve.module;

import kala.collection.immutable.ImmutableSeq;
import org.aya.api.error.Reporter;
import org.aya.concrete.resolve.ResolveInfo;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class EmptyModuleLoader implements ModuleLoader {
  public static final @NotNull EmptyModuleLoader INSTANCE = new EmptyModuleLoader();

  @Override public @NotNull Reporter reporter() {
    throw new IllegalStateException("unreachable");
  }

  private EmptyModuleLoader() {}

  @Override public @Nullable ResolveInfo
  load(@NotNull ImmutableSeq<@NotNull String> path, @NotNull ModuleLoader recurseLoader) {
    return null;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy