(
program: ts.Program,
input: ts.ClassDeclaration,
importer: (name: string, module: string) => void
)
| 146 | } |
| 147 | |
| 148 | function createJsonMembers( |
| 149 | program: ts.Program, |
| 150 | input: ts.ClassDeclaration, |
| 151 | importer: (name: string, module: string) => void |
| 152 | ): ts.TypeElement[] { |
| 153 | return input.members |
| 154 | .filter( |
| 155 | m => |
| 156 | ts.isPropertyDeclaration(m) && |
| 157 | m.modifiers && |
| 158 | !m.modifiers.find(m => m.kind === ts.SyntaxKind.StaticKeyword) |
| 159 | ) |
| 160 | .map(m => createJsonMember(program, m as ts.PropertyDeclaration, importer)); |
| 161 | } |
| 162 | |
| 163 | let allJsonTypes: Map<string, string> = new Map<string, string>(); |
| 164 | const emit = createEmitter('json_declaration', (program, input) => { |
no test coverage detected