Пример #1
0
 public ALittleScriptCustomTypeElement GetCustomType()
 {
     if (m_flag_CustomType)
     {
         return(m_cache_CustomType);
     }
     m_flag_CustomType = true;
     foreach (var child in m_childs)
     {
         if (child is ALittleScriptCustomTypeElement)
         {
             m_cache_CustomType = child as ALittleScriptCustomTypeElement;
             break;
         }
     }
     return(m_cache_CustomType);
 }
Пример #2
0
 public ALittleScriptCustomTypeCommonReference(ALittleScriptCustomTypeElement custom_type, ABnfElement element) : base(element)
 {
     m_namespace_name = ALittleScriptUtility.GetNamespaceName(m_element);
     m_key            = m_element.GetElementText();
     m_custom_type    = custom_type;
 }