Exemplo n.º 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--;
        }
Exemplo n.º 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--;
 }