Github user VTGuy commented on a diff in the pull request:
https://github.com/apache/incubator-daffodil/pull/5#discussion_r151152926
--- Diff:
daffodil-core/src/main/scala/edu/illinois/ncsa/daffodil/dsom/DFDLStatementMixin.scala
---
@@ -38,16 +38,83 @@ import edu.illinois.ncsa.daffodil.exceptions.ThrowsSDE
import edu.illinois.ncsa.daffodil.schema.annotation.props.gen.TestKind
import edu.illinois.ncsa.daffodil.grammar.primitives.AssertBase
+trait ResolvesDFDLStatementMixin
+ extends ThrowsSDE
+ with ProvidesDFDLStatementMixin { self: Term =>
+
+ requiredEvaluations(statements)
+
+ final lazy val statements: Seq[DFDLStatement] =
+ optReferencedStatementSource.toSeq.flatMap { _.resolvedStatements } ++
+ localStatements
+
+ private def getParserExprReferencedElements(s: DFDLStatement,
+ f: ContentValueReferencedElementInfoMixin =>
Set[DPathElementCompileInfo]) = {
+ s match {
+
--- End diff --
Nit picking here, but extra space is not needed between these lines.
---