Move type/gentype back into compiler where it belongs

This commit is contained in:
Tony Garnock-Jones 2021-05-24 12:05:02 +02:00
parent 46d76dfca7
commit 4914c8cd68
8 changed files with 9 additions and 9 deletions

View File

@ -2,9 +2,9 @@ import { stringify } from "@preserves/core";
import * as M from "./meta";
import { CompilerOptions, ModuleContext } from "./compiler/context";
import { Formatter, block, seq } from "./compiler/block";
import { typeForDefinition } from "./gentype";
import { typeForDefinition } from "./compiler/gentype";
import { converterForDefinition } from "./compiler/genconverter";
import { Type } from "./type";
import { Type } from "./compiler/type";
import { renderType } from "./compiler/rendertype";
import { genConstructor } from "./compiler/genctor";
import { unconverterForDefinition } from "./compiler/genunconverter";

View File

@ -2,7 +2,7 @@ import { Dictionary, KeyedSet, Position } from "@preserves/core";
import { refPosition } from "../reader";
import * as M from "../meta";
import { block, braces, commas, formatItems, Item, keyvalue, seq } from "./block";
import { ANY_TYPE, FieldType, Type } from "../type";
import { ANY_TYPE, FieldType, Type } from "./type";
import { renderType, variantInitFor } from "./rendertype";
export interface CompilerOptions {

View File

@ -1,9 +1,9 @@
import { FunctionContext } from "./context";
import * as M from '../meta';
import { Item, seq } from "./block";
import { simpleType, typeFor } from "../gentype";
import { simpleType, typeFor } from "./gentype";
import { refPosition } from "../reader";
import { ANY_TYPE, Type } from "../type";
import { ANY_TYPE, Type } from "./type";
export function converterForDefinition(
ctx: FunctionContext,

View File

@ -1,6 +1,6 @@
import * as M from '../meta';
import { block, braces, Item, keyvalue, parens, seq } from "./block";
import { FieldType, SimpleType } from "../type";
import { FieldType, SimpleType } from "./type";
import { renderType } from "./rendertype";
export function genConstructor(

View File

@ -1,4 +1,4 @@
import * as M from "./meta";
import * as M from "../meta";
import { ANY_TYPE, FieldType, FieldMap, SimpleType, Type } from "./type";
export type RefResolver = (ref: M.Ref) => FieldType;

View File

@ -1,4 +1,4 @@
import { SimpleType, Type } from "../type";
import { SimpleType, Type } from "./type";
import { anglebrackets, braces, Item, keyvalue, opseq, seq } from "./block";
export function variantInitFor(variantName: string | undefined) : Item[] {

View File

@ -3,4 +3,4 @@ export * from './error';
export * from './reader';
export * from './compiler';
export * as Meta from './meta';
export * as Type from './type';
export * as Type from './compiler/type';