-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
add Type to kwargs internal argument #39593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -470,15 +470,16 @@ | |
| (filter (lambda (s) | ||
| (not (any (lambda (p) (eq? (car p) (car s))) | ||
| positional-sparams))) | ||
| sparams))) | ||
| (let ((kw (gensy)) | ||
| (rkw (if (null? restkw) (make-ssavalue) (symbol (string (car restkw) "...")))) | ||
| (mangled (let ((und (and name (undot-name name)))) | ||
| (symbol (string (if (and name (= (string.char (string name) 0) #\#)) | ||
| "" | ||
| "#") | ||
| (or und '_) "#" | ||
| (string (current-julia-module-counter))))))) | ||
| sparams)) | ||
| (kw (gensy)) | ||
| (rkw (if (null? restkw) (make-ssavalue) (symbol (string (car restkw) "...")))) | ||
| (restkw (map (lambda (v) `(|::| ,v (call (top pairs) (core NamedTuple)))) restkw)) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This could be merged with the first definition of restkw.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. computing |
||
| (mangled (let ((und (and name (undot-name name)))) | ||
| (symbol (string (if (and name (= (string.char (string name) 0) #\#)) | ||
| "" | ||
| "#") | ||
| (or und '_) "#" | ||
| (string (current-julia-module-counter))))))) | ||
| ;; this is a hack: nest these statements inside a call so they get closure | ||
| ;; converted together, allowing all needed types to be defined before any methods. | ||
| `(call (core ifelse) (false) (false) (block | ||
|
|
@@ -579,7 +580,7 @@ | |
| (list `(... ,(arg-name (car vararg))))))))))) | ||
| ;; return primary function | ||
| ,(if (not (symbol? name)) | ||
| '(null) name)))))) | ||
| '(null) name))))) | ||
|
|
||
| ;; prologue includes line number node and eventual meta nodes | ||
| (define (extract-method-prologue body) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems a bit strange to have as a method; maybe just make it a constant instead?