CodeGeneratorContext

Functions

Link copied to clipboard
abstract fun codeOf(host: Host): CodeBlock

Returns code that will evaluate to host.

Link copied to clipboard
abstract fun kotlinName(sourceName: ObjectVariable): String
abstract fun kotlinName(sourceName: Temporary, protocol: Protocol): String
Link copied to clipboard
abstract fun newTemporary(baseName: String): String

Returns a fresh kotlin name based on baseName.

Link copied to clipboard
abstract fun receive(type: TypeName, sender: Host): CodeBlock

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

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

Returns code that will send value to receiver.

Link copied to clipboard
abstract fun url(host: Host): CodeBlock

Returns code that will evaluate to the address of host.

Properties

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