CodeGeneratorContext

interface CodeGeneratorContext

Functions

kotlinName
Link copied to clipboard
abstract fun kotlinName(sourceName: ObjectVariable): String
abstract fun kotlinName(sourceName: Temporary, protocol: Protocol): String
newTemporary
Link copied to clipboard
abstract fun newTemporary(baseName: String): String
receive
Link copied to clipboard
abstract fun receive(type: TypeName, sender: Host): CodeBlock

Returns code that will receive a value of type type from sender.

send
Link copied to clipboard
abstract fun send(value: CodeBlock, receiver: Host): CodeBlock

Returns code that will send value to receiver.

Properties

host
Link copied to clipboard
abstract val host: Host
program
Link copied to clipboard
abstract val program: ProgramNode
protocolComposer
Link copied to clipboard
abstract val protocolComposer: ProtocolComposer