public bool DeleteMember(CodeContext context, string name) { if (Scope.TryRemoveName(context.LanguageContext, SymbolTable.StringToId(name))) { OnModuleChange(new ModuleChangeEventArgs(SymbolTable.StringToId(name), ModuleChangeType.Delete)); return(true); } return(false); }
/// <summary> /// Attemps to remove the provided name from this scope /// </summary> public bool RemoveVariable(string name) { return(_scope.TryRemoveName(InvariantContext.Instance, SymbolTable.StringToId(name))); }