Organize imports in checker.ts
This commit is contained in:
parent
685ff3cf2d
commit
487e6d4994
1 changed files with 3 additions and 5 deletions
|
@ -1,12 +1,10 @@
|
||||||
import {
|
import {
|
||||||
EnumDeclaration,
|
EnumDeclaration,
|
||||||
EnumDeclarationElement,
|
|
||||||
Expression,
|
Expression,
|
||||||
LetDeclaration,
|
LetDeclaration,
|
||||||
Pattern,
|
Pattern,
|
||||||
Scope,
|
Scope,
|
||||||
SourceFile,
|
SourceFile,
|
||||||
StructDeclaration,
|
|
||||||
Symkind,
|
Symkind,
|
||||||
Syntax,
|
Syntax,
|
||||||
SyntaxKind,
|
SyntaxKind,
|
||||||
|
@ -20,7 +18,7 @@ import {
|
||||||
FieldDoesNotExistDiagnostic,
|
FieldDoesNotExistDiagnostic,
|
||||||
FieldMissingDiagnostic,
|
FieldMissingDiagnostic,
|
||||||
UnificationFailedDiagnostic,
|
UnificationFailedDiagnostic,
|
||||||
KindMismatchDiagnostic
|
KindMismatchDiagnostic,
|
||||||
} from "./diagnostics";
|
} from "./diagnostics";
|
||||||
import { assert, isEmpty, MultiMap } from "./util";
|
import { assert, isEmpty, MultiMap } from "./util";
|
||||||
import { LabeledDirectedHashGraph, LabeledGraph, strongconnect } from "yagl"
|
import { LabeledDirectedHashGraph, LabeledGraph, strongconnect } from "yagl"
|
||||||
|
@ -892,7 +890,7 @@ export class Checker {
|
||||||
}
|
}
|
||||||
case SyntaxKind.AppTypeExpression:
|
case SyntaxKind.AppTypeExpression:
|
||||||
{
|
{
|
||||||
let result = this.inferKindFromTypeExpression(node.operator, env);;
|
let result = this.inferKindFromTypeExpression(node.operator, env);
|
||||||
for (const arg of node.args) {
|
for (const arg of node.args) {
|
||||||
result = this.applyKind(result, this.inferKindFromTypeExpression(arg, env), node);
|
result = this.applyKind(result, this.inferKindFromTypeExpression(arg, env), node);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue