summaryrefslogtreecommitdiff
path: root/src/minijava/symboltable/MVariable.java
blob: 4501396fd424bbcf0f5ebbe42ea2b9c54e8b9831 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package minijava.symboltable;

public class MVariable extends MType {
	String typename;
	
	public MVariable(String v_name, String v_type, int v_line, int v_column) {
		super(v_line, v_column);
		name = v_name;
		typename = v_type;
	}
	
	public void printVar(int spaces) {
		String ps = OutputFormat.spaces(spaces);
		System.err.print(ps + typename + " " + this.name);
	}
}