]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/constants/generic/ParameterStackItem.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / constants / generic / ParameterStackItem.java
1 package org.simantics.scl.compiler.constants.generic;
2
3 import org.simantics.scl.compiler.internal.codegen.references.Val;
4 import org.simantics.scl.compiler.internal.codegen.utils.MethodBuilder;
5 import org.simantics.scl.compiler.types.Type;
6
7 public class ParameterStackItem implements StackItem {
8
9     int id;
10     Type type;
11     
12     public ParameterStackItem(int id, Type type) {
13         this.id = id;
14         this.type = type;
15     }
16
17     @Override
18     public void push(MethodBuilder mb, Val[] parameters) {
19         mb.push(parameters[id], type);
20     }
21  
22     @Override
23     public void prepare(MethodBuilder mb) {
24     }
25 }