mirror of
https://mirror.skon.top/github.com/gkd-kit/gkd
synced 2026-04-30 13:51:02 +08:00
fix: QueryResult context error
This commit is contained in:
@@ -175,7 +175,7 @@ class Transform<T> @JsExport.Ignore constructor(
|
||||
return sequence {
|
||||
getDescendants(node).forEach { childNode ->
|
||||
selector.matchContext(childNode, this@Transform, option).let {
|
||||
if (it.context.matched) {
|
||||
if (it.matched) {
|
||||
yield(it)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ sealed class SelectorLogicalOperator(val key: String) : Stringify, SelectorExpre
|
||||
expression: LogicalSelectorExpression,
|
||||
): QueryResult<T> {
|
||||
val leftValue = expression.left.matchContext(context, transform, option)
|
||||
if (leftValue.context.matched) {
|
||||
if (leftValue.matched) {
|
||||
return QueryResult.OrResult(expression, leftValue)
|
||||
}
|
||||
return QueryResult.OrResult(
|
||||
|
||||
Reference in New Issue
Block a user