Closed npasserini closed 6 years ago
Well, @npasserini , I can configure to highlight the referenced class XOR the arguments:
But not both, since report uses EStructuralFeature. And Constructor calls have 3 estructural features:
EReference WCONSTRUCTOR_CALL__CLASS_REF = eINSTANCE.getWConstructorCall_ClassRef();
EReference WCONSTRUCTOR_CALL__ARGUMENTS = eINSTANCE.getWConstructorCall_Arguments();
EReference WCONSTRUCTOR_CALL__MIXINS = eINSTANCE.getWConstructorCall_Mixins();
What do you think? I think nowadays behavior is better, because the problem is related with arguments.
Me pregunto si ARGUMENTS me va a marcar todos los arguments o espera un índice para marcar uno. Si los marca todos, supongo que es lo más preciso. Si marca uno solo, supongo que sólo tenemos la opción CLASS_REF
Ahora, yo creo que sí se puede marcar toda la expresión, si lo ponés en el nodo padre.... estoy en clase ahora como para verificarlo....
2017-11-06 12:20 GMT-03:00 Fernando Dodino notifications@github.com:
Well, @npasserini https://github.com/npasserini , I can configure to highlight the referenced class XOR the arguments:
But not both, since report uses EStructuralFeature. And Constructor calls have 3 estructural features:
EReference WCONSTRUCTOR_CALL__CLASS_REF = eINSTANCE.getWConstructorCall_ClassRef(); EReference WCONSTRUCTOR_CALL__ARGUMENTS = eINSTANCE.getWConstructorCall_Arguments(); EReference WCONSTRUCTOR_CALL__MIXINS = eINSTANCE.getWConstructorCall_Mixins();
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/uqbar-project/wollok/issues/1277#issuecomment-342180623, or mute the thread https://github.com/notifications/unsubscribe-auth/AEa1OcziGOY7LS-q8wYb8_qzktSn9YUyks5szyPCgaJpZM4Pkdnm .
Ahí encontré una manera...
https://www.eclipse.org/forums/index.php/t/1071395/
Sería algo como
messageAcceptor.acceptError(WollokDslValidator_WCONSTRUCTOR_CALL__ARGUMENTS + expectedMessage, c,
c.before, c.after - 2, WRONG_NUMBER_ARGUMENTS_CONSTRUCTOR_CALL)
Tengo que traerme algunas cosas de QuickFixUtils, y a la larga por ahí haga un refactor, pero es por ahí.
If I invoke a constructor with an invalid argument count, the first parameter is underlined, which is not accurate. We should highlight the whole constructor invocation expression.