OSDN Git Service

.
[codecoverage/main.git] / CoverageFramework / Element / Decorator / C / BlockDecoratorForC.cs
1 using System.Collections.Generic;\r
2 using System.Xml.Linq;\r
3 \r
4 namespace CoverageFramework.Element.Decorator.C\r
5 {\r
6         public class BlockDecoratorForC : IXElementDecorator\r
7         {\r
8                 #region IXElementDecorator \83\81\83\93\83o\r
9 \r
10                 public XElement[] Generate(IEnumerable<XElement> elements)\r
11                 {\r
12                         return new[] {\r
13                                 new XElement("compound_statement",\r
14                                         new XElement("TOKEN", "{"),\r
15                                         new XElement("statement_list", elements),\r
16                                         new XElement("TOKEN", "}")),\r
17                         };\r
18                 }\r
19 \r
20                 #endregion\r
21         }\r
22 }