From 7bff919782db7c49e5dda31e31975bde3fd5683b Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Fri, 15 May 2015 15:44:21 +0100 Subject: [PATCH] chore(doc-gen): add TypeScript parsing --- docs/dgeni-package/mocks/testSrc.ts | 2 +- docs/dgeni-package/services/tsParser/getContent.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/dgeni-package/mocks/testSrc.ts b/docs/dgeni-package/mocks/testSrc.ts index 159985a9e6..58aea78d9f 100644 --- a/docs/dgeni-package/mocks/testSrc.ts +++ b/docs/dgeni-package/mocks/testSrc.ts @@ -35,4 +35,4 @@ export class MyClass { /** * An exported function */ -export var myFn = (val:number) => { return val*2; } \ No newline at end of file +export var myFn = (val:number) => return val*2; \ No newline at end of file diff --git a/docs/dgeni-package/services/tsParser/getContent.js b/docs/dgeni-package/services/tsParser/getContent.js index 029624c1c0..c7cbb36fc2 100644 --- a/docs/dgeni-package/services/tsParser/getContent.js +++ b/docs/dgeni-package/services/tsParser/getContent.js @@ -34,7 +34,7 @@ module.exports = function getContent() { content += sourceFile.text .substring(commentRange.pos+ '/**'.length, commentRange.end - '*/'.length) .replace(LEADING_STAR, '') - .trim() + .trim(); if (commentRange.hasTrailingNewLine) { content += '\n'; }