CompilerError AddError (string error) { CompilerError err = new CompilerError (); err.ErrorText = error; Errors.Add (err); return err; }