aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/ajv/dist/compile/codegen/scope.d.ts
diff options
context:
space:
mode:
authorDanijel Andjelkovic <adanijel99@gmail.com>2022-03-01 21:54:41 +0100
committerDanijel Andjelkovic <adanijel99@gmail.com>2022-03-01 21:54:41 +0100
commit6c8128f9fd5a5d0be115806c35a21b3d683df8d6 (patch)
treef46c2f6b3b9b294ff32bd75c08ccdc9e7a8cc4ef /sandbox/testAppNevena/Front/node_modules/ajv/dist/compile/codegen/scope.d.ts
parent2400b84e95913665da6279114168148444b8f9ab (diff)
parent7d3640f824f46490b47bd95f1c5a16644f712068 (diff)
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into logo
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/ajv/dist/compile/codegen/scope.d.ts')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/dist/compile/codegen/scope.d.ts79
1 files changed, 79 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/dist/compile/codegen/scope.d.ts b/sandbox/testAppNevena/Front/node_modules/ajv/dist/compile/codegen/scope.d.ts
new file mode 100644
index 00000000..3c351bb6
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/dist/compile/codegen/scope.d.ts
@@ -0,0 +1,79 @@
+import { Code, Name } from "./code";
+interface NameGroup {
+ prefix: string;
+ index: number;
+}
+export interface NameValue {
+ ref: ValueReference;
+ key?: unknown;
+ code?: Code;
+}
+export declare type ValueReference = unknown;
+interface ScopeOptions {
+ prefixes?: Set<string>;
+ parent?: Scope;
+}
+interface ValueScopeOptions extends ScopeOptions {
+ scope: ScopeStore;
+ es5?: boolean;
+ lines?: boolean;
+}
+export declare type ScopeStore = Record<string, ValueReference[] | undefined>;
+declare type ScopeValues = {
+ [Prefix in string]?: Map<unknown, ValueScopeName>;
+};
+export declare type ScopeValueSets = {
+ [Prefix in string]?: Set<ValueScopeName>;
+};
+export declare enum UsedValueState {
+ Started = 0,
+ Completed = 1
+}
+export declare type UsedScopeValues = {
+ [Prefix in string]?: Map<ValueScopeName, UsedValueState | undefined>;
+};
+export declare const varKinds: {
+ const: Name;
+ let: Name;
+ var: Name;
+};
+export declare class Scope {
+ protected readonly _names: {
+ [Prefix in string]?: NameGroup;
+ };
+ protected readonly _prefixes?: Set<string>;
+ protected readonly _parent?: Scope;
+ constructor({ prefixes, parent }?: ScopeOptions);
+ toName(nameOrPrefix: Name | string): Name;
+ name(prefix: string): Name;
+ protected _newName(prefix: string): string;
+ private _nameGroup;
+}
+interface ScopePath {
+ property: string;
+ itemIndex: number;
+}
+export declare class ValueScopeName extends Name {
+ readonly prefix: string;
+ value?: NameValue;
+ scopePath?: Code;
+ constructor(prefix: string, nameStr: string);
+ setValue(value: NameValue, { property, itemIndex }: ScopePath): void;
+}
+interface VSOptions extends ValueScopeOptions {
+ _n: Code;
+}
+export declare class ValueScope extends Scope {
+ protected readonly _values: ScopeValues;
+ protected readonly _scope: ScopeStore;
+ readonly opts: VSOptions;
+ constructor(opts: ValueScopeOptions);
+ get(): ScopeStore;
+ name(prefix: string): ValueScopeName;
+ value(nameOrPrefix: ValueScopeName | string, value: NameValue): ValueScopeName;
+ getValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined;
+ scopeRefs(scopeName: Name, values?: ScopeValues | ScopeValueSets): Code;
+ scopeCode(values?: ScopeValues | ScopeValueSets, usedValues?: UsedScopeValues, getCode?: (n: ValueScopeName) => Code | undefined): Code;
+ private _reduceValues;
+}
+export {};