public GenerateSrcMLFileFromDirectory ( string directoryPath, string xmlFileName ) : ABB.SrcML.SrcMLFile | ||
directoryPath | string | The directory path. |
xmlFileName | string | The path of the xml file. |
Résultat | ABB.SrcML.SrcMLFile |
public void SetUp() { builder = new UnigramSwumBuilder { Splitter = new CamelIdSplitter() }; var Generator = new SrcMLGenerator(@"..\..\External\SrcML"); var file = Generator.GenerateSrcMLFileFromDirectory(@"..\..\", Path.GetTempFileName(), new List<string>(), Language.Any); functions = from func in file.GetXDocument().Descendants() where _functionTypes.Contains(func.Name) && !func.Ancestors(SRC.Declaration).Any() select func; }