Skip to content

Commit

Permalink
Fix RECORD-SOURCE-LOCATION
Browse files Browse the repository at this point in the history
  • Loading branch information
metawilm committed Feb 8, 2011
1 parent 0ac6822 commit 23a3bd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser/grammar.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ Value should be a (weak) EQ hash table: (make-weak-key-hash-table :test 'eq).")
(setf (gethash outcome *python-form->source-location*) loc))
(existing
(unless (<= start (getf existing :start) (getf existing :end) end)
"Duplicate location for ~A, and new [~A, ~A] does not overlap old [~A, ~A]"
outcome start end (getf existing :start) (getf existing :end)))))))
(error "Duplicate location for ~A, and new [~A, ~A] does not overlap old [~A, ~A]"
outcome start end (getf existing :start) (getf existing :end))))))))

(defun contour-source-location (terms)
(when *python-form->source-location*
Expand Down

0 comments on commit 23a3bd7

Please sign in to comment.