public override LessNode VisitBlock(LessParser.BlockContext context)
        {
            IEnumerable <Statement> GetStatements()
            {
                foreach (var statement in context.terminatedStatement())
                {
                    yield return((Statement)statement.Accept(this));
                }

                var unterminatedStatement = context.statement();

                if (unterminatedStatement != null)
                {
                    yield return((Statement)unterminatedStatement.Accept(this));
                }
            }

            return(new RuleBlock(GetStatements()));
        }
예제 #2
0
 public virtual LessNode VisitBlock(LessParser.BlockContext context)
 {
     throw new System.NotImplementedException();
 }