@@ -11,21 +11,21 @@ const createDiagnosticFactory = <TArgs extends any[]>(message: string | ((...arg
1111 messageText : typeof message === "string" ? message : message ( ...args ) ,
1212 } ) ) ;
1313
14- export const forbiddenForIn = createDiagnosticFactory ( ` Iterating over arrays with 'for ... in' is not allowed.` ) ;
14+ export const forbiddenForIn = createDiagnosticFactory ( " Iterating over arrays with 'for ... in' is not allowed." ) ;
1515
1616export const unsupportedNoSelfFunctionConversion = createDiagnosticFactory ( ( name ?: string ) => {
1717 const nameReference = name ? ` '${ name } '` : "" ;
1818 return (
1919 `Unable to convert function with a 'this' parameter to function${ nameReference } with no 'this'. ` +
20- ` To fix, wrap in an arrow function, or declare with 'this: void'.`
20+ " To fix, wrap in an arrow function, or declare with 'this: void'."
2121 ) ;
2222} ) ;
2323
2424export const unsupportedSelfFunctionConversion = createDiagnosticFactory ( ( name ?: string ) => {
2525 const nameReference = name ? ` '${ name } '` : "" ;
2626 return (
2727 `Unable to convert function with no 'this' parameter to function${ nameReference } with 'this'. ` +
28- ` To fix, wrap in an arrow function, or declare with 'this: any'.`
28+ " To fix, wrap in an arrow function, or declare with 'this: any'."
2929 ) ;
3030} ) ;
3131
@@ -37,7 +37,7 @@ export const unsupportedOverloadAssignment = createDiagnosticFactory((name?: str
3737 ) ;
3838} ) ;
3939
40- export const decoratorInvalidContext = createDiagnosticFactory ( ` Decorator function cannot have 'this: void'.` ) ;
40+ export const decoratorInvalidContext = createDiagnosticFactory ( " Decorator function cannot have 'this: void'." ) ;
4141
4242export const annotationInvalidArgumentCount = createDiagnosticFactory (
4343 ( kind : AnnotationKind , got : number , expected : number ) => `'@${ kind } ' expects ${ expected } arguments, but got ${ got } .`
@@ -48,23 +48,23 @@ export const extensionCannotConstruct = createDiagnosticFactory(
4848) ;
4949
5050export const extensionCannotExtend = createDiagnosticFactory (
51- ` Cannot extend classes with '@extension' or '@metaExtension' annotation.`
51+ " Cannot extend classes with '@extension' or '@metaExtension' annotation."
5252) ;
5353
5454export const extensionCannotExport = createDiagnosticFactory (
55- ` Cannot export classes with '@extension' or '@metaExtension' annotation.`
55+ " Cannot export classes with '@extension' or '@metaExtension' annotation."
5656) ;
5757
5858export const extensionInvalidInstanceOf = createDiagnosticFactory (
59- ` Cannot use instanceof on classes with '@extension' or '@metaExtension' annotation.`
59+ " Cannot use instanceof on classes with '@extension' or '@metaExtension' annotation."
6060) ;
6161
6262export const extensionAndMetaExtensionConflict = createDiagnosticFactory (
63- ` Cannot use both '@extension' and '@metaExtension' annotations on the same class.`
63+ " Cannot use both '@extension' and '@metaExtension' annotations on the same class."
6464) ;
6565
6666export const metaExtensionMissingExtends = createDiagnosticFactory (
67- ` '@metaExtension' annotation requires the extension of the metatable class.`
67+ " '@metaExtension' annotation requires the extension of the metatable class."
6868) ;
6969
7070export const invalidForRangeCall = createDiagnosticFactory ( ( message : string ) => `Invalid @forRange call: ${ message } .` ) ;
0 commit comments