Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvergnaud committed Mar 2, 2022
1 parent fa36e4d commit 9eaa981
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Core/src/main/java/prompto/statement/UnresolvedCall.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public IExpression getCaller() {
return caller;
}

public ArgumentList getAssignments() {
public ArgumentList getArguments() {
return arguments;
}

Expand Down
4 changes: 2 additions & 2 deletions Core/src/test/java/prompto/parser/e/TestParserAtoms.java
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ public void testMethodCallWith() throws Exception {
CodeWriter writer = new CodeWriter(Dialect.E, Context.newGlobalsContext());
mc.getCaller().toDialect(writer);
assertEquals("print",writer.toString());
assertNotNull(mc.getAssignments());
Argument as = mc.getAssignments().get(0);
assertNotNull(mc.getArguments());
Argument as = mc.getArguments().get(0);
assertEquals("value",as.getParameterId().toString());
IExpression exp = as.getExpression();
assertTrue(exp instanceof PlusExpression);
Expand Down
4 changes: 2 additions & 2 deletions Core/src/test/java/prompto/parser/o/TestParserAtoms.java
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ public void parsesMethodCallWith() throws Exception {
UnresolvedCall mc = parser.parse_method_call_statement();
assertNotNull(mc);
assertEquals("print",mc.getCaller().toString());
assertNotNull(mc.getAssignments());
Argument as = mc.getAssignments().get(0);
assertNotNull(mc.getArguments());
Argument as = mc.getArguments().get(0);
assertEquals("value",as.getParameterId().toString());
IExpression exp = as.getExpression();
assertTrue(exp instanceof PlusExpression);
Expand Down

0 comments on commit 9eaa981

Please sign in to comment.