src/parser/streams-impl.lisp: Use slot accessor rather than `with-slots'.
[sod] / src / parser / streams-impl.lisp
index f14bf31..b3bb424 100644 (file)
    present back to a user.  Secondly, a name can be attached to a stream
    which doesn't actually have a file backing it."
 
-  (with-slots (file) stream
-    (or file (call-next-method))))
+  (or (position-aware-stream-file stream)
+      (call-next-method)))
 
 (defmethod file-location ((stream position-aware-stream))
   (multiple-value-bind (line column) (stream-line-and-column stream)