Skip to content

Commit

Permalink
Somehow missed these...
Browse files Browse the repository at this point in the history
  • Loading branch information
EliotVU committed Jul 23, 2024
1 parent 776fd61 commit 7a590f6
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions server/src/UC/diagnostics/documentAnalyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ export class DocumentAnalyzer extends DefaultSymbolWalker<void> {
this.diagnostics.add({
range: stm.expression.range,
message: {
text: `Type ${typeToDisplayString(type)}' cannot be iterated. Expected an iterator function.`,
text: `Type ${typeToDisplayString(type)} cannot be iterated. Expected an iterator function.`,
severity: DiagnosticSeverity.Error
}
});
Expand Down Expand Up @@ -1838,17 +1838,3 @@ export class DocumentAnalyzer extends DefaultSymbolWalker<void> {
this.diagnostics.add({ range, message: { text, severity: DiagnosticSeverity.Error } });
}
}

function createExpectedTypeMessage(destType: UCTypeKind, inputType: UCTypeKind): IDiagnosticMessage {
return {
text: `Expected type '${typeKindToDisplayString(destType)}', but got type '${typeKindToDisplayString(inputType)}'`,
severity: DiagnosticSeverity.Error
};
}

function createTypeCannotBeAssignedToMessage(destType: UCTypeKind, inputType: UCTypeKind): IDiagnosticMessage {
return {
text: `Type '${typeKindToDisplayString(inputType)}' is not assignable to type '${typeKindToDisplayString(destType)}'`,
severity: DiagnosticSeverity.Error
};
}

0 comments on commit 7a590f6

Please sign in to comment.