Skip to content

Commit 90e7b8f

Browse files
committed
chore: modify package version
1 parent c49a173 commit 90e7b8f

2 files changed

Lines changed: 1 addition & 30 deletions

File tree

ts-parser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "abcoder-ts-parser",
3-
"version": "0.0.6",
3+
"version": "0.0.8",
44
"description": "TypeScript AST parser for UNIAST v0.1.3 specification",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

ts-parser/src/utils/test/symbol-resolver.test.ts

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -394,35 +394,6 @@ describe('SymbolResolver', () => {
394394
});
395395
});
396396

397-
describe('clearCache', () => {
398-
it('should clear the resolution cache', () => {
399-
const { project: testProject, sourceFile, cleanup } = createTestProject(`
400-
const test = 42;
401-
`);
402-
403-
try {
404-
const variableDeclaration = sourceFile.getVariableDeclaration('test');
405-
const symbol = variableDeclaration?.getSymbol();
406-
407-
if (symbol) {
408-
// First resolution
409-
const [resolved1, _] = symbolResolver.resolveSymbol(symbol!, variableDeclaration!);
410-
expect(resolved1).toBeDefined();
411-
412-
// Clear cache
413-
symbolResolver.clearCache();
414-
415-
// Second resolution should work the same
416-
const [resolved2, __] = symbolResolver.resolveSymbol(symbol!, variableDeclaration!);
417-
expect(resolved2).toBeDefined();
418-
expect(resolved2?.name).toBe(resolved1?.name);
419-
}
420-
} finally {
421-
cleanup();
422-
}
423-
});
424-
});
425-
426397
describe('assignSymbolName', () => {
427398
it('should handle simple variable names', () => {
428399
const { project: testProject, sourceFile, cleanup } = createTestProject(`

0 commit comments

Comments
 (0)