Beispiel #1
0
        private void ParseFile(string inputFileName)
        {
            Console.WriteLine($"Parsing {inputFileName}");
            string src = File.ReadAllText(inputFileName);

            compilation.AddFile(inputFileName, src);
        }
Beispiel #2
0
        private void ParseFile(string fileName)
        {
            var relativeFileName = GetRelativeInputFile(fileName);

            if (IsIgnored(relativeFileName))
            {
                Console.WriteLine($"Ignoring file {relativeFileName}");
                return;
            }

            string src = File.ReadAllText(fileName);

            Console.WriteLine($"Parsing {relativeFileName}");
            compilation.AddFile(fileName, src);
        }