public override void Initialize(object state, TextReader textreader, SourceUnit sourceUnit, SS.SourceLocation initialLocation) { tokenizer = new Tokenizer (textreader.ReadToEnd ().ToCharArray (), new IdentifierTable ()); tokenizer.Position = ConvertToMJCSrcLocation(initialLocation); this.sourceUnit = sourceUnit; this.state = state; }
private SourceLocation ConvertToMJCSrcLocation(SS.SourceLocation location) { return new SourceLocation (location.Index, location.Line, location.Column); }