Ejemplo n.º 1
0
        public string Run(string _input, int startAt = 0)
        {
            Match match = xpoMatch.Match(_input, startAt);

            if (match.Success)
            {
                string xml = _input;
                if (this.include(match.Value.ToLowerInvariant()))
                {
                    string name = match.Groups[1].Value.Trim();

                    string AOTPath = MetaData.AOTPath(name);
                    Hits++;
                    using (StreamWriter sw = File.AppendText(@"c:\temp\ObsoleteErrorMethods-all.txt"))
                    {
                        sw.WriteLine(AOTPath);
                    }

                    if (!MetaData.isReferencedExternally(name))
                    {
                        using (StreamWriter sw = File.AppendText(@"c:\temp\ObsoleteErrorMethods-unreferenced.txt"))
                        {
                            sw.WriteLine(AOTPath);
                        }
                    }
                    else
                    {
                        using (StreamWriter sw = File.AppendText(@"c:\temp\ObsoleteErrorMethods-referenced.txt"))
                        {
                            sw.WriteLine(AOTPath);
                        }
                    }
                    //Debug.WriteLine(string.Format("{0} has unknown table range {1} with value {2} on field {3}", Scanner.FILENAME, rangeName, value, fieldName));
                }

                _input = this.Run(_input, match.Index + 1);
            }

            return(_input);
        }