You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
withConfig(configuration) {
imports {
star 'groovy.transform'
normal 'java.util.regex.Matcher'
normal 'java.util.regex.Pattern'
alias 'Regexp', 'java.util.regex.Pattern'
staticMember 'java.util.concurrent.TimeUnit', 'SECONDS'
staticMember 'MILLIS', 'java.util.concurrent.TimeUnit', 'MILLISECONDS'
}
inline(phase:'CONVERSION') { sourceUnit, generatorContext, classNode->
}
}
The methods star, normal, etc. within the imports block should be known due to @DelegatesTo parameter annotation. The parameters sourceUnit, generatorContext and classNode should be inferred due to @ClosureParams parameter type annotation.
The text was updated successfully, but these errors were encountered:
eric-milles
changed the title
DSLD: Add support for method and property type annotations
DSLD: Add support for method parameter type annotations like @ClosureParams and @DelegatesTo
Oct 23, 2018
config.dsld:
config.groovy
The methods
star
,normal
, etc. within the imports block should be known due to@DelegatesTo
parameter annotation. The parameterssourceUnit
,generatorContext
andclassNode
should be inferred due to@ClosureParams
parameter type annotation.The text was updated successfully, but these errors were encountered: