예제 #1
0
 /// <summary>
 /// allows sequence recursion for unions/struct. Don't forget to call
 /// UnpublishTypeForSequenceRecursion after sequence elem type is identified
 /// </summary>
 public void PublishTypeForSequenceRecursion(Symbol typeSym, TypeBuilder type)
 {
     if (!IsTypeDeclarded(typeSym))
     {
         TypeContainer container =
             new CompileTimeTypeContainer(this, type);
         m_sequenceRecursionAllowedType = new TypeSymbolPair(typeSym, container);
     }
 }
예제 #2
0
 /// <summary>
 /// called after sequence element type has been identified
 /// </summary>
 public void UnpublishTypeForSequenceRecursion() {
     m_sequenceRecursionAllowedType = null;
 }
예제 #3
0
 /// <summary>
 /// allows sequence recursion for unions/struct. Don't forget to call
 /// UnpublishTypeForSequenceRecursion after sequence elem type is identified
 /// </summary>
 public void PublishTypeForSequenceRecursion(Symbol typeSym, TypeBuilder type) {
     if (!IsTypeDeclarded(typeSym)) {
         TypeContainer container =
             new CompileTimeTypeContainer(this, type);
         m_sequenceRecursionAllowedType = new TypeSymbolPair(typeSym, container);
     }            
 }
예제 #4
0
 /// <summary>
 /// called after sequence element type has been identified
 /// </summary>
 public void UnpublishTypeForSequenceRecursion()
 {
     m_sequenceRecursionAllowedType = null;
 }