UNPKG

@compodoc/compodoc

Version:

The missing documentation tool for your Angular application

28 lines (25 loc) 873 B
import { IHtmlEngineHelper } from './html-engine-helper.interface'; import { ts, SyntaxKind } from 'ts-morph'; export class ModifIconHelper implements IHtmlEngineHelper { public helperFunc(context: any, kind: SyntaxKind): string { let _kindText = ''; switch (kind) { case SyntaxKind.PrivateKeyword: _kindText = 'lock'; // private break; case SyntaxKind.ProtectedKeyword: _kindText = 'lock'; // protected break; case SyntaxKind.StaticKeyword: _kindText = 'reset'; // static break; case SyntaxKind.ExportKeyword: _kindText = 'export'; // export break; default: _kindText = 'reset'; break; } return _kindText; } }