Method
constructor
(
public readonly lexicon: Lexicon,
public readonly query: string,
postProcessor: (res: ILexerResult) => ILexerResult = res => res
)
Source from the content-addressed store, hash-verified
| 55 | } |
| 56 | |
| 57 | constructor( |
| 58 | public readonly lexicon: Lexicon, |
| 59 | public readonly query: string, |
| 60 | postProcessor: (res: ILexerResult) => ILexerResult = res => res |
| 61 | ) { |
| 62 | this.lexerResult = postProcessor(lexer(this.lexicon, this.query)); |
| 63 | this.syntaxerResult = syntaxer(this.lexerResult); |
| 64 | } |
| 65 | |
| 66 | evaluate = (target: any) => { |
| 67 | if (!this.isValid) { |
Callers
nothing calls this directly
Tested by
no test coverage detected