mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-08 21:20:19 +02:00
Remove use of source properties in psyntax
* module/ice-9/psyntax.scm (source-annotation): Only get source info from syntax objects. (strip): Don't attach source info. (macroexpand): Don't proxy source info in that isn't in a syntax object. (datum->syntax): Don't proxy source info from source-properties. * test-suite/tests/compiler.test ("psyntax"): * test-suite/tests/coverage.test (code): * test-suite/tests/eval-string.test ("basic"): * test-suite/tests/syntax.test ("expressions"): * test-suite/tests/tree-il.test ("warnings"): Update tests that attach source properties to use read-and-compile, or read-syntax.
This commit is contained in:
parent
05dd829ad3
commit
f399f36d37
7 changed files with 127 additions and 182 deletions
|
@ -1,6 +1,6 @@
|
|||
;;;; coverage.test --- Code coverage. -*- mode: scheme; coding: utf-8; -*-
|
||||
;;;;
|
||||
;;;; Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2017 Free Software Foundation, Inc.
|
||||
;;;; Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2017, 2025 Free Software Foundation, Inc.
|
||||
;;;;
|
||||
;;;; This library is free software; you can redistribute it and/or
|
||||
;;;; modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -30,8 +30,7 @@
|
|||
((_ filename snippet)
|
||||
(let ((input (open-input-string snippet)))
|
||||
(set-port-filename! input filename)
|
||||
(read-enable 'positions)
|
||||
(compile (read input))))))
|
||||
(compile (read-syntax input))))))
|
||||
|
||||
(define test-procedure
|
||||
(compile '(lambda (x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue