Skip to content

Commit 5ba49b2

Browse files
committed
chore: update ast-ref
1 parent 548e331 commit 5ba49b2

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

spec/ast-ref.edn

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@
176176
^:optional
177177
[:validated? "`true` if the method call could be resolved at compile time"]
178178
^:optional
179-
[:class "If :validated? the class or interface the method belongs to"]]}
179+
[:class "If :validated? the class or interface the method belongs to"]
180+
^:optional
181+
[:param-tags "A vector of type hints for overload disambiguation, from `^[Type ...]` metadata on the invocation form"]]}
180182
{:op :instance-field
181183
:doc "Node for an instance field access"
182184
:keys [[:form "`(.-field instance)`"]
@@ -266,6 +268,19 @@
266268
[:fixed-arity "The number of args this method takes"]
267269
^:children
268270
[:body "Synthetic :do node (with :body? `true`) representing the body of this method"]]}
271+
{:op :method-value
272+
:doc "Node for a qualified method reference in value position (Clojure 1.12+)"
273+
:keys [[:form "The original qualified method symbol, e.g. `String/valueOf`, `File/.getName`, `File/new`"]
274+
[:class "The resolved Class the method belongs to"]
275+
[:method "Symbol naming the method"]
276+
[:kind "One of :static, :instance, or :ctor"]
277+
^:optional
278+
[:param-tags "A vector of type hints for overload disambiguation, from `^[Type ...]` metadata"]
279+
[:methods "A vector of matching method/constructor reflective info maps"]
280+
^:optional
281+
[:field-overload "When :kind is :static and a static field of the same name exists, the field info map"]
282+
^:optional
283+
[:validated? "`true` if the method value could be resolved at compile time"]]}
269284
{:op :monitor-enter
270285
:doc "Node for a monitor-enter special-form statement"
271286
:keys [[:form "`(monitor-enter target)`"]
@@ -349,7 +364,9 @@
349364
^:children
350365
[:args "A vector of AST nodes representing the args to the method call"]
351366
^:optional
352-
[:validated? "`true` if the static method could be resolved at compile time"]]}
367+
[:validated? "`true` if the static method could be resolved at compile time"]
368+
^:optional
369+
[:param-tags "A vector of type hints for overload disambiguation, from `^[Type ...]` metadata on the invocation form"]]}
353370
{:op :static-field
354371
:doc "Node for a static field access"
355372
:keys [[:form "`Class/field`"]

0 commit comments

Comments
 (0)