mbeckerle commented on a change in pull request #88: Daffodil 1919 separators
URL: https://github.com/apache/incubator-daffodil/pull/88#discussion_r208742202
 
 

 ##########
 File path: 
daffodil-core/src/main/scala/org/apache/daffodil/dsom/AnnotatedSchemaComponent.scala
 ##########
 @@ -122,34 +119,34 @@ trait AnnotatedSchemaComponent
   requiredEvaluations(nonDefaultPropertySources)
   requiredEvaluations(defaultPropertySources)
 
-  /** Returns the Term corresponding to this component. */
-  final lazy val term: Term = this match {
-    case gr: GroupRef => gr.asModelGroup
-    //    case mg: ModelGroup => mg.parent match {
-    //      case ggd: GlobalGroupDef => {
-    //        // this is the model group that is the definition of
-    //        // a global group, so our term is the group reference referring 
to this.
-    //        ggd.groupRef.asModelGroup
-    //      }
-    //      case _ => mg
-    //    }
-    case t: Term => t
-    case ged: GlobalElementDecl => ged.elementRef
-    case ty: SimpleTypeDefBase => ty.elementBase
-    case ty: ComplexTypeBase => ty.elementBase
-    case ggd: GlobalGroupDef => ggd.groupRef.asModelGroup
-    case sd: SchemaDocument =>
-      Assert.usageError("not to be called for schema documents")
-  }
+  //  /** Returns the Term corresponding to this component. */
 
 Review comment:
   Done

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


With regards,
Apache Git Services

Reply via email to