java.lang.Object
java.lang.Record
org.aya.resolve.ResolveInfo
- Record Components:
thisModule- context of the underlying moduleprimFactory- globally shared prim definition datashapeFactory- shapes local to this moduleopSet- operators local to this moduleopRename- open/import renames with operatorsdepGraph- local to this module
public record ResolveInfo(@NotNull ModuleContext thisModule, @NotNull PrimFactory primFactory, @NotNull ShapeFactory shapeFactory, @NotNull AyaBinOpSet opSet, @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.core.def.AnyDef,ResolveInfo.OpRenameInfo> opRename, @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.concrete.stmt.ModuleName.Qualified,ResolveInfo.ImportInfo> imports, @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.concrete.stmt.ModuleName.Qualified,org.aya.syntax.concrete.stmt.UseHide> reExports, @NotNull org.aya.util.terck.MutableGraph<org.aya.generic.stmt.TyckOrder> depGraph)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionResolveInfo(@NotNull ModuleContext thisModule, @NotNull PrimFactory primFactory, @NotNull ShapeFactory shapeFactory) ResolveInfo(@NotNull ModuleContext thisModule, @NotNull PrimFactory primFactory, @NotNull ShapeFactory shapeFactory, @NotNull AyaBinOpSet opSet) ResolveInfo(@NotNull ModuleContext thisModule, @NotNull PrimFactory primFactory, @NotNull ShapeFactory shapeFactory, @NotNull AyaBinOpSet opSet, @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.core.def.AnyDef, ResolveInfo.OpRenameInfo> opRename, @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.concrete.stmt.ModuleName.Qualified, ResolveInfo.ImportInfo> imports, @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.concrete.stmt.ModuleName.Qualified, org.aya.syntax.concrete.stmt.UseHide> reExports, @NotNull org.aya.util.terck.MutableGraph<org.aya.generic.stmt.TyckOrder> depGraph) Creates an instance of aResolveInforecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.aya.util.terck.MutableGraph<org.aya.generic.stmt.TyckOrder> depGraph()Returns the value of thedepGraphrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull kala.collection.mutable.MutableMap<org.aya.syntax.concrete.stmt.ModuleName.Qualified, ResolveInfo.ImportInfo> imports()Returns the value of theimportsrecord component.@NotNull TyckStatenewTycker(@NotNull org.aya.util.reporter.Reporter reporter) voidopen(@NotNull ResolveInfo other, @NotNull org.aya.util.error.SourcePos sourcePos, org.aya.syntax.concrete.stmt.Stmt.Accessibility acc) @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.core.def.AnyDef, ResolveInfo.OpRenameInfo> opRename()Returns the value of theopRenamerecord component.@NotNull AyaBinOpSetopSet()Returns the value of theopSetrecord component.@NotNull PrimFactoryReturns the value of theprimFactoryrecord component.@NotNull kala.collection.mutable.MutableMap<org.aya.syntax.concrete.stmt.ModuleName.Qualified, org.aya.syntax.concrete.stmt.UseHide> Returns the value of thereExportsrecord component.voidrenameOp(@NotNull Context bindCtx, @NotNull org.aya.syntax.core.def.AnyDef defVar, @NotNull ResolveInfo.RenamedOpDecl renamed, @NotNull org.aya.syntax.concrete.stmt.BindBlock bind, boolean reExport) @NotNull org.aya.util.binop.OpDeclresolveOpDecl(org.aya.syntax.core.def.AnyDef defVar) @Nullable org.aya.util.binop.OpDeclresolveOpDecl(org.aya.syntax.ref.AnyVar var) @NotNull ShapeFactoryReturns the value of theshapeFactoryrecord component.@NotNull ModuleContextReturns the value of thethisModulerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolveInfo
public ResolveInfo(@NotNull @NotNull ModuleContext thisModule, @NotNull @NotNull PrimFactory primFactory, @NotNull @NotNull ShapeFactory shapeFactory) -
ResolveInfo
public ResolveInfo(@NotNull @NotNull ModuleContext thisModule, @NotNull @NotNull PrimFactory primFactory, @NotNull @NotNull ShapeFactory shapeFactory, @NotNull @NotNull AyaBinOpSet opSet) -
ResolveInfo
public ResolveInfo(@NotNull @NotNull ModuleContext thisModule, @NotNull @NotNull PrimFactory primFactory, @NotNull @NotNull ShapeFactory shapeFactory, @NotNull @NotNull AyaBinOpSet opSet, @NotNull @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.core.def.AnyDef, ResolveInfo.OpRenameInfo> opRename, @NotNull @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.concrete.stmt.ModuleName.Qualified, ResolveInfo.ImportInfo> imports, @NotNull @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.concrete.stmt.ModuleName.Qualified, org.aya.syntax.concrete.stmt.UseHide> reExports, @NotNull @NotNull org.aya.util.terck.MutableGraph<org.aya.generic.stmt.TyckOrder> depGraph) Creates an instance of aResolveInforecord class.- Parameters:
thisModule- the value for thethisModulerecord componentprimFactory- the value for theprimFactoryrecord componentshapeFactory- the value for theshapeFactoryrecord componentopSet- the value for theopSetrecord componentopRename- the value for theopRenamerecord componentimports- the value for theimportsrecord componentreExports- the value for thereExportsrecord componentdepGraph- the value for thedepGraphrecord component
-
-
Method Details
-
newTycker
-
newTycker
-
makeTyckState
-
resolveOpDecl
@Nullable public @Nullable org.aya.util.binop.OpDecl resolveOpDecl(org.aya.syntax.ref.AnyVar var) -
resolveOpDecl
@NotNull public @NotNull org.aya.util.binop.OpDecl resolveOpDecl(org.aya.syntax.core.def.AnyDef defVar) -
renameOp
public void renameOp(@NotNull @NotNull Context bindCtx, @NotNull @NotNull org.aya.syntax.core.def.AnyDef defVar, @NotNull @NotNull ResolveInfo.RenamedOpDecl renamed, @NotNull @NotNull org.aya.syntax.concrete.stmt.BindBlock bind, boolean reExport) - Parameters:
reExport- if this operator is renamed in this module, then true, or if publicly renamed by upstream, then false.- See Also:
-
open
public void open(@NotNull @NotNull ResolveInfo other, @NotNull @NotNull org.aya.util.error.SourcePos sourcePos, @NotNull org.aya.syntax.concrete.stmt.Stmt.Accessibility acc) -
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). -
thisModule
Returns the value of thethisModulerecord component.- Returns:
- the value of the
thisModulerecord component
-
primFactory
Returns the value of theprimFactoryrecord component.- Returns:
- the value of the
primFactoryrecord component
-
shapeFactory
Returns the value of theshapeFactoryrecord component.- Returns:
- the value of the
shapeFactoryrecord component
-
opSet
Returns the value of theopSetrecord component.- Returns:
- the value of the
opSetrecord component
-
opRename
@NotNull public @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.core.def.AnyDef,ResolveInfo.OpRenameInfo> opRename()Returns the value of theopRenamerecord component.- Returns:
- the value of the
opRenamerecord component
-
imports
@NotNull public @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.concrete.stmt.ModuleName.Qualified,ResolveInfo.ImportInfo> imports()Returns the value of theimportsrecord component.- Returns:
- the value of the
importsrecord component
-
reExports
@NotNull public @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.concrete.stmt.ModuleName.Qualified,org.aya.syntax.concrete.stmt.UseHide> reExports()Returns the value of thereExportsrecord component.- Returns:
- the value of the
reExportsrecord component
-
depGraph
@NotNull public @NotNull org.aya.util.terck.MutableGraph<org.aya.generic.stmt.TyckOrder> depGraph()Returns the value of thedepGraphrecord component.- Returns:
- the value of the
depGraphrecord component
-