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
For the given pointcut contribute(bind(exprs: assignedVariable())) {...}
The following use cases work as expected:
//note we do NOT declare variable foo here
foo = {
bar {
baz { | }
}
}
or works with declaration
def foo = |
But the following use case fails to match: foo = |
ErrorRecoveredCSTParserPlugin fails to obtain an AST in case of simple assignment, but succeed in case of declarative assignment, for which groovy.g has an GRECLIPSE specific recovery for incomplete binary expression by injecting a right side variable "?"
The problem with simple (non-declarative) assignment is that similar recovery is missing in assignmentExpression.
PR is coming
The text was updated successfully, but these errors were encountered:
For the given pointcut
contribute(bind(exprs: assignedVariable())) {...}
The following use cases work as expected:
or works with declaration
def foo = |
But the following use case fails to match:
foo = |
ErrorRecoveredCSTParserPlugin fails to obtain an AST in case of simple assignment, but succeed in case of declarative assignment, for which groovy.g has an GRECLIPSE specific recovery for incomplete binary expression by injecting a right side variable "?"
The problem with simple (non-declarative) assignment is that similar recovery is missing in assignmentExpression.
PR is coming
The text was updated successfully, but these errors were encountered: