Exemple #1
0
        public void GenerateDecl(StreamWriter sw)
        {
            if (elem.HasAttribute("new_flag") || (container_type != null && container_type.GetSignalRecursively(Name) != null))
            {
                sw.Write("new ");
            }

            sw.WriteLine("\t\tevent " + EventHandlerQualifiedName + " " + Name + ";");
        }
Exemple #2
0
 private bool NeedNew(ObjectBase implementor)
 {
     return elem.HasAttribute ("new_flag") ||
         (container_type != null && container_type.GetSignalRecursively (Name) != null) ||
         (implementor != null && implementor.GetSignalRecursively (Name) != null);
 }
Exemple #3
0
 private bool NeedNew(ObjectBase implementor)
 {
     return(elem.HasAttribute("new_flag") ||
            (container_type != null && container_type.GetSignalRecursively(Name) != null) ||
            (implementor != null && implementor.GetSignalRecursively(Name) != null));
 }