java.lang.Object
java.lang.Record
org.aya.resolve.visitor.StmtPreResolver
public record StmtPreResolver(@NotNull ModuleLoader loader, @NotNull ResolveInfo resolveInfo)
extends Record
simply adds all top-level names to the context
-
Constructor Summary
ConstructorsConstructorDescriptionStmtPreResolver(@NotNull ModuleLoader loader, @NotNull ResolveInfo resolveInfo) Creates an instance of aStmtPreResolverrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static @NotNull NoExportContextexampleContext(@NotNull ModuleContext context) final inthashCode()Returns a hash code value for this object.@NotNull ModuleLoaderloader()Returns the value of theloaderrecord component.@NotNull ResolveInfoReturns the value of theresolveInforecord component.kala.collection.immutable.ImmutableSeq<ResolvingStmt> resolveStmt(@NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.stmt.Stmt> stmts, ModuleContext context) ResolveStmts under .@Nullable ResolvingStmtresolveStmt(@NotNull org.aya.syntax.concrete.stmt.Stmt stmt, @NotNull ModuleContext context) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StmtPreResolver
public StmtPreResolver(@NotNull @NotNull ModuleLoader loader, @NotNull @NotNull ResolveInfo resolveInfo) Creates an instance of aStmtPreResolverrecord class.- Parameters:
loader- the value for theloaderrecord componentresolveInfo- the value for theresolveInforecord component
-
-
Method Details
-
resolveStmt
public kala.collection.immutable.ImmutableSeq<ResolvingStmt> resolveStmt(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.stmt.Stmt> stmts, ModuleContext context) ResolveStmts under .- Returns:
- the context of the body of each
Stmt, where imports and opens are stripped.
-
resolveStmt
@Nullable public @Nullable ResolvingStmt resolveStmt(@NotNull @NotNull org.aya.syntax.concrete.stmt.Stmt stmt, @NotNull @NotNull ModuleContext context) -
exampleContext
@NotNull public static @NotNull NoExportContext exampleContext(@NotNull @NotNull ModuleContext context) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
loader
Returns the value of theloaderrecord component.- Returns:
- the value of the
loaderrecord component
-
resolveInfo
Returns the value of theresolveInforecord component.- Returns:
- the value of the
resolveInforecord component
-