- All Superinterfaces:
Problematic
- All Known Subinterfaces:
ModuleContext
- All Known Implementing Classes:
BindContext,EmptyContext,NoExportContext,PhysicalModuleContext
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Contextbind(@NotNull String name, @NotNull org.aya.syntax.ref.LocalVar ref, @NotNull Predicate<@Nullable org.aya.syntax.ref.AnyVar> toWarn) default @NotNull Contextbind(@NotNull org.aya.syntax.ref.LocalVar ref) default @NotNull Contextbind(@NotNull org.aya.syntax.ref.LocalVar ref, @NotNull Predicate<@Nullable org.aya.syntax.ref.AnyVar> toWarn) default kala.collection.mutable.MutableList<org.aya.syntax.ref.LocalVar> collect(@NotNull kala.collection.mutable.MutableList<org.aya.syntax.ref.LocalVar> container) default @NotNull PhysicalModuleContextdefault @NotNull PhysicalModuleContextderive(@NotNull org.aya.syntax.ref.ModulePath extraName) default @NotNull org.aya.syntax.ref.AnyVarget(@NotNull org.aya.syntax.concrete.stmt.QualifiedID name) Getting a symbol by name .default @Nullable org.aya.syntax.ref.AnyVargetMaybe(@NotNull org.aya.syntax.concrete.stmt.QualifiedID name) @Nullable ModuleExportgetModuleLocalMaybe(org.aya.syntax.concrete.stmt.ModuleName.Qualified modName) Trying to get aModuleExportby a module inthiscontext.default @Nullable ModuleExportgetModuleMaybe(org.aya.syntax.concrete.stmt.ModuleName.Qualified modName) Trying to get aModuleExportby a module in the whole context.default @NotNull org.aya.syntax.ref.AnyVargetQualified(org.aya.syntax.concrete.stmt.ModuleName.Qualified modName, @NotNull String name, @NotNull org.aya.util.error.SourcePos sourcePos) @Nullable org.aya.syntax.ref.AnyVargetQualifiedLocalMaybe(org.aya.syntax.concrete.stmt.ModuleName.Qualified modName, @NotNull String name, @NotNull org.aya.util.error.SourcePos sourcePos) Trying to get a symbol by qualified id{modName}::{name}inthiscontextdefault @Nullable org.aya.syntax.ref.AnyVargetQualifiedMaybe(org.aya.syntax.concrete.stmt.ModuleName.Qualified modName, @NotNull String name, @NotNull org.aya.util.error.SourcePos sourcePos) Trying to get a symbol by qualified id{modName}::{name}in the whole context with .default @NotNull org.aya.syntax.ref.AnyVargetUnqualified(@NotNull String name, @NotNull org.aya.util.error.SourcePos sourcePos) @Nullable org.aya.syntax.ref.AnyVargetUnqualifiedLocalMaybe(@NotNull String name, @NotNull org.aya.util.error.SourcePos sourcePos) Trying to get a symbol by unqualified name inthiscontext.default @Nullable org.aya.syntax.ref.AnyVargetUnqualifiedMaybe(@NotNull String name, @NotNull org.aya.util.error.SourcePos sourcePos) Trying to get a symbol which can referred by unqualified name in the whole context.default <T> Tdefault @NotNull org.aya.syntax.ref.ModulePathThe path of this module@Nullable Contextparent()default voidreportAll(@NotNull kala.collection.SeqLike<org.aya.util.reporter.Problem> problems) default <T> TreportAllAndThrow(@NotNull kala.collection.SeqLike<org.aya.util.reporter.Problem> problems) default <T> TreportAndThrow(@NotNull org.aya.util.reporter.Problem problem) @NotNull org.aya.util.reporter.Reporterreporter()@NotNull PathMethods inherited from interface org.aya.tyck.tycker.Problematic
fail, fail, fail
-
Method Details
-
parent
-
reporter
@NotNull @NotNull org.aya.util.reporter.Reporter reporter()- Specified by:
reporterin interfaceProblematic
-
underlyingFile
-
iterate
-
modulePath
@NotNull default @NotNull org.aya.syntax.ref.ModulePath modulePath()The path of this module -
reportAndThrow
@Contract("_ -> fail") @NotNull default <T> T reportAndThrow(@NotNull @NotNull org.aya.util.reporter.Problem problem) -
reportAllAndThrow
@Contract("_ -> fail") @NotNull default <T> T reportAllAndThrow(@NotNull @NotNull kala.collection.SeqLike<org.aya.util.reporter.Problem> problems) -
reportAll
default void reportAll(@NotNull @NotNull kala.collection.SeqLike<org.aya.util.reporter.Problem> problems) -
get
@NotNull default @NotNull org.aya.syntax.ref.AnyVar get(@NotNull @NotNull org.aya.syntax.concrete.stmt.QualifiedID name) Getting a symbol by name .- Parameters:
name- an id which probably unqualified
-
getMaybe
@Nullable default @Nullable org.aya.syntax.ref.AnyVar getMaybe(@NotNull @NotNull org.aya.syntax.concrete.stmt.QualifiedID name) - See Also:
-
collect
default kala.collection.mutable.MutableList<org.aya.syntax.ref.LocalVar> collect(@NotNull @NotNull kala.collection.mutable.MutableList<org.aya.syntax.ref.LocalVar> container) -
getUnqualifiedLocalMaybe
@Nullable @Nullable org.aya.syntax.ref.AnyVar getUnqualifiedLocalMaybe(@NotNull @NotNull String name, @NotNull @NotNull org.aya.util.error.SourcePos sourcePos) Trying to get a symbol by unqualified name inthiscontext. -
getUnqualifiedMaybe
@Nullable default @Nullable org.aya.syntax.ref.AnyVar getUnqualifiedMaybe(@NotNull @NotNull String name, @NotNull @NotNull org.aya.util.error.SourcePos sourcePos) Trying to get a symbol which can referred by unqualified name in the whole context.- Parameters:
name- the unqualified namesourcePos- the source pos for error reporting- Returns:
- null if not found
- See Also:
-
getUnqualified
@NotNull default @NotNull org.aya.syntax.ref.AnyVar getUnqualified(@NotNull @NotNull String name, @NotNull @NotNull org.aya.util.error.SourcePos sourcePos) - See Also:
-
getQualifiedLocalMaybe
@Nullable @Nullable org.aya.syntax.ref.AnyVar getQualifiedLocalMaybe(@NotNull org.aya.syntax.concrete.stmt.ModuleName.Qualified modName, @NotNull @NotNull String name, @NotNull @NotNull org.aya.util.error.SourcePos sourcePos) Trying to get a symbol by qualified id{modName}::{name}inthiscontext- Returns:
- a symbol in component , even it is
ModuleName.This; null if not found
-
getQualifiedMaybe
@Nullable default @Nullable org.aya.syntax.ref.AnyVar getQualifiedMaybe(@NotNull org.aya.syntax.concrete.stmt.ModuleName.Qualified modName, @NotNull @NotNull String name, @NotNull @NotNull org.aya.util.error.SourcePos sourcePos) Trying to get a symbol by qualified id{modName}::{name}in the whole context with .- See Also:
-
getQualified
@NotNull default @NotNull org.aya.syntax.ref.AnyVar getQualified(@NotNull org.aya.syntax.concrete.stmt.ModuleName.Qualified modName, @NotNull @NotNull String name, @NotNull @NotNull org.aya.util.error.SourcePos sourcePos) - See Also:
-
getModuleLocalMaybe
@Nullable @Nullable ModuleExport getModuleLocalMaybe(@NotNull org.aya.syntax.concrete.stmt.ModuleName.Qualified modName) Trying to get aModuleExportby a module inthiscontext.- Parameters:
modName- qualified module name- Returns:
- a ModuleExport of that module; null if no such module.
-
getModuleMaybe
@Nullable default @Nullable ModuleExport getModuleMaybe(@NotNull org.aya.syntax.concrete.stmt.ModuleName.Qualified modName) Trying to get aModuleExportby a module in the whole context.- Parameters:
modName- qualified module name- Returns:
- a ModuleExport of that module; null if no such module.
-
bind
-
bind
-
bind
-
derive
-
derive
@NotNull default @NotNull PhysicalModuleContext derive(@NotNull @NotNull org.aya.syntax.ref.ModulePath extraName)
-