public void SetValue(IValue v) { if (Locked) { throw new RuntimeException($"Assignment to locked variable {Name}", v.GetLine(), v.GetPosition()); } _val = v; }