UnityEditor.iOS.Xcode.PBXProject.CreateSourceGroup C# (CSharp) Method

CreateSourceGroup() private method

private CreateSourceGroup ( string sourceGroup ) : PBXGroupData
sourceGroup string
return PBXGroupData
        private PBXGroupData CreateSourceGroup(string sourceGroup)
        {
            sourceGroup = PBXPath.FixSlashes(sourceGroup);
            if ((sourceGroup == null) || (sourceGroup == ""))
            {
                return this.GroupsGetMainGroup();
            }
            PBXGroupData group = this.GroupsGetByProjectPath(sourceGroup);
            if (group == null)
            {
                group = this.GroupsGetMainGroup();
                string[] strArray = PBXPath.Split(sourceGroup);
                string projectPath = null;
                foreach (string str2 in strArray)
                {
                    if (projectPath == null)
                    {
                        projectPath = str2;
                    }
                    else
                    {
                        projectPath = projectPath + "/" + str2;
                    }
                    PBXGroupData pBXGroupChildByName = this.GetPBXGroupChildByName(group, str2);
                    if (pBXGroupChildByName != null)
                    {
                        group = pBXGroupChildByName;
                    }
                    else
                    {
                        PBXGroupData gr = PBXGroupData.Create(str2, str2, PBXSourceTree.Group);
                        group.children.AddGUID(gr.guid);
                        this.GroupsAdd(projectPath, group, gr);
                        group = gr;
                    }
                }
            }
            return group;
        }
PBXProject