1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-08 17:54:40 +00:00

Renamed method

This commit is contained in:
jespergravgaard 2018-05-01 22:10:06 +02:00
parent 4e973cebc7
commit de8654322f

View File

@ -41,7 +41,7 @@ public class Pass1ProcedureInline extends Pass1Base {
// Copy all procedure symbols
inlineSymbols(procedure, callScope, serial);
// Generate parameter assignments
generateParameterAssignments(statementsIt, call, procedure, callScope, serial);
inlineParameterAssignments(statementsIt, call, procedure, callScope, serial);
// Create a new block label for the rest of the calling block
Label restBlockLabel = callScope.addLabelIntermediate();
// Copy all procedure blocks
@ -236,7 +236,7 @@ public class Pass1ProcedureInline extends Pass1Base {
* @param callScope The scope where the function is being inlined
* @param serial The serial number (counted up for each inlined call to the same function within the called calling scope).
*/
private void generateParameterAssignments(ListIterator<Statement> statementsIt, StatementCall call, Procedure procedure, Scope callScope, int serial) {
private void inlineParameterAssignments(ListIterator<Statement> statementsIt, StatementCall call, Procedure procedure, Scope callScope, int serial) {
List<Variable> parameterDecls = procedure.getParameters();
List<RValue> parameterValues = call.getParameters();
for(int i = 0; i < parameterDecls.size(); i++) {