| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -105,7 +105,8 @@ export function getFileAnnotations(sourceFile: ts.SourceFile): AnnotationsMap { | |||
| 105 | 105 | function getTagArgsFromComment(tag: ts.JSDocTag): string[] { | |
| 106 | 106 | if (tag.comment) { | |
| 107 | 107 | if (typeof tag.comment === "string") { | |
| 108 | - return tag.comment.split(" "); | ||
| 108 | + const firstLine = tag.comment.split("\n")[0]; | ||
| 109 | + return firstLine.trim().split(" "); | ||
| 109 | 110 | } else { | |
| 110 | 111 | return tag.comment.map(part => part.text); | |
| 111 | 112 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,6 +36,8 @@ escapedCharsInTemplateString = "\\\\ \\0 \\b \\t \\n \\v \\f \\" ' \`" | |||
| 36 | 36 | nonEmptyTemplateString = ("Level 0: \\n\\t " .. ("Level 1: \\n\\t\\t " .. ("Level 3: \\n\\t\\t\\t " .. "Last level \\n --") .. " \\n --") .. " \\n --") .. " \\n --"" | |
| 37 | 37 | `; | |
| 38 | 38 | ||
| 39 | + exports[`Transformation (customNameWithExtraComment) 1`] = `"TestNamespace.pass()"`; | ||
| 40 | + | ||
| 39 | 41 | exports[`Transformation (customNameWithNoSelf) 1`] = `"TestNamespace.pass()"`; | |
| 40 | 42 | ||
| 41 | 43 | exports[`Transformation (exportStatement) 1`] = ` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,10 @@ | |||
| 1 | + /** @noSelf */ | ||
| 2 | + declare namespace TestNamespace { | ||
| 3 | + /** | ||
| 4 | + * @customName pass | ||
| 5 | + * The first word should not be included. | ||
| 6 | + **/ | ||
| 7 | + function fail(): void; | ||
| 8 | + } | ||
| 9 | + | ||
| 10 | + TestNamespace.fail(); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments