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 2021/03/16 14:28:38 UTC

[GitHub] [daffodil] jadams-tresys commented on a change in pull request #510: New variable instances should inherit external values

jadams-tresys commented on a change in pull request #510:
URL: https://github.com/apache/daffodil/pull/510#discussion_r595222228



##########
File path: daffodil-runtime1/src/main/scala/org/apache/daffodil/processors/RuntimeData.scala
##########
@@ -953,6 +953,7 @@ final class VariableRuntimeData(
   pathArg: String,
   namespacesArg: NamespaceBinding,
   val external: Boolean,
+  val hasLocalDefault: Boolean,
   val direction: VariableDirection,
   @TransientParam maybeDefaultValueExprArg: => Maybe[CompiledExpression[AnyRef]],

Review comment:
       You interpreted the situation correctly. maybeDefaultValueExprArg will inherit from the variable definition if there isn't one local to the newVariableInstance.  I can make the name change to try to clear this up a little more.




----------------------------------------------------------------
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