Skip to content

Commit 158b74d

Browse files
committed
Fix Merge
1 parent 7c79281 commit 158b74d

File tree

1 file changed

+10
-10
lines changed
  • liquidjava-verifier/src/main/java/liquidjava/processor/context

1 file changed

+10
-10
lines changed

liquidjava-verifier/src/main/java/liquidjava/processor/context/Context.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ public void reinitializeAllContext() {
5555
public void enterContext() {
5656
ctxVars.push(new ArrayList<>());
5757
// make each variable enter context
58-
for (RefinedVariable vi : getAllCtxVars())
58+
for (RefinedVariable vi : getCtxVars())
5959
if (vi instanceof Variable)
6060
((Variable) vi).enterContext();
6161
}
6262

6363
public void exitContext() {
6464
ctxVars.pop();
6565
// make each variable exit context
66-
for (RefinedVariable vi : getAllCtxVars())
66+
for (RefinedVariable vi : getCtxVars())
6767
if (vi instanceof Variable)
6868
((Variable) vi).exitContext();
6969
}
@@ -173,7 +173,7 @@ public boolean hasVariable(String name) {
173173

174174
public List<RefinedVariable> getAllVariablesWithSupertypes() {
175175
List<RefinedVariable> lvi = new ArrayList<>();
176-
for (RefinedVariable rv : getAllCtxVars()) {
176+
for (RefinedVariable rv : getCtxVars()) {
177177
if (!rv.getSuperTypes().isEmpty())
178178
lvi.add(rv);
179179
}
@@ -215,7 +215,7 @@ public Variable getVariableFromInstance(VariableInstance vi) {
215215
return vi.getParent().orElse(null);
216216
}
217217

218-
public List<RefinedVariable> getAllCtxVars() {
218+
public List<RefinedVariable> getCtxVars() {
219219
List<RefinedVariable> lvi = new ArrayList<>();
220220
for (List<RefinedVariable> l : ctxVars) {
221221
lvi.addAll(l);
@@ -229,37 +229,37 @@ public List<RefinedVariable> getCtxInstanceVars() {
229229

230230
// ---------------------- Variables - if information storing ----------------------
231231
public void variablesSetBeforeIf() {
232-
for (RefinedVariable vi : getAllCtxVars())
232+
for (RefinedVariable vi : getCtxVars())
233233
if (vi instanceof Variable)
234234
((Variable) vi).saveInstanceBeforeIf();
235235
}
236236

237237
public void variablesSetThenIf() {
238-
for (RefinedVariable vi : getAllCtxVars())
238+
for (RefinedVariable vi : getCtxVars())
239239
if (vi instanceof Variable)
240240
((Variable) vi).saveInstanceThen();
241241
}
242242

243243
public void variablesSetElseIf() {
244-
for (RefinedVariable vi : getAllCtxVars())
244+
for (RefinedVariable vi : getCtxVars())
245245
if (vi instanceof Variable)
246246
((Variable) vi).saveInstanceElse();
247247
}
248248

249249
public void variablesNewIfCombination() {
250-
for (RefinedVariable vi : getAllCtxVars())
250+
for (RefinedVariable vi : getCtxVars())
251251
if (vi instanceof Variable)
252252
((Variable) vi).newIfCombination();
253253
}
254254

255255
public void variablesFinishIfCombination() {
256-
for (RefinedVariable vi : getAllCtxVars())
256+
for (RefinedVariable vi : getCtxVars())
257257
if (vi instanceof Variable)
258258
((Variable) vi).finishIfCombination();
259259
}
260260

261261
public void variablesCombineFromIf(Predicate cond) {
262-
for (RefinedVariable vi : getAllCtxVars()) {
262+
for (RefinedVariable vi : getCtxVars()) {
263263
if (vi instanceof Variable) {
264264
Optional<VariableInstance> ovi = ((Variable) vi).getIfInstanceCombination(getCounter(), cond);
265265
if (ovi.isPresent()) {

0 commit comments

Comments
 (0)