예제 #1
0
        public SwitchStatementInfo Parse()
        {
            var rslt = new SwitchStatementInfo(this);
            rslt.Key = Key.Parse();
            foreach (var c in this.CaseExpressions)
                rslt.CaseExpressions.Add(c.Parse());

            return rslt;
        }
예제 #2
0
        public SwitchStatementInfo Parse()
        {
            var rslt = new SwitchStatementInfo(this);

            rslt.Key = Key.Parse();
            foreach (var c in this.CaseExpressions)
            {
                rslt.CaseExpressions.Add(c.Parse());
            }

            return(rslt);
        }