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)); }
public void Join(ForkableScanner scanner) { m_masterScanner = scanner.m_masterScanner; m_offset = scanner.m_offset; }