WIP: tryig to remove some logic from domain lock custom node group

This commit is contained in:
sanex3339
2020-07-11 09:53:51 +03:00
parent 2b48efa232
commit 2c58db28ef
5 changed files with 12 additions and 14 deletions
@@ -22,7 +22,6 @@ import { CallsControllerFunctionCodeHelper } from '../../calls-controller/CallsC
import { DomainLockCodeHelper } from '../DomainLockCodeHelper';
import { NodeAppender } from '../../../node/NodeAppender';
import { NodeLexicalScopeUtils } from '../../../node/NodeLexicalScopeUtils';
import { NodeGuards } from '../../../node/NodeGuards';
@injectable()
export class DomainLockCustomCodeHelperGroup extends AbstractCustomCodeHelperGroup {
@@ -82,11 +81,9 @@ export class DomainLockCustomCodeHelperGroup extends AbstractCustomCodeHelperGro
.getLexicalScope(domainLockFunctionHostNode) ?? null;
const domainLockFunctionName: string = domainLockFunctionLexicalScopeNode
&& NodeGuards.isProgramNode(domainLockFunctionLexicalScopeNode)
? this.identifierNamesGenerator.generate(domainLockFunctionLexicalScopeNode)
: this.identifierNamesGenerator.generateNext();
const callsControllerFunctionName: string = domainLockFunctionLexicalScopeNode
&& NodeGuards.isProgramNode(domainLockFunctionLexicalScopeNode)
? this.identifierNamesGenerator.generate(domainLockFunctionLexicalScopeNode)
: this.identifierNamesGenerator.generateNext();