You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2021/04/26 14:23:50 UTC
[groovy] branch master updated: Format comment
This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 99159d4 Format comment
99159d4 is described below
commit 99159d4a086dd4d8a1776091149e3249f75d3587
Author: Daniel Sun <su...@apache.org>
AuthorDate: Mon Apr 26 22:23:18 2021 +0800
Format comment
---
.../ginq/provider/collection/GinqAstWalker.groovy | 30 +++++++++++-----------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/GinqAstWalker.groovy b/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/GinqAstWalker.groovy
index 785e8e2..01dbde8 100644
--- a/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/GinqAstWalker.groovy
+++ b/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/GinqAstWalker.groovy
@@ -1322,21 +1322,21 @@ class GinqAstWalker implements GinqAstVisitor<Expression>, SyntaxErrorReportable
}
/*
- * `n1`(`from` node) join `n2` join `n3` will construct a join tree:
- *
- * __t (join node)
- * |__ v2 (n3)
- * |__ v1 (join node)
- * |__ v2 (n2)
- * |__ v1 (n1) (`from` node)
- *
- * Note: `__t` is a tuple with 2 elements
- * so `n3`'s access path is `__t.v2`
- * and `n2`'s access path is `__t.v1.v2`
- * and `n1`'s access path is `__t.v1.v1`
- *
- * The following code shows how to construct the access path for variables
- */
+ * `n1`(`from` node) join `n2` join `n3` will construct a join tree:
+ *
+ * __t (join node)
+ * |__ v2 (n3)
+ * |__ v1 (join node)
+ * |__ v2 (n2)
+ * |__ v1 (n1) (`from` node)
+ *
+ * Note: `__t` is a tuple with 2 elements
+ * so `n3`'s access path is `__t.v2`
+ * and `n2`'s access path is `__t.v1.v2`
+ * and `n1`'s access path is `__t.v1.v1`
+ *
+ * The following code shows how to construct the access path for variables
+ */
Map<String, Expression> aliasToAccessPathMap = new LinkedHashMap<>()
for (DataSourceExpression dse = dataSourceExpression; dse instanceof JoinExpression; dse = dse.dataSourceExpression) {
DataSourceExpression otherDataSourceExpression = dse.dataSourceExpression