addVar method

void addVar(
  1. Name name
)

Implementation

void addVar(Name name, ) {
  currentScope.environment.add(name.value);
  if( null!=name.parent )
    currentScope.variables.add((name.value, name.parent!));
}