You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by GitBox <gi...@apache.org> on 2019/06/03 18:32:45 UTC

[GitHub] [incubator-daffodil] stevedlawrence commented on a change in pull request #223: Daffodil 1444 schema comp simple types

stevedlawrence commented on a change in pull request #223: Daffodil 1444 schema comp simple types
URL: https://github.com/apache/incubator-daffodil/pull/223#discussion_r289973974
 
 

 ##########
 File path: daffodil-core/src/main/scala/org/apache/daffodil/dsom/SchemaSet.scala
 ##########
 @@ -62,22 +63,25 @@ import scala.collection.immutable.HashMap
  */
 
 final class SchemaSet(
+  pfArg: => Option[ProcessorFactory],
   rootSpec: Option[RootSpec],
   externalVariables: Seq[Binding],
   schemaSourcesArg: Seq[DaffodilSchemaSource],
   val validateDFDLSchemas: Boolean,
   checkAllTopLevelArg: Boolean,
-  parent: SchemaComponent,
   tunableArg: DaffodilTunables)
-  extends SchemaComponentImpl(<schemaSet/>, parent) // a fake schema component
+  extends SchemaComponentImpl(<schemaSet/>, null)
   with SchemaSetIncludesAndImportsMixin {
 
+  private lazy val processorFactory = pfArg
+  lazy val root = rootElement(processorFactory.flatMap { _.rootSpec })
+
 
 Review comment:
   What's the intention for the pfArg being passed in and the creation of the root variable? From what I can tell, root isn't used.

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