Skip to content

Commit

Permalink
Move value type utils to wrapper/utils directory
Browse files Browse the repository at this point in the history
  • Loading branch information
georg-schwarz committed Apr 18, 2024
1 parent 436e692 commit 9ae2670
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import {
getValuetypeHierarchyStack,
pickCommonAtomicValueType,
pickCommonPrimitiveValuetype,
} from '../wrappers/value-type/util';
} from '../wrappers/util/value-type-util';

import { isEveryValueDefined } from './typeguards';

Expand Down
13 changes: 9 additions & 4 deletions libs/language-server/src/lib/ast/wrappers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
//
// SPDX-License-Identifier: AGPL-3.0-only

export * from './wrapper-factory-provider';
export * from './util';

/*
* Note: Only export types if possible to enforce usage of WrapperFactory outside this directory.
* This allows us to avoid dependency cycles between the language server and interpreter.
Expand All @@ -20,9 +23,11 @@ export { type PipelineWrapper } from './pipeline-wrapper';
export { type BlockTypeWrapper } from './typed-object/block-type-wrapper';
export { type CompositeBlockTypeWrapper } from './typed-object/composite-block-type-wrapper';
export { type ConstraintTypeWrapper } from './typed-object/constrainttype-wrapper';
export * from './typed-object/typed-object-wrapper';
export {
ExampleDoc,
PropertyDocs,
PropertySpecification,
type TypedObjectWrapper,
} from './typed-object/typed-object-wrapper';

export * from './value-type'; // type export handled one level deeper

export * from './util';
export * from './wrapper-factory-provider';
1 change: 1 addition & 0 deletions libs/language-server/src/lib/ast/wrappers/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
export * from './column-id-util';
export * from './cell-index';
export * from './cell-range-util';
export * from './value-type-util';
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@

import { strict as assert } from 'assert';

import { type AtomicValueType, isAtomicValueType } from './atomic-value-type';
import { type PrimitiveValueType, isPrimitiveValueType } from './primitive';
import { type ValueType } from './value-type';
import {
type AtomicValueType,
isAtomicValueType,
} from '../value-type/atomic-value-type';
import {
type PrimitiveValueType,
isPrimitiveValueType,
} from '../value-type/primitive';
import { type ValueType } from '../value-type/value-type';

type ValuetypeHierarchyStack = [PrimitiveValueType, ...AtomicValueType[]];

Expand Down
2 changes: 0 additions & 2 deletions libs/language-server/src/lib/ast/wrappers/value-type/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
//
// SPDX-License-Identifier: AGPL-3.0-only

export * from './util';

/*
* Note: Only export types if possible to enforce usage of WrapperFactory outside this directory.
* This allows us to avoid dependency cycles between the language server and interpreter.
Expand Down

0 comments on commit 9ae2670

Please sign in to comment.