Skip to content

Commit 6e4975d

Browse files
committed
Make StatementFormatter methods private
These were previously shared with AliasAs, but not any more.
1 parent bebe4dd commit 6e4975d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/StatementFormatter.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,22 +421,22 @@ export default class StatementFormatter {
421421
}
422422

423423
/** Returns the latest encountered reserved keyword token */
424-
public getPreviousReservedToken(): Token {
424+
private getPreviousReservedToken(): Token {
425425
return this.previousReservedToken;
426426
}
427427

428428
/** True when currently within SELECT command */
429-
public isWithinSelect(): boolean {
429+
private isWithinSelect(): boolean {
430430
return isToken.SELECT(this.previousCommandToken);
431431
}
432432

433433
/** Fetches nth previous token from the token stream */
434-
public tokenLookBehind(n = 1): Token {
434+
private tokenLookBehind(n = 1): Token {
435435
return this.tokens[this.index - n] || EOF_TOKEN;
436436
}
437437

438438
/** Fetches nth next token from the token stream */
439-
public tokenLookAhead(n = 1): Token {
439+
private tokenLookAhead(n = 1): Token {
440440
return this.tokens[this.index + n] || EOF_TOKEN;
441441
}
442442
}

0 commit comments

Comments
 (0)