(fileName: string)
| 123 | * Return the computed namespace from relative fileName. |
| 124 | */ |
| 125 | export function getNamespaceFromFileName(fileName: string) { |
| 126 | // Replace ./\ with _, so a/b/c/file.ts becomes app::a_b_c_file_ts . |
| 127 | return `app::${fileName.replace(/[\.\/\\]/g, '_')}`; |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * Return whether the declaration has a question token in it. |
no outgoing calls
no test coverage detected