public override string ReportError(SkryptException error) { string positionString = $"({error.Line},{error.Column})"; string fileAndPosition = $"{error.File}{positionString}: "; var finalMessage = (error.Index > -1 ? fileAndPosition : "") + $"{error.Message}"; Console.WriteLine(finalMessage); return(finalMessage); }
public abstract string ReportError(SkryptException error);