Skip to content

Commit f7e6d4c

Browse files
committed
Add test and remove unused getters
1 parent 539f5ba commit f7e6d4c

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/builder/builder.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ describe("ScopeInfoBuilder", () => {
181181
assertStrictEquals(info.scopes[0], info.ranges[0].originalScope);
182182
assertStrictEquals(info.ranges[0].originalScope, scope);
183183
});
184+
185+
it("does nothing when no range is on the stack", () => {
186+
builder.setRangeDefinitionScope(0);
187+
});
184188
});
185189

186190
describe("setRangeStackFrame", () => {

src/builder/builder.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,6 @@ export class ScopeInfoBuilder {
205205
return this.#rangeStack;
206206
}
207207

208-
protected get scopes(): ReadonlyArray<OriginalScope | null> {
209-
return this.#scopes;
210-
}
211-
212-
protected get ranges(): ReadonlyArray<GeneratedRange> {
213-
return this.#ranges;
214-
}
215-
216208
protected isValidScopeNumber(n: number): boolean {
217209
return this.#countToScope.has(n);
218210
}

0 commit comments

Comments
 (0)