dot-get #1

Merged
probablycorey merged 19 commits from dot-get into main 2025-10-19 17:26:55 +00:00
Showing only changes of commit 7de1682e91 - Show all commits

View File

@ -41,6 +41,19 @@ export class Scope {
}
}
// Wrapper that adds temporary state for identifier capture
class ScopeContext {
constructor(
public scope: Scope,
public pendingIds: string[] = []
) {}
}
// Hash function only hashes the scope, not pending state
const hashScope = (context: ScopeContext): number => {
return context.scope.hash()
}
export const trackScope = new ContextTracker<Scope>({
start: new Scope(null, new Set(), [], false),