Class CBTypePackageConverter

java.lang.Object
com.io7m.cedarbridge.schema.typer.internal.CBTypePackageConverter

public final class CBTypePackageConverter extends Object
A simple translator from ASTs to the more abstract compiled model.
  • Constructor Details

    • CBTypePackageConverter

      public CBTypePackageConverter()
      Construct a package builder.
  • Method Details

    • build

      public CBPackageType build(CBASTPackage pack)
      Build a compiled package from the given AST. This assumes that all binding analysis and type checking has been completed, and that the AST will have the expected user data annotations.
      Parameters:
      pack - The package
      Returns:
      A compiled package