Skip to content

Commit

Permalink
⭐adopt with serveLesan
Browse files Browse the repository at this point in the history
  • Loading branch information
etefaghian committed Sep 29, 2021
1 parent 67ac48b commit 762be99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { exObIterator } from "../tsMorph/exObIterator.ts";
import { getImpSourceFile } from "../tsMorph/getImpSourceFile.ts";
import { constructFVModels } from "./constructFVModels.ts";

export async function constructFVContents(sourceFile: SourceFile) {
export async function constructFVContents(entryPoint: SourceFile) {
//find lesan source file
const sourceFile = getImpSourceFile(entryPoint, "serveLesan");

//get object iterator in mod.ts
const objectIterator = sourceFile.getFirstDescendantByKindOrThrow(
SyntaxKind.ElementAccessExpression
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ import { constructResponseModel } from "./constructResponseModel.ts";
import { getImpSourceFile, exObIterator } from "../../request/utils/mod.ts";

export function constructResponseContent(
sourceFile: SourceFile,
entryPoint: SourceFile,
createdSourceFile: SourceFile,
withDetails: boolean = true
) {
//find lesan source file
const sourceFile = getImpSourceFile(entryPoint, "serveLesan");

//get object iterator in mod.ts
const objectIterator = sourceFile.getFirstDescendantByKindOrThrow(
SyntaxKind.ElementAccessExpression
Expand Down

0 comments on commit 762be99

Please sign in to comment.