diff --git a/src/services/services.ts b/src/services/services.ts index cec97a4c906..4948238907f 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -2950,7 +2950,7 @@ namespace ts { /* @internal */ export function getNodeKind(node: Node): string { switch (node.kind) { case SyntaxKind.SourceFile: - return isExternalModule( node) ? ScriptElementKind.moduleElement : ScriptElementKind.scriptElement; + return isExternalModule(node) ? ScriptElementKind.moduleElement : ScriptElementKind.scriptElement; case SyntaxKind.ModuleDeclaration: return ScriptElementKind.moduleElement; case SyntaxKind.ClassDeclaration: @@ -2960,9 +2960,9 @@ namespace ts { case SyntaxKind.TypeAliasDeclaration: return ScriptElementKind.typeElement; case SyntaxKind.EnumDeclaration: return ScriptElementKind.enumElement; case SyntaxKind.VariableDeclaration: - return getKindOfVariableDeclaration( node); + return getKindOfVariableDeclaration(node); case SyntaxKind.BindingElement: - return getKindOfVariableDeclaration( getRootDeclaration(node)); + return getKindOfVariableDeclaration(getRootDeclaration(node)); case SyntaxKind.ArrowFunction: case SyntaxKind.FunctionDeclaration: case SyntaxKind.FunctionExpression: