Example #1
0
        private IEnumerable <string> Others()
        {
            var run = new List <string>();

            foreach (var stmt in Statements.SkipWhile(a => a is not LineLabel))
            {
                if (stmt is Other other)
                {
                    var content = Other.Trim(other.Content);
                    run.Add(content);
                }
                else if (run.Count > 0)
                {
                    yield return(string.Join("", run));

                    run.Clear();
                }
            }

            yield return(string.Join("", run));
        }