Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getDependencies(): Dependencies[] {
const contextSymbols = new ContextSymbols(this.program, this.resourceResolver);
// console.log('getModules::', contextSymbols.getModules().pop());
fs.writeFileSync(
'./xxxxxxxxx.json',
JSON.stringify(contextSymbols.getContextSummary() /*.map( d => d._symbol.name )*/, null, 2)
);
// @todo we should return this type
// {
// name,
// file: srcFile.fileName.split('/').splice(-3).join('/'),
// providers: this.getModuleProviders(props),
// declarations: this.getModuleDeclations(props),
// imports: this.getModuleImports(props),
// exports: this.getModuleExports(props),
// bootstrap: this.getModuleBootstrap(props),
// __raw: props
NgAst.prototype.getDependencies = function () {
var contextSymbols = new ngast_1.ContextSymbols(this.program, this.resourceResolver);
// console.log('getModules::', contextSymbols.getModules().pop());
fs.writeFileSync('./xxxxxxxxx.json', JSON.stringify(contextSymbols.getContextSummary() /*.map( d => d._symbol.name )*/, null, 2));
// @todo we should return this type
// {
// name,
// file: srcFile.fileName.split('/').splice(-3).join('/'),
// providers: this.getModuleProviders(props),
// declarations: this.getModuleDeclations(props),
// imports: this.getModuleImports(props),
// exports: this.getModuleExports(props),
// bootstrap: this.getModuleBootstrap(props),
// __raw: props
// };
return [];
};
NgAst.prototype.getFileName = function (contextSymbols) {