Beispiel #1
0
            public bool Visit(ElementNode element, object parameter)
            {
                if (element.Name.EqualsIgnoreCase("tr") && element.Children.Count == 2)
                {
                    ElementNode tdNode1 = element.Children[0];
                    ElementNode tdNode2 = element.Children[1];

                    if (tdNode1.Children.Count == 1 && tdNode1.Children[0].Name.EqualsIgnoreCase("a"))
                    {
                        string functionName = element.Root.TextProvider.GetText(tdNode1.Children[0].InnerRange);
                        if (functionName.IndexOf('&') >= 0)
                        {
                            functionName = WebUtility.HtmlDecode(functionName);
                        }
                        else if (!IsValidName(functionName))
                        {
                            return(true);
                        }

                        NamedItemType itemType = GetItemType(functionName, tdNode1);
                        if (itemType != NamedItemType.None)
                        {
                            string functionDescription = element.Root.TextProvider.GetText(tdNode2.InnerRange) ?? string.Empty;
                            _functions.Add(new NamedItemInfo(functionName, functionDescription, itemType));
                        }
                    }
                }

                return(true);
            }
Beispiel #2
0
 public NamedItemInfo(string name, string actualName, string description, NamedItemType type)
 {
     Name        = name;
     ActualName  = actualName;
     Description = description;
     ItemType    = type;
 }
 public NamedItemInfo(string name, string actualName, string description, NamedItemType type) {
     Name = name;
     ActualName = actualName;
     Description = description;
     ItemType = type;
 }
 public NamedItemInfo(string name, string description, NamedItemType type) :
     this(name, name, description, type) {
 }
 public NamedItemInfo(string name, NamedItemType type) :
     this(name, string.Empty, type) {
 }
Beispiel #6
0
 public NamedItemInfo(string name, NamedItemType type) :
     this(name, string.Empty, type)
 {
 }
Beispiel #7
0
 public NamedItemInfo(string name, string description, NamedItemType type) :
     this(name, name, description, type)
 {
 }