Skip to content

Commit

Permalink
Updating the scope provider to consider output operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Madiel committed Sep 16, 2022
1 parent 808480c commit c54b96b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ class RoboSimScopeProvider extends AbstractRoboSimScopeProvider {
@Inject extension RoboSimTypeProvider
override getScope(EObject context, EReference reference) {
if (context instanceof SimRefExp) {
// switch(reference) {
// case SIM_REF_EXP__ELEMENT : System.out.println("element")
// case SIM_REF_EXP__PREDICATE: System.out.println("predicate")
// case SIM_REF_EXP__EXP: System.out.println("exp")
// case SIM_REF_EXP__VARIABLE: System.out.println("variable")
// }
switch(reference) {
case SIM_REF_EXP__ELEMENT : System.out.println("element")
case SIM_REF_EXP__PREDICATE: System.out.println("predicate")
case SIM_REF_EXP__EXP: System.out.println("exp")
case SIM_REF_EXP__VARIABLE: System.out.println("variable")
}
}else if( context instanceof SimCall){
if (reference === CALL__OPERATION) {
//changed the parent scope to avoid accepting OperationDefs being in the scope for Calls
Expand Down

0 comments on commit c54b96b

Please sign in to comment.