package de.dhbwstuttgart.syntaxtree.statement;

import de.dhbwstuttgart.exceptions.NotImplementedException;
import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
import de.dhbwstuttgart.typeinference.assumptions.TypeInferenceBlockInformation;
import de.dhbwstuttgart.typeinference.constraints.ConstraintSet;
import de.dhbwstuttgart.typeinference.assumptions.TypeInferenceInformation;
import org.antlr.v4.runtime.Token;

public class LocalVar extends Statement{

    protected final String expression;

    public LocalVar(String n, Token offset)
    {
        super(TypePlaceholder.fresh(offset),offset);
        this.expression = n;
    }

    public LocalVar(Expression e1, String access)
    {
        super(TypePlaceholder.fresh(e1.getOffset()),e1.getOffset());
        this.expression = access;
    }

    @Override
    public ConstraintSet getConstraints(TypeInferenceBlockInformation info) {
        //throw new NotImplementedException();
        return new ConstraintSet();
    }
    
    // @ Sebastian
    public String get_expression() {
    	return expression; 
    }
    
    
}
