[ https://issues.apache.org/jira/browse/GROOVY-8726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16565855#comment-16565855 ]
James Kleeh commented on GROOVY-8726: ------------------------------------- [~blackdrag] A Parameter is passed to a method. That method needs to find all parameters that were overriden. In order to do so, the method node is required. I've created a class to wrap the parameter and its method together to use for this purpose currently (a hack imo). [https://github.com/micronaut-projects/micronaut-core/blob/653c244735e4052915cc6ee4d9dd7f326fda68d9/inject-groovy/src/main/groovy/io/micronaut/ast/groovy/annotation/GroovyAnnotationMetadataBuilder.groovy#L108] The Java annotation processor has a generic `getEnclosingElement` method that returns the method for the parameter. > Parameter lacks a reference to the MethodNode it belongs to > ----------------------------------------------------------- > > Key: GROOVY-8726 > URL: https://issues.apache.org/jira/browse/GROOVY-8726 > Project: Groovy > Issue Type: Improvement > Components: Compiler > Affects Versions: 2.5.1 > Reporter: James Kleeh > Priority: Major > > The Parameter class lacks a reference to it's method node. This is important > to find arguments that have been "overridden". -- This message was sent by Atlassian JIRA (v7.6.3#76005)