GenerateSrcMLFileFromDirectory() public méthode

Generate a SrcML document from the given path and place it in the XML file.
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
Exemple #1
0
        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;
        }