java.lang.Object
org.aya.resolve.context.PhysicalModuleContext
org.aya.cli.interactive.ReplContext
- All Implemented Interfaces:
org.aya.resolve.context.Context,org.aya.resolve.context.ModuleContext,org.aya.tyck.tycker.Problematic,org.aya.util.RepoLike<ReplContext>
public final class ReplContext
extends org.aya.resolve.context.PhysicalModuleContext
implements org.aya.util.RepoLike<ReplContext>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.aya.resolve.context.Context
org.aya.resolve.context.Context.ResolvingInterruptedException -
Field Summary
Fields inherited from class org.aya.resolve.context.PhysicalModuleContext
exports, modules, parent, reporter, symbols -
Constructor Summary
ConstructorsConstructorDescriptionReplContext(@NotNull org.aya.util.reporter.Reporter reporter, @NotNull org.aya.resolve.context.Context parent, @NotNull org.aya.syntax.ref.ModulePath name) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()@NotNull ReplContext@NotNull ReplContextderive(@NotNull org.aya.syntax.ref.ModulePath extraName, @NotNull org.aya.util.reporter.Reporter reporter) booleanexportSymbol(@NotNull String name, @NotNull org.aya.syntax.ref.AnyDefVar ref) @NotNull ReplContextfork()@NotNull kala.collection.immutable.ImmutableSeq<String> giveMeHint(@NotNull kala.collection.immutable.ImmutableSeq<String> prefix) voidimportModule(org.aya.syntax.concrete.stmt.ModuleName.Qualified modName, @NotNull org.aya.resolve.context.ModuleExport mod, @NotNull org.aya.syntax.concrete.stmt.Stmt.Accessibility accessibility, @NotNull org.aya.util.error.SourcePos sourcePos) voidimportSymbol(@NotNull org.aya.syntax.ref.AnyVar ref, @NotNull org.aya.syntax.concrete.stmt.ModuleName fromModule, @NotNull String name, org.aya.syntax.concrete.stmt.Stmt.Accessibility acc, @NotNull org.aya.util.error.SourcePos sourcePos) voidmerge()@NotNull kala.collection.immutable.ImmutableMap<String, ReplContext.ModuleTrie> voidsetDownstream(@Nullable ReplContext downstream) Methods inherited from class org.aya.resolve.context.PhysicalModuleContext
exampleContext, exports, modulePath, modules, parent, reporter, symbolsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aya.resolve.context.Context
bind, bind, bind, collect, derive, derive, get, getMaybe, getModuleMaybe, getQualified, getQualifiedMaybe, getUnqualified, getUnqualifiedMaybe, iterate, reportAll, reportAllAndThrow, reportAndThrowMethods inherited from interface org.aya.resolve.context.ModuleContext
defineSymbol, getModuleLocalMaybe, getQualifiedLocalMaybe, getUnqualifiedLocalMaybe, importModuleContext, openModule, openModule, underlyingFileMethods inherited from interface org.aya.tyck.tycker.Problematic
fail, fail, failMethods inherited from interface org.aya.util.RepoLike
fork
-
Constructor Details
-
ReplContext
public ReplContext(@NotNull @NotNull org.aya.util.reporter.Reporter reporter, @NotNull @NotNull org.aya.resolve.context.Context parent, @NotNull @NotNull org.aya.syntax.ref.ModulePath name)
-
-
Method Details
-
importSymbol
public void importSymbol(@NotNull @NotNull org.aya.syntax.ref.AnyVar ref, @NotNull @NotNull org.aya.syntax.concrete.stmt.ModuleName fromModule, @NotNull @NotNull String name, @NotNull org.aya.syntax.concrete.stmt.Stmt.Accessibility acc, @NotNull @NotNull org.aya.util.error.SourcePos sourcePos) - Specified by:
importSymbolin interfaceorg.aya.resolve.context.ModuleContext
-
exportSymbol
public boolean exportSymbol(@NotNull @NotNull String name, @NotNull @NotNull org.aya.syntax.ref.AnyDefVar ref) - Specified by:
exportSymbolin interfaceorg.aya.resolve.context.ModuleContext- Overrides:
exportSymbolin classorg.aya.resolve.context.PhysicalModuleContext
-
importModule
public void importModule(@NotNull org.aya.syntax.concrete.stmt.ModuleName.Qualified modName, @NotNull @NotNull org.aya.resolve.context.ModuleExport mod, @NotNull org.aya.syntax.concrete.stmt.Stmt.Accessibility accessibility, @NotNull @NotNull org.aya.util.error.SourcePos sourcePos) - Specified by:
importModulein interfaceorg.aya.resolve.context.ModuleContext- Overrides:
importModulein classorg.aya.resolve.context.PhysicalModuleContext
-
derive
@NotNull public @NotNull ReplContext derive(@NotNull @NotNull org.aya.syntax.ref.ModulePath extraName, @NotNull @NotNull org.aya.util.reporter.Reporter reporter) - Specified by:
derivein interfaceorg.aya.resolve.context.Context
-
derive
@NotNull public @NotNull ReplContext derive(@NotNull @NotNull String extraName, @NotNull @NotNull org.aya.util.reporter.Reporter reporter) - Specified by:
derivein interfaceorg.aya.resolve.context.Context
-
setDownstream
- Specified by:
setDownstreamin interfaceorg.aya.util.RepoLike<ReplContext>
-
fork
-
merge
public void merge()- Specified by:
mergein interfaceorg.aya.util.RepoLike<ReplContext>
-
clear
@Contract(mutates="this") public void clear() -
giveMeHint
-
moduleTree
@NotNull public @NotNull kala.collection.immutable.ImmutableMap<String,ReplContext.ModuleTrie> moduleTree()
-