namespace AspClassic.Parser; /// /// A line mapping from a source span to an external file and line. /// public sealed class ExternalLineMapping { private readonly Location _Start; private readonly Location _Finish; private readonly string _File; private readonly long _Line; /// /// The start location of the mapping in the source. /// public Location Start => _Start; /// /// The end location of the mapping in the source. /// public Location Finish => _Finish; /// /// The external file the source maps to. /// public string File => _File; /// /// The external line number the source maps to. /// public long Line => _Line; /// /// Constructs a new external line mapping. /// /// The start location in the source. /// The end location in the source. /// The name of the external file. /// The line number in the external file. public ExternalLineMapping(Location start, Location finish, string file, long line) { _Start = start; _Finish = finish; _File = file; _Line = line; } }