Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/typir/src/kinds/class/class-kind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* terms of the MIT License, which is available in the project root.
******************************************************************************/

import { assertUnreachable } from 'langium';
import { Type, TypeDetails } from '../../graph/type-node.js';
import { TypeInitializer } from '../../initialization/type-initializer.js';
import { TypeReference } from '../../initialization/type-reference.js';
Expand All @@ -14,7 +13,7 @@ import { ValidationRule } from '../../services/validation.js';
import { TypirServices } from '../../typir.js';
import { InferCurrentTypeRule, RegistrationOptions } from '../../utils/utils-definitions.js';
import { TypeCheckStrategy } from '../../utils/utils-type-comparison.js';
import { assertTrue, assertTypirType, toArray } from '../../utils/utils.js';
import { assertTrue, assertTypirType, assertUnreachable, toArray } from '../../utils/utils.js';
import { FunctionType } from '../function/function-type.js';
import { Kind, isKind } from '../kind.js';
import { ClassTypeInitializer } from './class-initializer.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/typir/src/services/equality.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
* terms of the MIT License, which is available in the project root.
******************************************************************************/

import { assertUnreachable } from 'langium';
import { Type } from '../graph/type-node.js';
import { TypirServices } from '../typir.js';
import { isSpecificTypirProblem, TypirProblem } from '../utils/utils-definitions.js';
import { EdgeCachingInformation, TypeRelationshipCaching } from './caching.js';
import { TypeEdge, isTypeEdge } from '../graph/type-edge.js';
import { assertUnreachable } from '../utils/utils.js';

export interface TypeEqualityProblem extends TypirProblem {
$problem: 'TypeEqualityProblem';
Expand Down
3 changes: 1 addition & 2 deletions packages/typir/src/services/inference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
* terms of the MIT License, which is available in the project root.
******************************************************************************/

import { assertUnreachable } from 'langium';
import { isType, Type } from '../graph/type-node.js';
import { TypirServices } from '../typir.js';
import { RuleCollectorListener, RuleOptions, RuleRegistry } from '../utils/rule-registration.js';
import { isSpecificTypirProblem, TypirProblem } from '../utils/utils-definitions.js';
import { removeFromArray, toArray } from '../utils/utils.js';
import { assertUnreachable, removeFromArray, toArray } from '../utils/utils.js';
import { LanguageNodeInferenceCaching } from './caching.js';

export interface InferenceProblem<LanguageType> extends TypirProblem {
Expand Down
3 changes: 1 addition & 2 deletions packages/typir/src/utils/utils-type-comparison.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
* terms of the MIT License, which is available in the project root.
******************************************************************************/

import { assertUnreachable } from 'langium';
import { isType, Type } from '../graph/type-node.js';
import { Kind } from '../kinds/kind.js';
import { InferenceProblem } from '../services/inference.js';
import { TypirServices } from '../typir.js';
import { assertTrue } from '../utils/utils.js';
import { assertTrue, assertUnreachable } from '../utils/utils.js';
import { isNameTypePair, isSpecificTypirProblem, NameTypePair, TypirProblem } from './utils-definitions.js';

export type TypeCheckStrategy =
Expand Down