Skip to content

Commit 7d70f78

Browse files
committed
inline v3, block lambdas
1 parent 5c82357 commit 7d70f78

6 files changed

Lines changed: 328 additions & 77 deletions

File tree

src/transformation/context/context.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export interface InlineFunctionInfo {
1717
parameters: NodeArray<ParameterDeclaration>;
1818
body: ts.ConciseBody;
1919
sourceFile: ts.SourceFile;
20-
isProcessing: boolean;
2120
}
2221

2322
// Shared registry of inline functions across all files in a program

src/transformation/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ function collectInlineFunctionsFromSourceFile(program: ts.Program, sourceFile: t
5858
parameters: node.parameters,
5959
body: node.body,
6060
sourceFile,
61-
isProcessing: false,
6261
});
6362
}
6463
}
@@ -81,7 +80,6 @@ function collectInlineFunctionsFromSourceFile(program: ts.Program, sourceFile: t
8180
parameters: declaration.initializer.parameters,
8281
body: declaration.initializer.body,
8382
sourceFile,
84-
isProcessing: false,
8583
});
8684
}
8785
}

src/transformation/utils/diagnostics.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ export const inlineNestedInlineCall = createErrorDiagnosticFactory(
183183
"Inline functions cannot call other inline functions."
184184
);
185185

186-
export const inlineComplexBody = createErrorDiagnosticFactory(
187-
"Inline functions must have a simple return expression body (no statements, loops, or complex control flow)."
188-
);
189-
190186
export const inlineMethodNotSupported = createErrorDiagnosticFactory(
191187
"Inline annotation is not supported on class methods and accessors."
192188
);
189+
190+
export const internalUnknownError = createErrorDiagnosticFactory(
191+
"Internal error something went wrong."
192+
);

0 commit comments

Comments
 (0)