コード例 #1
0
        private static UnifiedExpression CreateYield(XElement node)
        {
            Contract.Requires(node != null);
            Contract.Requires(node.Name() == "yield");
            var args = node.Elements()
                       .Select(CreateExpresion)
                       .ToTupleLiteral();

            return(UnifiedYieldReturn.Create(args));
        }
コード例 #2
0
 public override bool Visit(
     UnifiedYieldReturn element, VisitorArgument arg)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
 public override bool Visit(
     UnifiedYieldReturn element, VisitorArgument arg)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
        public UnifiedElement VisitYieldReturnStatement(YieldReturnStatement stmt, object data)
        {
            var value = stmt.Expression.TryAcceptForExpression(this);

            return(UnifiedYieldReturn.Create(value));
        }