Skip to content

Improve editor experience for type-checking extension scripts #1402

@eric-milles

Description

@eric-milles

STC extension scripts are executed with the following configuration:

import org.codehaus.groovy.ast.* // Groovy 4.0.6+
import org.codehaus.groovy.ast.expr.*
import static org.codehaus.groovy.ast.ClassHelper.*
import static org.codehaus.groovy.transform.stc.StaticTypeCheckingSupport.*

@groovy.transform.BaseScript org.codehaus.groovy.transform.stc.GroovyTypeCheckingExtensionSupport.TypeCheckingDSL delegate

In addition to this, TypeCheckingDSL#invokeMethod provides a series of isXxxExpression(Object) methods and a number of type-checking callback registration methods. None of these enhancements are presently exposed through the Groovy editor, making for a poor experience.

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions