Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fuma-nama committed Jan 30, 2024
1 parent 707e239 commit 7c33372
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ function getProgram(options: Options['options'] = {}): ts.Program {
incremental: false,
},
});
console.log(parsed.fileNames);

cache.set(key, program);

Expand All @@ -76,6 +75,10 @@ function getExportedSymbol({
checker,
program,
}: Context): ts.Symbol | undefined {
console.log(

Check failure on line 78 in packages/core/src/typescript.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
file,
program.getSourceFiles().map((f) => f.fileName),
);
const sourceFile = program.getSourceFile(file);
if (!sourceFile) return;

Expand All @@ -99,7 +102,6 @@ export function generateDocumentation(options: Options): DocEntry[] {
};

const symbol = getExportedSymbol(ctx);
console.log(symbol);
if (!symbol) return [];

const type = checker.getDeclaredTypeOfSymbol(symbol);
Expand All @@ -110,8 +112,6 @@ export function generateDocumentation(options: Options): DocEntry[] {
symbol,
};

console.log(type);

return type.getProperties().map(getDocEntry.bind(entryContext));
}

Expand Down

0 comments on commit 7c33372

Please sign in to comment.