Beispiel #1
0
        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);
        }
Beispiel #2
0
 /// <summary>
 /// Attemps to remove the provided name from this scope
 /// </summary>
 public bool RemoveVariable(string name)
 {
     return(_scope.TryRemoveName(InvariantContext.Instance, SymbolTable.StringToId(name)));
 }