org.aya.concrete.resolve.module.EmptyModuleLoader Maven / Gradle / Ivy
// 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;
}
}