Skip to main content

src/webql/compiler/lowerer/lower_return.gleam

import webql/compiler/resolver/hir
import webql/graph

/// Lowers a resolved graph return into an IR output.
pub fn lower(return: hir.Return) -> graph.Return {
  graph.Return(name: return.name, port: return.port.name)
}