Exemplo n.º 1
0
    private static void smethod_3(SDTInlineContent A_0, Regex A_1, bool A_2, Class185 A_3)
    {
        if ((A_3.Count <= 0) || !A_2)
        {
            foreach (ParagraphBase base2 in A_0.Items)
            {
                if (A_2 && (A_3.Count > 0))
                {
                    break;
                }
                List <Body> list = Class191.smethod_5(base2);
                if (list.Count > 0)
                {
                    using (List <Body> .Enumerator enumerator2 = list.GetEnumerator())
                    {
                        TextSelection selection;
                        while (enumerator2.MoveNext())
                        {
                            Body current = enumerator2.Current;
                            if (A_2)
                            {
                                selection = current.method_22(A_1);
                                if (selection == null)
                                {
                                    continue;
                                }
                                goto Label_009E;
                            }
                            Class185 collection = current.method_23(A_1);
                            if ((collection != null) && (collection.Count > 0))
                            {
                                A_3.AddRange(collection);
                            }
                        }
                        goto Label_00E4;
Label_009E:
                        A_3.Add(selection);
                        goto Label_00E4;
                    }
                }
                if (base2 is StructureDocumentTagInline)
                {
                    Class185 class2 = smethod_2((base2 as StructureDocumentTagInline).SDTContent, A_1, A_2);
                    if ((class2 != null) && (class2.Count > 0))
                    {
                        A_3.AddRange(class2);
                    }
                }
Label_00E4:
                list.Clear();
                list = null;
            }
        }
    }