Пример #1
0
        public void UndefineLocal(LocalDefinition definition, int end)
        {
            var scope = _variables[definition.Parameter];

            scope.Stop = end;
            if (scope.Parent != null)
            {
                _variables[definition.Parameter] = scope.Parent;
            }
            else
            {
                _variables.Remove(definition.Parameter);
            }

            _localCount--;
        }
Пример #2
0
 public void UndefineLocal(LocalDefinition definition, int end) {
     var scope = _variables[definition.Parameter];
     scope.Stop = end;
     if (scope.Parent != null) {
         _variables[definition.Parameter] = scope.Parent;
     } else {
         _variables.Remove(definition.Parameter);
     }
     
     _localCount--;
 }