Skip to content

Commit 6a6b522

Browse files
committed
Apply code formatting
1 parent 6f002ef commit 6a6b522

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

src/services/suggestionDiagnostics.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -289,31 +289,31 @@ function getKeyFromNode(exp: FunctionLikeDeclaration) {
289289
return `${exp.pos.toString()}:${exp.end.toString()}`;
290290
}
291291

292-
function canBeConvertedToClass(node: Node, checker: TypeChecker): boolean {
293-
if (isFunctionExpression(node)) {
294-
// Generator functions cannot be converted to classes
295-
if (getFunctionFlags(node) & FunctionFlags.Generator) {
296-
return false;
297-
}
298-
299-
if (isVariableDeclaration(node.parent) && node.symbol.members?.size) {
300-
return true;
301-
}
302-
303-
const symbol = checker.getSymbolOfExpando(node, /*allowDeclaration*/ false);
304-
return !!(symbol && (symbol.exports?.size || symbol.members?.size));
305-
}
306-
307-
if (isFunctionDeclaration(node)) {
308-
// Generator functions cannot be converted to classes
309-
if (getFunctionFlags(node) & FunctionFlags.Generator) {
310-
return false;
311-
}
312-
313-
return !!node.symbol.members?.size;
314-
}
315-
316-
return false;
292+
function canBeConvertedToClass(node: Node, checker: TypeChecker): boolean {
293+
if (isFunctionExpression(node)) {
294+
// Generator functions cannot be converted to classes
295+
if (getFunctionFlags(node) & FunctionFlags.Generator) {
296+
return false;
297+
}
298+
299+
if (isVariableDeclaration(node.parent) && node.symbol.members?.size) {
300+
return true;
301+
}
302+
303+
const symbol = checker.getSymbolOfExpando(node, /*allowDeclaration*/ false);
304+
return !!(symbol && (symbol.exports?.size || symbol.members?.size));
305+
}
306+
307+
if (isFunctionDeclaration(node)) {
308+
// Generator functions cannot be converted to classes
309+
if (getFunctionFlags(node) & FunctionFlags.Generator) {
310+
return false;
311+
}
312+
313+
return !!node.symbol.members?.size;
314+
}
315+
316+
return false;
317317
}
318318

319319
/** @internal */

0 commit comments

Comments
 (0)