public static MethodStream_Item methodStreamItem(this Saved_MethodStream savedMethodStream, IEntity iEntity)
        {
            var methodStreamItem = new MethodStream_Item();

            methodStreamItem.Name       = iEntity.Name;
            methodStreamItem.Namespace  = iEntity.Namespace;
            methodStreamItem.DotNetName = iEntity.DotNetName;
            methodStreamItem.Class      = iEntity.DotNetName;
            methodStreamItem.Signature  = iEntity.FullyQualifiedName;
            return(methodStreamItem);
        }
        public static MethodStream_Item methodStreamItem(this Saved_MethodStream savedMethodStream, IReturnType iReturnType)
        {
            var methodStreamItem = new MethodStream_Item();

            methodStreamItem.ItemType   = MethodStream_ItemType.ExternalClasses;
            methodStreamItem.Name       = iReturnType.Name;
            methodStreamItem.Namespace  = iReturnType.Namespace;
            methodStreamItem.DotNetName = iReturnType.DotNetName;
            methodStreamItem.Class      = iReturnType.DotNetName;
            methodStreamItem.Signature  = iReturnType.FullyQualifiedName;
            return(methodStreamItem);
        }
        public static MethodStream_Item methodStreamItem(this Saved_MethodStream savedMethodStream, O2MappedAstData astData, IMethod iMethod, MethodStream_ItemType itemType)
        {
            var methodStreamItem = new MethodStream_Item();

            methodStreamItem.ItemType = itemType;

            if (iMethod.Parameters.Count > 0)
            {
                methodStreamItem.Parameters = new NameValueItems();
                foreach (var parameter in iMethod.Parameters)
                {
                    methodStreamItem.Parameters.add(parameter.Name.str(), parameter.ReturnType.FullyQualifiedName);
                }
            }
            if (iMethod.Attributes.Count > 0)
            {
                methodStreamItem.Attributes = new NameValueItems();
                foreach (var attribute in iMethod.Attributes)
                {
                    methodStreamItem.Attributes.add(attribute.AttributeTarget.str(), attribute.AttributeType.FullyQualifiedName);
                }
            }

            methodStreamItem.Name  = iMethod.name();
            methodStreamItem.Class = iMethod.DeclaringType.Name;
            if (astData.file(iMethod).notNull())
            {
                methodStreamItem.Location = new Ast_Location(astData, iMethod);
            }
            methodStreamItem.Namespace  = iMethod.DeclaringType.Namespace;
            methodStreamItem.Signature  = iMethod.fullName();
            methodStreamItem.ReturnType = iMethod.ReturnType.FullyQualifiedName;
            methodStreamItem.DotNetName = iMethod.DotNetName;

            return(methodStreamItem);
        }
 public static MethodStream_Item methodStreamItem(this Saved_MethodStream savedMethodStream,  IEntity iEntity)
 {
     var methodStreamItem = new MethodStream_Item();
     methodStreamItem.Name = iEntity.Name;
     methodStreamItem.Namespace = iEntity.Namespace;
     methodStreamItem.DotNetName = iEntity.DotNetName;
     methodStreamItem.Class = iEntity.DotNetName;
     methodStreamItem.Signature = iEntity.FullyQualifiedName;
     return methodStreamItem;
 }
 public static MethodStream_Item methodStreamItem(this Saved_MethodStream savedMethodStream,  IReturnType iReturnType)
 {
     var methodStreamItem = new MethodStream_Item();
     methodStreamItem.ItemType = MethodStream_ItemType.ExternalClasses;
     methodStreamItem.Name = iReturnType.Name;
     methodStreamItem.Namespace = iReturnType.Namespace;
     methodStreamItem.DotNetName = iReturnType.DotNetName;
     methodStreamItem.Class = iReturnType.DotNetName;
     methodStreamItem.Signature = iReturnType.FullyQualifiedName;
     return methodStreamItem;
 }
        public static MethodStream_Item methodStreamItem(this Saved_MethodStream savedMethodStream,  O2MappedAstData astData, IMethod iMethod, MethodStream_ItemType itemType)
        {
            var methodStreamItem = new MethodStream_Item();

            methodStreamItem.ItemType = itemType;

            if (iMethod.Parameters.Count > 0)
            {
                methodStreamItem.Parameters = new NameValueItems();
                foreach(var parameter in iMethod.Parameters)
                    methodStreamItem.Parameters.add(parameter.Name.str(), parameter.ReturnType.FullyQualifiedName);
            }
            if (iMethod.Attributes.Count > 0)
            {
                methodStreamItem.Attributes = new NameValueItems();
                foreach(var attribute in iMethod.Attributes)
                    methodStreamItem.Attributes.add(attribute.AttributeTarget.str(), attribute.AttributeType.FullyQualifiedName);
            }

            methodStreamItem.Name = iMethod.name();
            methodStreamItem.Class = iMethod.DeclaringType.Name;
            if (astData.file(iMethod).notNull())
                methodStreamItem.Location = new Ast_Location(astData, iMethod);
            methodStreamItem.Namespace = iMethod.DeclaringType.Namespace;
            methodStreamItem.Signature = iMethod.fullName();
            methodStreamItem.ReturnType = iMethod.ReturnType.FullyQualifiedName;
            methodStreamItem.DotNetName = iMethod.DotNetName;

            return methodStreamItem;
        }