Context.makeModule

Make a Module from the specified MemoryBuffer.

Assumtion: the memory buffer is only needed to create the module. It do not have to be kept alive after the function has finished. This is in contrast with the lazy API which would need to keep both alive.

The ModuleID is derived from buffer.

Diagnostic messages that are created by this operation become part of the result.

  1. Module makeModule(string id)
  2. ModuleFromMemoryBufferResult makeModule(ref MemoryBuffer buffer)
    struct Context
    ModuleFromMemoryBufferResult
    makeModule
    (
    ref MemoryBuffer buffer
    )

Meta