You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Editor analysis mishandles declarations read from signatures #9324
Editor analysis handles declarations read from signatures (module types, signature constraints, .resi files) in several wrong ways.
// Sig.resmoduletype MT= {
letinMt: int
}
moduleImpl: MT= {
letinMt=2
}
leta=Impl.inMtmoduletype WithSig= {
moduletype S= {
letsigValue: int
}
moduleNested: S
}
moduleSealed: WithSig= {
moduletype S= {
letsigValue: int
}
moduleNested= {
letsigValue=1
}
}
letsv=Sealed.Nested.sigValuemoduleM: {
moduleInner: {
letv: int
}
} = {
moduleInner= {
letv=1
}
}
leti=Intf.x// SigUse.resletv=Sig.M.Inner.v// Intf.resletx=1// Intf.resiletx: int
Rename replaces the whole item: renaming inMt in module type MT replaces all of let inMt: int (1:2–1:15) with the new name. It also leaves let inMt = 2 in Impl unchanged. The result does not compile.
Module types nested in a module type are not registered: Find References on Sealed.Nested.sigValue returns null.
Nested modules of a constrained module: Find References on v in M's signature returns the whole item let v: int as the declaration's range, and misses the use Sig.M.Inner.v in SigUse.res.
Interface values are listed twice: Find References on Intf.x lists Intf.resi 0:4 twice, and rename edits that range twice. The analysis fixtures Cross and References show the same duplicate.
Activity
Read signature declarations by name in editor analysis
Read signature declarations by name in editor analysis
Read signature declarations by name in editor analysis
Read signature declarations by name in editor analysis
Read signature declarations by name in editor analysis
Read signature declarations by name in editor analysis
Read signature declarations by name in editor analysis
Read signature declarations by name in editor analysis
Read signature declarations by name in editor analysis
Fix editor analysis for declarations in module types, signatures and …