Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,13 @@
(if lb (list lb ub) (list ub))
(if lb (list lb '(core Any)) '())))))

;; Note that Scheme pairs representing a method in the AST are
;; of the form (method name) or (method (outerref name)), at least in Julia 1.10.
(define (is-method? x)
(if (and (pair? x) (eq? (car x) 'method))
(let ((name (cadr x)))
(if (and (pair? name) (eq? (car name) 'globalref))
(let ((name (caddr name)))
(if (and (pair? name) (eq? (car name) 'outerref))
(let ((name (cadr name)))
(if (symbol? name)
#t
#f))
Expand Down