@prisma-next/psl-parser 0.14.0-dev.6 → 0.14.0-dev.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{declarations-D9h_ihD3.mjs → declarations-DR6To8_k.mjs} +295 -55
- package/dist/declarations-DR6To8_k.mjs.map +1 -0
- package/dist/format.d.mts +1 -1
- package/dist/format.mjs +2 -2
- package/dist/index.d.mts +95 -112
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +374 -60
- package/dist/index.mjs.map +1 -1
- package/dist/interpret.d.mts +29 -0
- package/dist/interpret.d.mts.map +1 -0
- package/dist/interpret.mjs +9 -0
- package/dist/interpret.mjs.map +1 -0
- package/dist/{parse-DhEV6av6.mjs → parse-3-vr14ej.mjs} +26 -5
- package/dist/parse-3-vr14ej.mjs.map +1 -0
- package/dist/{parse-BjZ1LPe6.d.mts → parse-BazJr7Ye.d.mts} +128 -51
- package/dist/parse-BazJr7Ye.d.mts.map +1 -0
- package/dist/symbol-table-C-AH04Ug.d.mts +127 -0
- package/dist/symbol-table-C-AH04Ug.d.mts.map +1 -0
- package/dist/syntax.d.mts +20 -2
- package/dist/syntax.d.mts.map +1 -1
- package/dist/syntax.mjs +43 -3
- package/dist/syntax.mjs.map +1 -0
- package/package.json +7 -5
- package/src/attribute-spec/combinators/bool.ts +19 -0
- package/src/attribute-spec/combinators/diagnostic.ts +15 -0
- package/src/attribute-spec/combinators/entity-ref.ts +24 -0
- package/src/attribute-spec/combinators/field-ref.ts +36 -0
- package/src/attribute-spec/combinators/identifier.ts +16 -0
- package/src/attribute-spec/combinators/int.ts +19 -0
- package/src/attribute-spec/combinators/list.ts +43 -0
- package/src/attribute-spec/combinators/one-of.ts +29 -0
- package/src/attribute-spec/combinators/record.ts +43 -0
- package/src/attribute-spec/combinators/str.ts +19 -0
- package/src/attribute-spec/field-attribute.ts +27 -0
- package/src/attribute-spec/interpret.ts +154 -0
- package/src/attribute-spec/model-attribute.ts +27 -0
- package/src/attribute-spec/optional.ts +8 -0
- package/src/attribute-spec/types.ts +72 -0
- package/src/block-reconstruction.ts +1 -0
- package/src/exports/index.ts +30 -0
- package/src/exports/interpret.ts +2 -0
- package/src/exports/syntax.ts +25 -5
- package/src/interpret.ts +40 -0
- package/src/parse.ts +23 -5
- package/src/resolve.ts +4 -1
- package/src/source-file.ts +25 -0
- package/src/syntax/ast/attributes.ts +5 -6
- package/src/syntax/ast/declarations.ts +51 -26
- package/src/syntax/ast/expressions.ts +12 -13
- package/src/syntax/ast/identifier.ts +2 -3
- package/src/syntax/ast/qualified-name.ts +28 -19
- package/src/syntax/ast/type-annotation.ts +4 -5
- package/src/syntax/ast-helpers.ts +27 -3
- package/src/syntax/navigation.ts +55 -0
- package/src/syntax/red.ts +317 -42
- package/dist/declarations-D9h_ihD3.mjs.map +0 -1
- package/dist/parse-BjZ1LPe6.d.mts.map +0 -1
- package/dist/parse-DhEV6av6.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,131 +1,114 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { P as AstNode, T as ExpressionAst, b as FieldAttributeAst, et as SourceFile, x as ModelAttributeAst } from "./parse-BazJr7Ye.mjs";
|
|
2
|
+
import { S as readResolvedConstructorCall, _ as keywordPslSpan, a as ModelSymbol, b as readResolvedAttribute, c as ScalarSymbol, d as TopLevelScope, f as TypeAliasSymbol, g as ResolvedTypeConstructorCall, h as ResolvedAttributeArg, i as FieldSymbol, l as SymbolTable, m as ResolvedAttribute, n as BuildSymbolTableOptions, o as NamespaceSymbol, p as buildSymbolTable, r as CompositeTypeSymbol, s as ResolvedNamedTypeBinding, t as BlockSymbol, u as SymbolTableResult, v as nodePslSpan, x as readResolvedAttributes, y as rangeToPslSpan } from "./symbol-table-C-AH04Ug.mjs";
|
|
3
|
+
import { PslAttribute, PslAttribute as PslAttribute$1, PslAttributeArgument, PslAttributeNamedArgument, PslAttributePositionalArgument, PslAttributeTarget, PslCompositeType, PslDefaultFunctionValue, PslDefaultLiteralValue, PslDefaultValue, PslDiagnostic, PslDiagnostic as PslDiagnostic$1, PslDiagnosticCode, PslDiagnosticCode as PslDiagnosticCode$1, PslDocumentAst, PslExtensionBlock, PslExtensionBlockAttribute, PslExtensionBlockAttributeArg, PslExtensionBlockParamBare, PslExtensionBlockParamList, PslExtensionBlockParamOption, PslExtensionBlockParamRef, PslExtensionBlockParamScalarValue, PslExtensionBlockParamValue, PslField, PslFieldAttribute, PslModel, PslModelAttribute, PslNamedTypeDeclaration, PslNamespace, PslPosition, PslSpan, PslTypeConstructorCall, PslTypesBlock, flatPslModels, namespacePslExtensionBlocks } from "@prisma-next/framework-components/psl-ast";
|
|
4
|
+
import { Result } from "@prisma-next/utils/result";
|
|
3
5
|
import { AuthoringPslBlockDescriptor, AuthoringPslBlockDescriptorNamespace } from "@prisma-next/framework-components/authoring";
|
|
6
|
+
import { Simplify, UnionToIntersection } from "@prisma-next/utils/types";
|
|
4
7
|
import { CodecLookup } from "@prisma-next/framework-components/codec";
|
|
5
8
|
|
|
6
9
|
//#region src/attribute-helpers.d.ts
|
|
7
10
|
declare function getPositionalArgument(attribute: PslAttribute$1, index?: number): string | undefined;
|
|
8
11
|
declare function parseQuotedStringLiteral(value: string): string | undefined;
|
|
9
12
|
//#endregion
|
|
10
|
-
//#region src/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
13
|
+
//#region src/attribute-spec/types.d.ts
|
|
14
|
+
type AttributeLevel = 'field' | 'model' | 'block';
|
|
15
|
+
interface ArgType<T> {
|
|
16
|
+
readonly kind: string;
|
|
17
|
+
readonly label: string;
|
|
18
|
+
readonly _out?: T;
|
|
19
|
+
parse(arg: ExpressionAst, ctx: InterpretCtx): Result<T, readonly PslDiagnostic$1[]>;
|
|
16
20
|
}
|
|
17
|
-
interface
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
readonly
|
|
24
|
-
readonly args: readonly ResolvedAttributeArg[];
|
|
25
|
-
readonly span: PslSpan$1;
|
|
26
|
-
}
|
|
27
|
-
declare function readResolvedAttribute(attribute: FieldAttributeAst | ModelAttributeAst, sourceFile: SourceFile): ResolvedAttribute;
|
|
28
|
-
declare function readResolvedAttributes(attributes: Iterable<FieldAttributeAst | ModelAttributeAst>, sourceFile: SourceFile): readonly ResolvedAttribute[];
|
|
29
|
-
declare function readResolvedConstructorCall(annotation: TypeAnnotationAst | undefined, sourceFile: SourceFile): ResolvedTypeConstructorCall | undefined;
|
|
30
|
-
declare function nodePslSpan(node: SyntaxNode, sourceFile: SourceFile): PslSpan$1;
|
|
31
|
-
/** Unsupported-top-level-block diagnostics are anchored to the keyword token. */
|
|
32
|
-
declare function keywordPslSpan(node: SyntaxNode, keyword: string, sourceFile: SourceFile): PslSpan$1;
|
|
33
|
-
declare function rangeToPslSpan(range: Range, sourceFile: SourceFile): PslSpan$1;
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region src/symbol-table.d.ts
|
|
36
|
-
interface SymbolTable {
|
|
37
|
-
readonly topLevel: TopLevelScope;
|
|
38
|
-
}
|
|
39
|
-
interface TopLevelScope {
|
|
40
|
-
readonly namespaces: Record<string, NamespaceSymbol>;
|
|
41
|
-
readonly scalars: Record<string, ScalarSymbol>;
|
|
42
|
-
readonly typeAliases: Record<string, TypeAliasSymbol>;
|
|
43
|
-
readonly blocks: Record<string, BlockSymbol>;
|
|
44
|
-
readonly models: Record<string, ModelSymbol>;
|
|
45
|
-
readonly compositeTypes: Record<string, CompositeTypeSymbol>;
|
|
46
|
-
}
|
|
47
|
-
interface NamespaceSymbol {
|
|
48
|
-
readonly kind: 'namespace';
|
|
49
|
-
readonly name: string;
|
|
50
|
-
readonly node: NamespaceDeclarationAst;
|
|
51
|
-
readonly span: PslSpan$1;
|
|
52
|
-
readonly models: Record<string, ModelSymbol>;
|
|
53
|
-
readonly compositeTypes: Record<string, CompositeTypeSymbol>;
|
|
54
|
-
readonly blocks: Record<string, BlockSymbol>;
|
|
55
|
-
}
|
|
56
|
-
interface ModelSymbol {
|
|
57
|
-
readonly kind: 'model';
|
|
58
|
-
readonly name: string;
|
|
59
|
-
readonly node: ModelDeclarationAst;
|
|
60
|
-
readonly span: PslSpan$1;
|
|
61
|
-
readonly fields: Record<string, FieldSymbol>;
|
|
62
|
-
readonly attributes: readonly ResolvedAttribute[];
|
|
21
|
+
interface InterpretCtx {
|
|
22
|
+
readonly level: AttributeLevel;
|
|
23
|
+
readonly sourceId: string;
|
|
24
|
+
readonly sourceFile: SourceFile;
|
|
25
|
+
readonly selfModel: ModelSymbol;
|
|
26
|
+
resolveReferencedModel(): ModelSymbol | undefined;
|
|
27
|
+
readonly field?: FieldSymbol;
|
|
63
28
|
}
|
|
64
|
-
interface
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly span: PslSpan$1;
|
|
69
|
-
readonly fields: Record<string, FieldSymbol>;
|
|
70
|
-
readonly attributes: readonly ResolvedAttribute[];
|
|
29
|
+
interface OptionalArgType<T> extends ArgType<T> {
|
|
30
|
+
readonly optional: true;
|
|
31
|
+
readonly hasDefault: boolean;
|
|
32
|
+
readonly defaultValue?: T;
|
|
71
33
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
76
|
-
readonly node: GenericBlockDeclarationAst;
|
|
77
|
-
readonly span: PslSpan$1;
|
|
78
|
-
/** Resolved once so consumers do not independently classify block parameters. */
|
|
79
|
-
readonly block: PslExtensionBlock$1;
|
|
34
|
+
type Param<T> = ArgType<T>;
|
|
35
|
+
interface PositionalParam<T = unknown> {
|
|
36
|
+
readonly key: string;
|
|
37
|
+
readonly type: Param<T>;
|
|
80
38
|
}
|
|
81
|
-
interface
|
|
82
|
-
readonly
|
|
83
|
-
readonly typeConstructor?: ResolvedTypeConstructorCall;
|
|
84
|
-
readonly isConstructor: boolean;
|
|
85
|
-
readonly attributes: readonly ResolvedAttribute[];
|
|
86
|
-
}
|
|
87
|
-
interface ScalarSymbol extends ResolvedNamedTypeBinding {
|
|
88
|
-
readonly kind: 'scalar';
|
|
39
|
+
interface AttributeSpec<Out> {
|
|
40
|
+
readonly level: AttributeLevel;
|
|
89
41
|
readonly name: string;
|
|
90
|
-
readonly
|
|
91
|
-
readonly
|
|
42
|
+
readonly positional: readonly PositionalParam[];
|
|
43
|
+
readonly named: Readonly<Record<string, Param<unknown>>>;
|
|
44
|
+
readonly refine?: (parsed: Out, ctx: InterpretCtx) => readonly PslDiagnostic$1[];
|
|
92
45
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
46
|
+
type OutOf<P> = P extends ArgType<infer T> ? T : never;
|
|
47
|
+
type NamedOut<N extends Record<string, Param<unknown>>> = Simplify<{ [K in keyof N as N[K] extends OptionalArgType<unknown> ? never : K]: OutOf<N[K]> } & { [K in keyof N as N[K] extends OptionalArgType<unknown> ? K : never]?: OutOf<N[K]> }>;
|
|
48
|
+
type PosEntryObject<E extends PositionalParam> = E['type'] extends OptionalArgType<unknown> ? { [K in E['key']]?: OutOf<E['type']> } : { [K in E['key']]: OutOf<E['type']> };
|
|
49
|
+
type PosOut<Pos extends readonly PositionalParam[]> = Simplify<UnionToIntersection<{ [I in keyof Pos]: PosEntryObject<Pos[I]> }[number]>>;
|
|
50
|
+
type AttributeOut<Pos extends readonly PositionalParam[], Named extends Record<string, Param<unknown>>> = Simplify<PosOut<Pos> & NamedOut<Named>>;
|
|
51
|
+
type InferAttr<S> = S extends AttributeSpec<infer Out> ? Out : never;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/attribute-spec/combinators/bool.d.ts
|
|
54
|
+
declare function bool(): ArgType<boolean>;
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/attribute-spec/combinators/diagnostic.d.ts
|
|
57
|
+
declare function leafDiagnostic(ctx: InterpretCtx, node: AstNode, message: string): PslDiagnostic$1;
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/attribute-spec/combinators/entity-ref.d.ts
|
|
60
|
+
declare function entityRef(): ArgType<string>;
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/attribute-spec/combinators/field-ref.d.ts
|
|
63
|
+
type FieldRefScope = 'self' | 'referenced';
|
|
64
|
+
interface FieldRefArgType extends ArgType<string> {
|
|
65
|
+
readonly scope: FieldRefScope;
|
|
98
66
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
readonly
|
|
110
|
-
readonly
|
|
111
|
-
/** Prevents cascading unsupported-type diagnostics after invalid qualification. */
|
|
112
|
-
readonly malformedType?: boolean;
|
|
67
|
+
declare function fieldRef(scope: FieldRefScope): FieldRefArgType;
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/attribute-spec/combinators/identifier.d.ts
|
|
70
|
+
declare function identifier<const N extends string>(name: N): ArgType<N>;
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/attribute-spec/combinators/int.d.ts
|
|
73
|
+
declare function int(): ArgType<number>;
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/attribute-spec/combinators/list.d.ts
|
|
76
|
+
interface ListOptions {
|
|
77
|
+
readonly nonEmpty?: boolean;
|
|
78
|
+
readonly unique?: boolean;
|
|
113
79
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
80
|
+
declare function list<T>(of: ArgType<T>, opts?: ListOptions): ArgType<T[]>;
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/attribute-spec/combinators/one-of.d.ts
|
|
83
|
+
declare function oneOf<Alts extends readonly [ArgType<unknown>, ...ArgType<unknown>[]]>(...alts: Alts): ArgType<OutOf<Alts[number]>>;
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/attribute-spec/combinators/record.d.ts
|
|
86
|
+
declare function record<T>(of: ArgType<T>): ArgType<Record<string, T>>;
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/attribute-spec/combinators/str.d.ts
|
|
89
|
+
declare function str(): ArgType<string>;
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/attribute-spec/field-attribute.d.ts
|
|
92
|
+
interface FieldAttributeConfig<Pos extends readonly PositionalParam[], Named extends Record<string, Param<unknown>>> {
|
|
93
|
+
readonly positional?: Pos;
|
|
94
|
+
readonly named?: Named;
|
|
95
|
+
readonly refine?: (parsed: AttributeOut<Pos, Named>, ctx: InterpretCtx) => readonly PslDiagnostic$1[];
|
|
119
96
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
97
|
+
declare function fieldAttribute<const Pos extends readonly PositionalParam[] = readonly [], const Named extends Record<string, Param<unknown>> = Record<never, never>>(name: string, config: FieldAttributeConfig<Pos, Named>): AttributeSpec<AttributeOut<Pos, Named>>;
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/attribute-spec/interpret.d.ts
|
|
100
|
+
declare function interpretAttribute<Out>(attrNode: FieldAttributeAst | ModelAttributeAst, spec: AttributeSpec<Out>, ctx: InterpretCtx): Result<Out, readonly PslDiagnostic$1[]>;
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/attribute-spec/model-attribute.d.ts
|
|
103
|
+
interface ModelAttributeConfig<Pos extends readonly PositionalParam[], Named extends Record<string, Param<unknown>>> {
|
|
104
|
+
readonly positional?: Pos;
|
|
105
|
+
readonly named?: Named;
|
|
106
|
+
readonly refine?: (parsed: AttributeOut<Pos, Named>, ctx: InterpretCtx) => readonly PslDiagnostic$1[];
|
|
123
107
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
declare function buildSymbolTable(options: BuildSymbolTableOptions): SymbolTableResult;
|
|
108
|
+
declare function modelAttribute<const Pos extends readonly PositionalParam[] = readonly [], const Named extends Record<string, Param<unknown>> = Record<never, never>>(name: string, config: ModelAttributeConfig<Pos, Named>): AttributeSpec<AttributeOut<Pos, Named>>;
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/attribute-spec/optional.d.ts
|
|
111
|
+
declare function optional<T>(type: ArgType<T>, ...rest: [defaultValue: T] | []): OptionalArgType<T>;
|
|
129
112
|
//#endregion
|
|
130
113
|
//#region src/extension-block.d.ts
|
|
131
114
|
declare function findBlockDescriptor(descriptors: AuthoringPslBlockDescriptorNamespace | undefined, keyword: string): AuthoringPslBlockDescriptor | undefined;
|
|
@@ -138,5 +121,5 @@ declare function validateExtensionBlockFromSymbol(input: {
|
|
|
138
121
|
readonly codecLookup: CodecLookup;
|
|
139
122
|
}): readonly PslDiagnostic$1[];
|
|
140
123
|
//#endregion
|
|
141
|
-
export { type BlockSymbol, type BuildSymbolTableOptions, type CompositeTypeSymbol, type FieldSymbol, type ModelSymbol, type NamespaceSymbol, type PslAttribute, type PslAttributeArgument, type PslAttributeNamedArgument, type PslAttributePositionalArgument, type PslAttributeTarget, type PslCompositeType, type PslDefaultFunctionValue, type PslDefaultLiteralValue, type PslDefaultValue, type PslDiagnostic, type PslDiagnosticCode, type PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParamBare, type PslExtensionBlockParamList, type PslExtensionBlockParamOption, type PslExtensionBlockParamRef, type PslExtensionBlockParamScalarValue, type PslExtensionBlockParamValue, type PslField, type PslFieldAttribute, type PslModel, type PslModelAttribute, type PslNamedTypeDeclaration, type PslNamespace, type PslPosition, type PslSpan, type PslTypeConstructorCall, type PslTypesBlock, type ResolvedAttribute, type ResolvedAttributeArg, type ResolvedNamedTypeBinding, type ResolvedTypeConstructorCall, type ScalarSymbol, type SymbolTable, type SymbolTableResult, type TopLevelScope, type TypeAliasSymbol, buildSymbolTable, findBlockDescriptor, flatPslModels, getPositionalArgument, keywordPslSpan, namespacePslExtensionBlocks, nodePslSpan, parseQuotedStringLiteral, rangeToPslSpan, readResolvedAttribute, readResolvedAttributes, readResolvedConstructorCall, validateExtensionBlockFromSymbol };
|
|
124
|
+
export { type ArgType, type AttributeLevel, type AttributeOut, type AttributeSpec, type BlockSymbol, type BuildSymbolTableOptions, type CompositeTypeSymbol, type FieldRefArgType, type FieldRefScope, type FieldSymbol, type InferAttr, type InterpretCtx, type ListOptions, type ModelSymbol, type NamedOut, type NamespaceSymbol, type OptionalArgType, type OutOf, type Param, type PosOut, type PositionalParam, type PslAttribute, type PslAttributeArgument, type PslAttributeNamedArgument, type PslAttributePositionalArgument, type PslAttributeTarget, type PslCompositeType, type PslDefaultFunctionValue, type PslDefaultLiteralValue, type PslDefaultValue, type PslDiagnostic, type PslDiagnosticCode, type PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParamBare, type PslExtensionBlockParamList, type PslExtensionBlockParamOption, type PslExtensionBlockParamRef, type PslExtensionBlockParamScalarValue, type PslExtensionBlockParamValue, type PslField, type PslFieldAttribute, type PslModel, type PslModelAttribute, type PslNamedTypeDeclaration, type PslNamespace, type PslPosition, type PslSpan, type PslTypeConstructorCall, type PslTypesBlock, type ResolvedAttribute, type ResolvedAttributeArg, type ResolvedNamedTypeBinding, type ResolvedTypeConstructorCall, type ScalarSymbol, type SymbolTable, type SymbolTableResult, type TopLevelScope, type TypeAliasSymbol, bool, buildSymbolTable, entityRef, fieldAttribute, fieldRef, findBlockDescriptor, flatPslModels, getPositionalArgument, identifier, int, interpretAttribute, keywordPslSpan, leafDiagnostic, list, modelAttribute, namespacePslExtensionBlocks, nodePslSpan, oneOf, optional, parseQuotedStringLiteral, rangeToPslSpan, readResolvedAttribute, readResolvedAttributes, readResolvedConstructorCall, record, str, validateExtensionBlockFromSymbol };
|
|
142
125
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/attribute-helpers.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/attribute-helpers.ts","../src/attribute-spec/types.ts","../src/attribute-spec/combinators/bool.ts","../src/attribute-spec/combinators/diagnostic.ts","../src/attribute-spec/combinators/entity-ref.ts","../src/attribute-spec/combinators/field-ref.ts","../src/attribute-spec/combinators/identifier.ts","../src/attribute-spec/combinators/int.ts","../src/attribute-spec/combinators/list.ts","../src/attribute-spec/combinators/one-of.ts","../src/attribute-spec/combinators/record.ts","../src/attribute-spec/combinators/str.ts","../src/attribute-spec/field-attribute.ts","../src/attribute-spec/interpret.ts","../src/attribute-spec/model-attribute.ts","../src/attribute-spec/optional.ts","../src/extension-block.ts"],"mappings":";;;;;;;;;iBAEgB,qBAAA,CAAsB,SAAA,EAAW,cAAY,EAAE,KAAA;AAAA,iBAK/C,wBAAA,CAAyB,KAAa;;;KCA1C,cAAA;AAAA,UAEK,OAAA;EAAA,SACN,IAAA;EAAA,SACA,KAAA;EAAA,SAEA,IAAA,GAAO,CAAA;EAChB,KAAA,CAAM,GAAA,EAAK,aAAA,EAAe,GAAA,EAAK,YAAA,GAAe,MAAA,CAAO,CAAA,WAAY,eAAA;AAAA;AAAA,UAGlD,YAAA;EAAA,SACN,KAAA,EAAO,cAAA;EAAA,SACP,QAAA;EAAA,SACA,UAAA,EAAY,UAAA;EAAA,SACZ,SAAA,EAAW,WAAA;EACpB,sBAAA,IAA0B,WAAA;EAAA,SACjB,KAAA,GAAQ,WAAA;AAAA;AAAA,UAGF,eAAA,YAA2B,OAAA,CAAQ,CAAA;EAAA,SAEzC,QAAA;EAAA,SACA,UAAA;EAAA,SACA,YAAA,GAAe,CAAA;AAAA;AAAA,KAGd,KAAA,MAAW,OAAO,CAAC,CAAA;AAAA,UAEd,eAAA;EAAA,SACN,GAAA;EAAA,SACA,IAAA,EAAM,KA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