You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by GitBox <gi...@apache.org> on 2019/11/15 04:04:05 UTC

[GitHub] [incubator-daffodil] bsloane1650 commented on a change in pull request #289: Daffodil 2192 warnings - nextElementResolver rewrite

bsloane1650 commented on a change in pull request #289: Daffodil 2192 warnings - nextElementResolver rewrite
URL: https://github.com/apache/incubator-daffodil/pull/289#discussion_r346649304
 
 

 ##########
 File path: daffodil-core/src/main/scala/org/apache/daffodil/dsom/SchemaComponent.scala
 ##########
 @@ -65,16 +65,18 @@ trait SchemaComponent
 
   lazy val tunable: DaffodilTunables = optLexicalParent.get.tunable
 
-  lazy val dpathCompileInfo: DPathCompileInfo =
+  lazy val dpathCompileInfo: DPathCompileInfo = {
+    lazy val parents = enclosingComponent.map { _.dpathCompileInfo }.toSeq
     new DPathCompileInfo(
-      enclosingComponents.map { _.encloser.dpathCompileInfo },
+      parents,
 
 Review comment:
   Is this a style change?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services