Module: source-records-implementation Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: Functional Objects Library Public License Version 1.0 Dual-license: GNU Lesser General Public License Warranty: Distributed WITHOUT WARRANTY OF ANY KIND define class () constant slot source-location-source-record, required-init-keyword: source-record:; constant slot source-location-start-offset :: , required-init-keyword: start-offset:; end class; define class () constant slot source-offset-line :: , required-init-keyword: line:; end class; define method source-location-end-offset (loc :: ) => (offset :: ) source-location-start-offset(loc) end method; define method source-offset-column (offset :: ) => (pos :: ) 0 end method; define method make-line-location (sr, line) => (loc :: ) let offset = make(, line: line); make(, source-record: sr, start-offset: offset) end method; // eof