feature/All where operator when asking for known in uknown; 2019 in years
PAPI-2556
#28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the
src/linq/operator
andsrc/test/operator
modules to enhance support for the 'all' operator and improve test coverage. The most important changes include adding support for the 'all' operator in various functions, updating theArrayExpression
type, and expanding test cases to cover the new functionality.Enhancements to operator support:
src/linq/operator/types.ts
: Added 'all' to the list of allowed operators in theArrayExpression
type.src/linq/operator/whereoperator.ts
: Updated functions such asvisitExpression
,visitLeaf
,getOperator
,getPropertyValue
, andgetPropertyName
to handle the 'all' operator. [1] [2] [3] [4] [5] [6]Parser updates:
src/linq/peg/grammar/javascript.pegjs
: Modified theQualifiedIdentifier
rule to ensure proper parsing of expressions involving the 'all' operator.src/linq/peg/parser/parser.ts
: Added logic to handleRelationalExpression
in thetransform
function. [1] [2]Expanded test coverage:
src/test/operator/where.ts
: Added multiple new test cases to cover scenarios involving the 'all' operator, including nested objects and array properties. [1] [2] [3] [4] [5] [6] [7] [8] [9]