@@ -53,15 +53,9 @@ export const MissingClassName = (node: ts.Node) => new TranspileError(`Class dec
5353export const MissingForOfVariables = ( node : ts . Node ) =>
5454 new TranspileError ( "Transpiled ForOf variable declaration list contains no declarations." , node ) ;
5555
56- export const MissingFunctionName = ( declaration : ts . FunctionLikeDeclaration ) =>
57- new TranspileError ( "Unsupported function declaration without name." , declaration ) ;
58-
5956export const MissingMetaExtension = ( node : ts . Node ) =>
6057 new TranspileError ( `'@metaExtension' annotation requires the extension of the metatable class.` , node ) ;
6158
62- export const NonFlattenableDestructure = ( node : ts . Node ) =>
63- new TranspileError ( `This node cannot be destructured using a standard Lua assignment statement.` , node ) ;
64-
6559export const UndefinedFunctionDefinition = ( functionSymbolId : number ) =>
6660 new Error ( `Function definition for function symbol ${ functionSymbolId } is undefined.` ) ;
6761
@@ -72,11 +66,6 @@ export const UndefinedScope = () => new Error("Expected to pop a scope, but foun
7266
7367export const UndefinedTypeNode = ( node : ts . Node ) => new TranspileError ( "Failed to resolve required type node." , node ) ;
7468
75- export const UnknownSuperType = ( node : ts . Node ) =>
76- new TranspileError ( "Unable to resolve type of super expression." , node ) ;
77-
78- export const UnsupportedImportType = ( node : ts . Node ) => new TranspileError ( `Unsupported import type.` , node ) ;
79-
8069export const UnsupportedKind = ( description : string , kind : ts . SyntaxKind , node : ts . Node ) =>
8170 new TranspileError ( `Unsupported ${ description } kind: ${ ts . SyntaxKind [ kind ] } ` , node ) ;
8271
@@ -86,9 +75,6 @@ export const UnsupportedProperty = (parentName: string, property: string, node:
8675export const UnsupportedForTarget = ( functionality : string , version : LuaTarget , node : ts . Node ) =>
8776 new TranspileError ( `${ functionality } is/are not supported for target ${ getLuaTargetName ( version ) } .` , node ) ;
8877
89- export const UnsupportedFunctionWithoutBody = ( node : ts . FunctionLikeDeclaration ) =>
90- new TranspileError ( "Functions with undefined bodies are not supported." , node ) ;
91-
9278export const UnsupportedNoSelfFunctionConversion = ( node : ts . Node , name ?: string ) => {
9379 const nameReference = name ? ` '${ name } '` : "" ;
9480 return new TranspileError (
0 commit comments