Esempio n. 1
0
 public static ProtocolContents LocateProtocolContents(ModuleContents contents, SwiftClassName cn)
 {
     return(contents.Protocols.Values.FirstOrDefault(cc => cc.Name.Equals(cn)));
 }
Esempio n. 2
0
        public static ProtocolContents LocateProtocolContents(ModuleInventory modInventory, SwiftClassName className)
        {
            var contents = modInventory.Values.FirstOrDefault(mod => mod.Name.Equals(className.Module));

            if (contents == null)
            {
                return(null);
            }
            return(LocateProtocolContents(contents, className));
        }
 public SwiftClassType(SwiftClassName className, bool isReference, SwiftName name = null)
     : base(CoreCompoundType.Class, isReference, name)
 {
     ClassName = className;
 }