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
createInterface indents a copied type by its source column #9135
createInterface copies a type declaration from the source with the column it has there as its indentation, instead of the indentation of the place it is printed at.
moduleMake= (X: {typet}) => {
typeu=X.t
}
generates
moduleMake: (
X: {
typet
},
) =>
{
typeu=X.t
}
type t is at column 19 in the source. Source_file_extractor.extract (analysis/src/create_interface.ml) prefixes the first line of the copied text with col_start spaces, and the Sig_type case of process_signature adds that text without its indent. A type in a module written on one line, such as module M = {type t = int}, is likely affected the same way.
Activity
Indent copied declarations in created interfaces at their place (resc…
Indent copied declarations in created interfaces at their place (resc…