Main code generating module. Do()
produces the implementation
of a stable subtype of its parameter qid
.
INTERFACEGenCode ; IMPORT Type, M3Context, StablegenError; PROCEDURE Do (c : M3Context.T; qid : Type.Qid; reveal, implName, repName: TEXT ) RAISES {StablegenError.E};
Generate implementation for the object which type is named byqid
.c
is the current compilation context. An exception is raised if an error is detected.reveal
is the name of the interface containing the most specific revealation ofqid
.implName
is the name of the implementation module for the stable subtype.repName
is the module name of the generic part of the implementation of the stable object (usually likeimplName
with a ``Rep'' appended). TherepName
module is made by instatiating the genericStableRep
module.
END GenCode.