private void scan(string text)
        {
            var file = new FakeFile(text);
            var reader = new SampleReader(file, new CLangSampleScanner("cs", "csharp"), theSamples);

            reader.Start();
        }
        private void scan(string text)
        {
            var file = new FakeFile(text);
            var reader = new SampleReader(file, new RubySampleScanner(), theSamples);

            reader.Start();
        }
Esempio n. 3
0
 public bool ReadFile(ISampleScanner scanner, string file)
 {
     var reader = new SampleReader(new FileReference(file), scanner, _cache);
     reader.Start();
     return reader.FoundSamples;
 }