Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/jmespath/src/Lexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class Lexer {
*
* @param current The current character
*/
#consumeComparatorSigns = (
readonly #consumeComparatorSigns = (
current: '<' | '>' | '!' | '=' | '|' | '&'
): Token => {
switch (current) {
Expand Down
6 changes: 3 additions & 3 deletions packages/jmespath/src/Parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { ParsedResult } from './ParsedResult.js';
import type { Node, Token } from './types.js';

/**
* Top down operaotr precedence parser for JMESPath.
* Top down operator precedence parser for JMESPath.
*
* ## References
* The implementation of this Parser is based on the implementation of
Expand All @@ -48,15 +48,15 @@ class Parser {
* The maximum binding power for a token
* that can stop a projection.
*/
#projectionStop = 10;
readonly #projectionStop = 10;
/**
* Cache object
*/
#cache: Record<string, ParsedResult> = {};
/**
* The maximum size of the cache.
*/
#maxCacheSize = 128;
readonly #maxCacheSize = 128;
#tokenizer?: Lexer;
#tokens: Token[];
#index = 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/jmespath/src/TreeInterpreter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { isTruthy, sliceArray } from './utils.js';
* @internal
*/
class TreeInterpreter {
#functions: Functions;
readonly #functions: Functions;

/**
* @param options The options to use for the interpreter.
Expand Down