(workspace: IWorkspace, props: IFileConfig)
| 40 | } |
| 41 | |
| 42 | constructor(workspace: IWorkspace, props: IFileConfig) { |
| 43 | super(workspace, props, false); |
| 44 | this.name = getModuleNameByFilename(props.filename); |
| 45 | this.update(props.code, true, false); |
| 46 | |
| 47 | makeObservable(this, { |
| 48 | _serviceFunctions: observable, |
| 49 | _baseConfig: observable, |
| 50 | _code: observable, |
| 51 | _cleanCode: observable, |
| 52 | serviceFunctions: computed, |
| 53 | baseConfig: computed, |
| 54 | cleanCode: computed, |
| 55 | code: computed, |
| 56 | update: action, |
| 57 | }); |
| 58 | } |
| 59 | |
| 60 | _analysisAst() { |
| 61 | const { imports, services, baseConfig } = traverseServiceFile(this.ast); |
nothing calls this directly
no test coverage detected