Move type/gentype back into compiler where it belongs
This commit is contained in:
parent
46d76dfca7
commit
4914c8cd68
|
@ -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";
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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;
|
|
@ -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[] {
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue