示例#1
0
        protected static List <MethodData> ParseMethods(XPOReader reader)
        {
            List <MethodData> methods = new List <MethodData>();

            while (!reader.EndOfStream)
            {
                string line = reader.ReadLine().TrimStart();
                if (line.StartsWith(KeyWords.SOURCE))
                {
                    methods.Add(MethodData.Parse(line, reader));
                }
                else if (line.StartsWith(KeyWords.ENDMETHODS))
                {
                    break;
                }
                else
                {
                    continue;
                }
            }

            return(methods);
        }