public void AddMapping(MappingLocation documentLocation, MappingLocation generatedLocation) { Mappings.Add(new LineMapping { DocumentLocation = documentLocation, GeneratedLocation = generatedLocation }); }
public override bool Equals(object obj) { MappingLocation other = obj as MappingLocation; return(AbsoluteIndex == other.AbsoluteIndex && ContentLength == other.ContentLength && LineIndex == other.LineIndex && CharacterIndex == other.CharacterIndex); }
public LineMapping(MappingLocation documentLocation, MappingLocation generatedLocation) { DocumentLocation = documentLocation; GeneratedLocation = generatedLocation; }
public void AddMapping(MappingLocation documentLocation, MappingLocation generatedLocation) { Mappings.Add(new LineMapping(documentLocation, generatedLocation)); }