You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Christopher Smith (Jira)" <ji...@apache.org> on 2022/09/27 17:58:00 UTC

[jira] [Created] (GROOVY-10771) Type-checking extension scripts should import AST classes

Christopher Smith created GROOVY-10771:
------------------------------------------

             Summary: Type-checking extension scripts should import AST classes
                 Key: GROOVY-10771
                 URL: https://issues.apache.org/jira/browse/GROOVY-10771
             Project: Groovy
          Issue Type: Improvement
          Components: Static Type Checker
    Affects Versions: 4.0.5
            Reporter: Christopher Smith


Scripts used as type-checking extensions have some imports applied automatically, but these imports do not include, for example, {{ClassNode}}, which is the type of some of the callback signatures to be implemented. It seems to me that the automatic imports should include

{code}
org.codehaus.groovy.ast.*
org.codehaus.groovy.ast.expr.*
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)