Skip to content

Commit

Permalink
Updated the SimRefExp (in RoboSim.xtext and in
Browse files Browse the repository at this point in the history
RoboSimScopeProvided.xtext) to consider a required variable
  • Loading branch information
madiel committed Oct 23, 2024
1 parent 3137bf7 commit a45fbf4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ SimRefExp returns Expression:
(
=> (
'.' exp=CallExp |
('?' variable=[Variable|QualifiedName] (':' predicate=CallExp)?)
('?' variable=[Variable|QualifiedName] (':' predicate=CallExp)?) |
('?' '$' requiredVariable=[Variable|QualifiedName] (':' predicate=CallExp)?)
)
)?
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ class RoboSimScopeProvider extends AbstractRoboSimScopeProvider {
} else if (reference == SIM_REF_EXP__VARIABLE) {
var s = variablesDeclared(context, result)
return s
}
else if (reference == SIM_REF_EXP__REQUIRED_VARIABLE) {
var s = inputVariablesDeclared(context, result)
return s
}
return result
}
Expand Down

0 comments on commit a45fbf4

Please sign in to comment.