public ConstantBinding BindConstant(string name, object value, Type type) { if (currentScope == null) throw new Exception("Scope must be opened before constants can be bound."); return currentScope.AddConstantBinding(name, value, type); }