Exemplo n.º 1
0
        public ForkableScanner Create(SourceReader source)
        {
            CodeContract.RequiresArgumentNotNull(source, "source");

            Scanner masterScanner = new Scanner(ScannerInfo);

            masterScanner.SetSource(source);
            masterScanner.SetTriviaTokens(m_triviaTokens);
            masterScanner.ErrorList      = ErrorList;
            masterScanner.RecoverErrors  = RecoverErrors;
            masterScanner.LexicalErrorId = LexicalErrorId;
            masterScanner.ThrowAtReadingAfterEndOfStream = ThrowAtReadingAfterEndOfStream;

            return(ForkableScanner.Create(masterScanner));
        }
Exemplo n.º 2
0
 public void Join(ForkableScanner scanner)
 {
     m_masterScanner = scanner.m_masterScanner;
     m_offset        = scanner.m_offset;
 }