diff --git a/src/compiler/types.ts b/src/compiler/types.ts index eb908d07ec0..658f263ec3d 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -586,9 +586,9 @@ namespace ts { * Several node kinds share function-like features such as a signature, * a name, and a body. These nodes should extend FunctionLikeDeclaration. * Examples: - * * FunctionDeclaration - * * MethodDeclaration - * * AccessorDeclaration + * - FunctionDeclaration + * - MethodDeclaration + * - AccessorDeclaration */ export interface FunctionLikeDeclaration extends SignatureDeclaration { _functionLikeDeclarationBrand: any; diff --git a/src/services/services.ts b/src/services/services.ts index ad158192cf6..4478caae338 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -6759,7 +6759,7 @@ namespace ts { function getIndentationAtPosition(fileName: string, position: number, editorOptions: EditorOptions) { let start = new Date().getTime(); let sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); - log("getIndentationAtPosition: getCurrentSourceFile: " + (new Date().getTime() - start)); + log("getIndentationAtPosition: getCurrentSourceFile: " + (new Date().getTime() - start)); start = new Date().getTime(); @@ -6799,12 +6799,12 @@ namespace ts { * Checks if position points to a valid position to add JSDoc comments, and if so, * returns the appropriate template. Otherwise returns an empty string. * Valid positions are - * * outside of comments, statements, and expressions, and - * * preceding a function declaration. + * - outside of comments, statements, and expressions, and + * - preceding a function declaration. * * Hosts should ideally check that: - * * The line is all whitespace up to 'position' before performing the insertion. - * * If the keystroke sequence "/\*\*" induced the call, we also check that the next + * - The line is all whitespace up to 'position' before performing the insertion. + * - If the keystroke sequence "/\*\*" induced the call, we also check that the next * non-whitespace character is '*', which (approximately) indicates whether we added * the second '*' to complete an existing (JSDoc) comment. * @param fileName The file in which to perform the check. @@ -6827,9 +6827,9 @@ namespace ts { } // TODO: add support for: - // * methods - // * constructors - // * class decls + // - methods + // - constructors + // - class decls let containingFunction = getAncestor(tokenAtPos, SyntaxKind.FunctionDeclaration); if (!containingFunction || containingFunction.getStart() < position) {